Switchout DB to CockroachDB
This commit is contained in:
@@ -16,11 +16,10 @@ class UpdateZones extends Migration
|
||||
DB::statement('ALTER TABLE zones ALTER COLUMN domain_id SET NOT NULL');
|
||||
|
||||
Schema::table('zones', function (Blueprint $table) {
|
||||
$table->integer('system_id');
|
||||
$table->dropColumn(['description','ipv4','ipv4_mask','ipv6','ipv6_mask','zt_id']);
|
||||
$table->string('ztid')->nullable();
|
||||
$table->dropUnique(['domain_id']);
|
||||
|
||||
$table->integer('system_id');
|
||||
$table->foreign('system_id')->references('id')->on('systems');
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user