mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 22:19:31 +02:00
add pg 1.9.0 migration
This commit is contained in:
parent
ac8b546393
commit
378de19f41
4 changed files with 128 additions and 11 deletions
|
@ -100,7 +100,7 @@ CREATE TABLE '__new_clients' (
|
|||
FOREIGN KEY ('exitNode') REFERENCES 'exitNodes'('exitNodeId') ON UPDATE no action ON DELETE set null
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO '__new_clients'("id", "orgId", "exitNode", "name", "pubKey", "subnet", "bytesIn", "bytesOut", "lastBandwidthUpdate", "lastPing", "type", "online", "lastHolePunch") SELECT "id", "orgId", "exitNode", "name", "pubKey", "subnet", "bytesIn", "bytesOut", "lastBandwidthUpdate", "lastPing", "type", "online", "lastHolePunch" FROM 'clients';--> statement-breakpoint
|
||||
INSERT INTO '__new_clients'("id", "orgId", "exitNode", "name", "pubKey", "subnet", "bytesIn", "bytesOut", "lastBandwidthUpdate", "lastPing", "type", "online", "lastHolePunch") SELECT "id", "orgId", "exitNode", "name", "pubKey", "subnet", "bytesIn", "bytesOut", "lastBandwidthUpdate", NULL, "type", "online", "lastHolePunch" FROM 'clients';--> statement-breakpoint
|
||||
DROP TABLE 'clients';--> statement-breakpoint
|
||||
ALTER TABLE '__new_clients' RENAME TO 'clients';--> statement-breakpoint
|
||||
ALTER TABLE 'clientSites' ADD 'endpoint' text;--> statement-breakpoint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue