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) {
|
2016-03-29 18:26:13 +00:00
|
|
|
$table->longText('markdown')->default('');
|
2016-03-25 14:41:15 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('page_revisions', function (Blueprint $table) {
|
2016-03-29 18:26:13 +00:00
|
|
|
$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');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|