This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- Irreversible data migration for safety, or we could delete what we inserted.
|
||||
-- For now, leaving empty to avoid accidental data loss on down.
|
||||
@@ -0,0 +1,5 @@
|
||||
INSERT INTO servers (id, name, country, city, address, sort, created_at, updated_at)
|
||||
SELECT id, name, country, city, server_addr, sort, created_at, updated_at FROM server;
|
||||
|
||||
INSERT INTO nodes (name, tags, address, server_id, protocol, enabled, sort, created_at, updated_at)
|
||||
SELECT name, tags, server_addr, id, protocol, enable, sort, created_at, updated_at FROM server;
|
||||
Reference in New Issue
Block a user