BookStack/database/migrations/2015_07_13_172121_create_images_table.php

33 lines
621 B
PHP
Raw Normal View History

2015-07-13 22:52:56 +02:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
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 22:25:11 +01:00
$table->nullableTimestamps();
2015-07-13 22:52:56 +02:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('images');
}
}