1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00

Updated ips migration for unique index

Updated ips migration for unique index
This commit is contained in:
cp6 2022-03-05 01:02:39 +11:00
parent b7ce9b7402
commit df6d85a7ea

View File

@ -15,6 +15,7 @@ class CreateIPsTable extends Migration
$table->tinyInteger('is_ipv4')->default(1);
$table->tinyInteger('active')->default(1);
$table->timestamps();
$table->unique(['service_id','address'], 'uni');
});
}