daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. use Illuminate\Support\Facades\Schema;
  4. use Illuminate\Database\Schema\Blueprint;
  5. use Illuminate\Database\Migrations\Migration;
  6.  
  7. class AddGooglevisondataToAnnouncementimagesTable extends Migration
  8. {
  9.     /**
  10.      * Run the migrations.
  11.      *
  12.      * @return void
  13.      */
  14.     public function up()
  15.     {
  16.         Schema::table('announcement_images', function (Blueprint $table) {
  17.             $table->string('labels')->nullable();
  18.  
  19.             $table->string('adult')->nullable();
  20.             $table->string('spoof')->nullable();
  21.             $table->string('medical')->nullable();
  22.             $table->string('violence')->nullable();
  23.             $table->string('racy')->nullable();
  24.         });
  25.     }
  26.  
  27.     /**
  28.      * Reverse the migrations.
  29.      *
  30.      * @return void
  31.      */
  32.     public function down()
  33.     {
  34.         Schema::table('announcement_images', function (Blueprint $table) {
  35.             $table->dropColumn('labels');
  36.  
  37.             $table->dropColumn('adult');
  38.             $table->dropColumn('spoof');
  39.             $table->dropColumn('medical');
  40.             $table->dropColumn('violence');
  41.             $table->dropColumn('racy');
  42.         });
  43.     }
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top