bookstack/database/migrations/2015_07_13_172121_create_im...

30 lines
612 B
PHP
Raw Normal View History

2015-07-14 04:52:56 +08:00
<?php
use Illuminate\Database\Migrations\Migration;
2021-06-26 23:23:15 +08:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2015-07-14 04:52:56 +08:00
return new class extends Migration
2015-07-14 04:52:56 +08:00
{
/**
* Run the migrations.
*/
public function up(): void
2015-07-14 04:52:56 +08:00
{
Schema::create('images', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('url');
2016-02-17 05:25:11 +08:00
$table->nullableTimestamps();
2015-07-14 04:52:56 +08:00
});
}
/**
* Reverse the migrations.
*/
public function down(): void
2015-07-14 04:52:56 +08:00
{
Schema::drop('images');
}
};