You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
solarai/database/migrations/2022_08_22_100009_create_se...

46 lines
1.6 KiB
PHTML

2 years ago
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSeoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('seo', function (Blueprint $table) {
$table->unsignedInteger('id', true)->comment('고유번호');
$table->string('uid', 100)->default('')->comment('UID');
$table->string('page', 255)->default('index')->comment('적용페이지');
$table->string('title', 255)->default('')->comment('제목');
$table->string('description', 255)->default('')->comment('설명');
$table->string('keywords', 255)->default('')->comment('키워드');
$table->unsignedInteger('created_id')->nullable()->comment('등록 회원번호');
$table->unsignedInteger('updated_id')->nullable()->comment('수정 회원번호');
$table->unsignedInteger('deleted_id')->nullable()->comment('삭제 회원번호');
$table->datetime('created_at')->nullable()->comment('등록일시');
$table->datetime('updated_at')->nullable()->comment('수정일시');
$table->dateTime('deleted_at')->nullable()->comment('삭제일시');
// 인덱스
$table->unique('uid', 'uk_tbl_seo_uid');
$table->unique('page', 'uk_tbl_seo_page');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('seo');
}
}