Updated unique key naming to prevent conflicts

Updated unique key naming to prevent conflicts
This commit is contained in:
cp6 2022-03-07 13:25:32 +11:00
parent 770437bc5f
commit 14bd846c67
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ class CreateYabsTable extends Migration
$table->integer('gb5_multi');
$table->integer('gb5_id');
$table->timestamps();
$table->unique(['id','server_id'], 'uni');
$table->unique(['id','server_id'], 'yabs_u1');
});
}

View File

@ -22,7 +22,7 @@ class CreateNetworkSpeedTable extends Migration
$table->char('receive_type', 4);
$table->float('receive_as_mbps');
$table->timestamps();
$table->unique(['id','server_id', 'location'], 'uni');
$table->unique(['id','server_id', 'location'], 'network_speed_u1');
});
}

View File

@ -16,7 +16,7 @@ class CreateLabelsAssignedTable extends Migration
Schema::create('labels_assigned', function (Blueprint $table) {
$table->char('label_id', 8);
$table->char('service_id', 8);
$table->unique(['label_id','service_id'], 'uni');
$table->unique(['label_id','service_id'], 'labels_assigned_u1');
});
}

View File

@ -15,7 +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');
$table->unique(['service_id','address'], 'ips_u1');
});
}