birzha/tests/fixtures/plugins/database/tester/updates/create_meta_table.php

31 lines
973 B
PHP
Raw Normal View History

2016-04-04 14:03:09 +00:00
<?php namespace Database\Tester\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class CreateMetaTable extends Migration
{
public function up()
{
Schema::create('database_tester_meta', function ($table) {
2016-04-04 14:03:09 +00:00
$table->engine = 'InnoDB';
$table->increments('id')->unsigned();
$table->integer('taggable_id')->unsigned()->index()->nullable();
$table->string('taggable_type')->nullable();
$table->string('meta_title')->nullable();
$table->string('meta_description')->nullable();
$table->string('meta_keywords')->nullable();
$table->string('canonical_url')->nullable();
$table->string('redirect_url')->nullable();
$table->string('robot_index')->nullable();
$table->string('robot_follow')->nullable();
});
}
public function down()
{
Schema::dropIfExists('database_tester_meta');
}
}