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

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');
});
}
}