BookStack/database/migrations/2016_03_25_123157_add_markdown_support.php

40 lines
874 B
PHP
Raw Normal View History

2016-03-25 14:41:15 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
2021-06-26 15:23:15 +00:00
use Illuminate\Database\Schema\Blueprint;
2016-03-25 14:41:15 +00:00
class AddMarkdownSupport extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('pages', function (Blueprint $table) {
$table->longText('markdown')->default('');
2016-03-25 14:41:15 +00:00
});
Schema::table('page_revisions', function (Blueprint $table) {
$table->longText('markdown')->default('');
2016-03-25 14:41:15 +00:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('pages', function (Blueprint $table) {
$table->dropColumn('markdown');
});
Schema::table('page_revisions', function (Blueprint $table) {
$table->dropColumn('markdown');
});
}
}