cms/database/migrations/2020_02_23_064758_create_articles_table.php
2020-02-23 21:48:51 +08:00

34 lines
635 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\Traits\PostBlueprintGettable;
class CreateArticlesTable extends Migration
{
use PostBlueprintGettable;
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('articles', function (Blueprint $table) {
$this->processSchema($table);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('articles');
}
}