Files
newznab-tmux/database/migrations/2017_10_12_124141_create_menu_table.php
T
DariusIII f390796790 Apply fixes from StyleCI
[ci skip] [skip ci]
2017-10-12 10:55:39 +00:00

38 lines
980 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
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');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('menu');
}
}