35 lines
733 B
PHP
35 lines
733 B
PHP
|
<?php
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Sakura\DB;
|
||
|
|
||
|
class CacheParsedBbcode extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
$schema = DB::getSchemaBuilder();
|
||
|
|
||
|
$schema->drop('faq');
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
$schema = DB::getSchemaBuilder();
|
||
|
|
||
|
$schema->create('faq', function (Blueprint $table) {
|
||
|
$table->increments('faq_id');
|
||
|
$table->string('faq_shorthand', 255);
|
||
|
$table->string('faq_question', 255);
|
||
|
$table->text('faq_answer');
|
||
|
});
|
||
|
}
|
||
|
}
|