BookStackApp_BookStack/database/migrations/2015_08_09_093534_create_pa...

36 lines
779 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePageRevisionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('page_revisions', function (Blueprint $table) {
$table->increments('id');
$table->integer('page_id')->indexed();
$table->string('name');
$table->longText('html');
$table->longText('text');
$table->integer('created_by');
$table->nullableTimestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('page_revisions');
}
}