File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ DROP TABLE remote_connection_config;
2+ ALTER TABLE cluster DROP COLUMN remote_connection_config_id;
3+ ALTER TABLE docker_artifact_store DROP COLUMN remote_connection_config_id;
Original file line number Diff line number Diff line change 1+ ALTER TABLE cluster ADD COLUMN remote_connection_config_id INT ;
2+ ALTER TABLE docker_artifact_store ADD COLUMN remote_connection_config_id INT ;
3+
4+ CREATE SEQUENCE IF NOT EXISTS id_seq_remote_connection_config;
5+ CREATE TABLE IF NOT EXISTS public .remote_connection_config
6+ (
7+ " id" int NOT NULL DEFAULT nextval(' id_seq_remote_connection_config' ::regclass),
8+ " connection_method"
9+ VARCHAR (50 ) NOT NULL ,
10+ " proxy_url" VARCHAR (300 ) ,
11+ " ssh_server_address" VARCHAR (300 ),
12+ " ssh_username" VARCHAR (300 ),
13+ " ssh_password" text ,
14+ " ssh_auth_key" text ,
15+ " deleted" bool NOT NULL ,
16+ " created_on" timestamptz NOT NULL ,
17+ " created_by" int4 NOT NULL ,
18+ " updated_on" timestamptz NOT NULL ,
19+ " updated_by" int4 NOT NULL ,
20+ PRIMARY KEY (" id" )
21+ );
22+
23+ ALTER TABLE cluster
24+ ADD CONSTRAINT fk_cluster_remote_connection_config
25+ FOREIGN KEY (remote_connection_config_id)
26+ REFERENCES remote_connection_config (id);
27+
28+ ALTER TABLE docker_artifact_store
29+ ADD CONSTRAINT fk_docker_artifact_store_remote_connection_config
30+ FOREIGN KEY (remote_connection_config_id)
31+ REFERENCES remote_connection_config (id);
32+
You can’t perform that action at this time.
0 commit comments