Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement