34 lines
725 B
PHP
34 lines
725 B
PHP
<?php
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Sakura\DB;
|
|
|
|
class RemoveFaq 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');
|
|
});
|
|
}
|
|
}
|