Advertisement
cipher87

Tasks table

Oct 27th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5.  
  6. class CreateTasksTable extends Migration
  7. {
  8.     /**
  9.      * Run the migrations.
  10.      *
  11.      * @return void
  12.      */
  13.     public function up()
  14.     {
  15.         Schema::create('tasks', function (Blueprint $table) {
  16.             $table->increments('id');
  17.             $table->string('name');
  18.             $table->timestamps();
  19.         });
  20.     }
  21.  
  22.     /**
  23.      * Reverse the migrations.
  24.      *
  25.      * @return void
  26.      */
  27.     public function down()
  28.     {
  29.         Schema::drop('tasks');
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement