Updated unique key naming to prevent conflicts
Updated unique key naming to prevent conflicts
This commit is contained in:
parent
770437bc5f
commit
14bd846c67
|
@ -32,7 +32,7 @@ class CreateYabsTable extends Migration
|
||||||
$table->integer('gb5_multi');
|
$table->integer('gb5_multi');
|
||||||
$table->integer('gb5_id');
|
$table->integer('gb5_id');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
$table->unique(['id','server_id'], 'uni');
|
$table->unique(['id','server_id'], 'yabs_u1');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ class CreateNetworkSpeedTable extends Migration
|
||||||
$table->char('receive_type', 4);
|
$table->char('receive_type', 4);
|
||||||
$table->float('receive_as_mbps');
|
$table->float('receive_as_mbps');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
$table->unique(['id','server_id', 'location'], 'uni');
|
$table->unique(['id','server_id', 'location'], 'network_speed_u1');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ class CreateLabelsAssignedTable extends Migration
|
||||||
Schema::create('labels_assigned', function (Blueprint $table) {
|
Schema::create('labels_assigned', function (Blueprint $table) {
|
||||||
$table->char('label_id', 8);
|
$table->char('label_id', 8);
|
||||||
$table->char('service_id', 8);
|
$table->char('service_id', 8);
|
||||||
$table->unique(['label_id','service_id'], 'uni');
|
$table->unique(['label_id','service_id'], 'labels_assigned_u1');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +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');
|
$table->unique(['service_id','address'], 'ips_u1');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user