mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-12-24 12:14:40 +08:00
feat: added basic unit testing. Also separated migrations to separate sql and go migrations. This makes it easier to unit test where we just need sql migrations.
This commit is contained in:
15
db/sql/20191210181732_create_workflow_template_versions.sql
Normal file
15
db/sql/20191210181732_create_workflow_template_versions.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE workflow_template_versions
|
||||
(
|
||||
id serial PRIMARY KEY,
|
||||
workflow_template_id integer NOT NULL REFERENCES workflow_templates ON DELETE CASCADE,
|
||||
version integer NOT NULL,
|
||||
manifest text NOT NULL,
|
||||
|
||||
-- auditing info
|
||||
created_at timestamp NOT NULL DEFAULT (NOW() at time zone 'utc'),
|
||||
modified_at timestamp
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE workflow_template_versions;
|
||||
Reference in New Issue
Block a user