]> BookStack Code Mirror - bookstack/blob - database/migrations/2015_07_13_172121_create_images_table.php
Followed Laravel 9 update steps and file changes
[bookstack] / database / migrations / 2015_07_13_172121_create_images_table.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5
6 return new class extends Migration
7 {
8     /**
9      * Run the migrations.
10      *
11      * @return void
12      */
13     public function up()
14     {
15         Schema::create('images', function (Blueprint $table) {
16             $table->increments('id');
17             $table->string('name');
18             $table->string('url');
19             $table->nullableTimestamps();
20         });
21     }
22
23     /**
24      * Reverse the migrations.
25      *
26      * @return void
27      */
28     public function down()
29     {
30         Schema::drop('images');
31     }
32 };