Skip to content

Commit

Permalink
refactor(api): drop old table staticFiles (#6069)
Browse files Browse the repository at this point in the history
linked to #6051

Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault authored Feb 10, 2022
1 parent c679d54 commit 67f9425
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions engine/sql/api/235_drop_node_run_static_files.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- +migrate Up
DROP TABLE workflow_node_run_static_files;

-- +migrate Down
CREATE TABLE workflow_node_run_static_files
(
id BIGSERIAL PRIMARY KEY,
workflow_node_run_id BIGINT NOT NULL,
name TEXT NOT NULL,
entrypoint TEXT,
public_url TEXT NOT NULL,
created TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP
);

SELECT create_unique_index('workflow_node_run_static_files', 'IDX_NODE_RUN_STATIC_FILES_NAME_UNIQ', 'workflow_node_run_id,name');
SELECT create_foreign_key_idx_cascade('FK_WORKFLOW_NODE_RUN_STATIC_FILES_NODE_RUN', 'workflow_node_run_static_files', 'workflow_node_run', 'workflow_node_run_id', 'id');

0 comments on commit 67f9425

Please sign in to comment.