Commit bd35783a authored by Nicolas Widart's avatar Nicolas Widart

Modifying migrations

parent 810f33d1
...@@ -18,7 +18,7 @@ class CreateMenuTranslationsTable extends Migration ...@@ -18,7 +18,7 @@ class CreateMenuTranslationsTable extends Migration
$table->integer('menu_id')->unsigned(); $table->integer('menu_id')->unsigned();
$table->string('locale')->index(); $table->string('locale')->index();
$table->integer('status'); $table->tinyInteger('status')->default(0);
$table->string('title'); $table->string('title');
$table->unique(['menu_id', 'locale']); $table->unique(['menu_id', 'locale']);
......
...@@ -17,8 +17,9 @@ class CreateMenuitemsTable extends Migration ...@@ -17,8 +17,9 @@ class CreateMenuitemsTable extends Migration
$table->increments('id'); $table->increments('id');
$table->integer('menu_id')->unsigned(); $table->integer('menu_id')->unsigned();
$table->foreign('menu_id')->references('id')->on('menus')->onDelete('cascade'); $table->foreign('menu_id')->references('id')->on('menus')->onDelete('cascade');
$table->integer('page_id')->unsigned(); $table->integer('page_id')->unsigned()->nullable();
$table->string('target'); $table->integer('position')->unsigned()->default(0);
$table->string('target', 10)->nullable();
$table->string('module_name'); $table->string('module_name');
$table->timestamps(); $table->timestamps();
}); });
......
...@@ -18,7 +18,7 @@ class CreateMenuitemTranslationTable extends Migration ...@@ -18,7 +18,7 @@ class CreateMenuitemTranslationTable extends Migration
$table->integer('menuitem_id')->unsigned(); $table->integer('menuitem_id')->unsigned();
$table->string('locale')->index(); $table->string('locale')->index();
$table->integer('status'); $table->tinyInteger('status')->default(0);
$table->string('title'); $table->string('title');
$table->string('url'); $table->string('url');
$table->string('uri'); $table->string('uri');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment