Finish mount admin view page, add unique index to migration
This commit is contained in:
parent
0db7debb46
commit
34f718a8b1
4 changed files with 276 additions and 3 deletions
|
@ -27,11 +27,15 @@ class AddMountsTable extends Migration
|
|||
Schema::create('egg_mount', function (Blueprint $table) {
|
||||
$table->integer('egg_id');
|
||||
$table->char('mount_id', 36);
|
||||
|
||||
$table->unique(['egg_id', 'mount_id']);
|
||||
});
|
||||
|
||||
Schema::create('mount_node', function (Blueprint $table) {
|
||||
$table->integer('node_id');
|
||||
$table->char('mount_id', 36);
|
||||
|
||||
$table->unique(['node_id', 'mount_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue