BookStack/database/migrations/2016_07_07_181521_add_summary_to_page_revisions.php

31 lines
553 B
PHP
Raw Normal View History

2016-07-07 18:53:43 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
2016-07-07 18:53:43 +00:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('page_revisions', function ($table) {
$table->string('summary')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('page_revisions', function ($table) {
$table->dropColumn('summary');
});
}
};