BookStack/database/migrations/2015_07_13_172121_create_images_table.php

33 lines
621 B
PHP
Raw Normal View History

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