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');
});
}