This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/database/2016_12_08_205940_remove_faq.php

35 lines
725 B
PHP
Raw Normal View History

2016-12-08 20:01:33 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Sakura\DB;
2016-12-08 23:18:54 +00:00
class RemoveFaq extends Migration
2016-12-08 20:01:33 +00:00
{
/**
* 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');
});
}
}