Files
newznab-tmux/database/migrations/2018_01_18_104710_create_menu_table.php
T
2018-01-22 10:18:18 +01:00

43 lines
882 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateMenuTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('menu', function(Blueprint $table)
{
$table->increments('id');
$table->string('href', 2000)->default('');
$table->string('title', 2000)->default('');
$table->integer('newwindow')->unsigned()->default(0);
$table->string('tooltip', 2000)->default('');
$table->integer('role')->unsigned();
$table->integer('ordinal')->unsigned();
$table->string('menueval', 2000)->default('');
$table->index(['role','ordinal'], 'ix_role_ordinal');
});
DB::unprepared('ALTER TABLE menu AUTO_INCREMENT 1000001');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('menu');
}
}