DropOrdersTable.txt 488 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. class DropOrdersTable extends Migration {
  5. /**
  6. * Run the migrations.
  7. *
  8. * @return void
  9. */
  10. public function up()
  11. {
  12. Schema::drop('orders');
  13. }
  14. /**
  15. * Reverse the migrations.
  16. *
  17. * @return void
  18. */
  19. public function down()
  20. {
  21. Schema::create('orders', function(Blueprint $table)
  22. {
  23. $table->increments('id');
  24. $table->string('title');
  25. $table->timestamps();
  26. });
  27. }
  28. }