mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-19 09:38:36 +00:00
Updated ips migration for unique index
Updated ips migration for unique index
This commit is contained in:
parent
b7ce9b7402
commit
df6d85a7ea
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ class CreateIPsTable extends Migration
|
||||||
$table->tinyInteger('is_ipv4')->default(1);
|
$table->tinyInteger('is_ipv4')->default(1);
|
||||||
$table->tinyInteger('active')->default(1);
|
$table->tinyInteger('active')->default(1);
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
$table->unique(['service_id','address'], 'uni');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue