mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 20:22:18 +00:00
36 lines
771 B
PHP
36 lines
771 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->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::drop('page_revisions');
|
||
|
}
|
||
|
}
|