| <?php | |
| 
 | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| 
 | |
| class Shares extends Migration | |
| { | |
|     /** | |
|      * Run the migrations. | |
|      * | |
|      * @return void | |
|      */ | |
|     public function up() | |
|     { | |
|         Schema::create('shares', function (Blueprint $table) { | |
|             $table->increments('id'); | |
|             $table->unsignedInteger('database_id'); | |
|             $table->datetime('expires_at')->nullable(); | |
|             $table->string('token', 30); | |
|             $table->datetime('created_at'); | |
|         }); | |
|     } | |
| 
 | |
|     /** | |
|      * Reverse the migrations. | |
|      * | |
|      * @return void | |
|      */ | |
|     public function down() | |
|     { | |
|         Schema::drop('shares'); | |
|     } | |
| }
 |