mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-28 13:12:05 +00:00
36 lines
779 B
PHP
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');
|
|
}
|
|
}
|