onepanel/db/sql/20200425173049_workspace_template_versions.sql

16 lines
596 B
MySQL
Raw Normal View History

-- +goose Up
CREATE TABLE workspace_template_versions
(
2020-04-27 02:27:18 +08:00
id serial PRIMARY KEY,
workspace_template_id integer NOT NULL REFERENCES workspace_templates ON DELETE CASCADE,
version integer NOT NULL,
manifest text NOT NULL,
is_latest boolean DEFAULT false,
-- auditing info
2020-04-27 02:27:18 +08:00
created_at timestamp NOT NULL DEFAULT (NOW() at time zone 'utc'),
modified_at timestamp
);
-- +goose Down
DROP TABLE workspace_template_versions;