wyyl/database/migrations/2022_08_08_071126_crate_pag...

46 lines
1.0 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pages', function (Blueprint $table) {
$table->id();
$table->integer('position');
$table->boolean('active');
$table->timestamps();
});
Schema::create('page_descriptions', function (Blueprint $table) {
$table->id();
$table->integer('page_id');
$table->string('locale');
$table->string('title');
$table->text('content');
$table->string('meta_title');
$table->string('meta_description');
$table->string('meta_keyword');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};