From 1575a4cc340212a0df97f6e98c65fed00ae9e9dc Mon Sep 17 00:00:00 2001 From: ykomissarov Date: Tue, 2 Apr 2019 16:51:59 +0300 Subject: [PATCH] add default config for script service --- ...2_add_default_config_for_script_module.sql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 migrations_temp/00023_2019-04-02_add_default_config_for_script_module.sql diff --git a/migrations_temp/00023_2019-04-02_add_default_config_for_script_module.sql b/migrations_temp/00023_2019-04-02_add_default_config_for_script_module.sql new file mode 100644 index 0000000..2cb5b16 --- /dev/null +++ b/migrations_temp/00023_2019-04-02_add_default_config_for_script_module.sql @@ -0,0 +1,20 @@ +-- +goose Up + +WITH moduleVar AS ( + INSERT INTO modules (instance_id, name, active) VALUES (1, 'script', 't') RETURNING id +) + +INSERT INTO configs (module_id, active, data) VALUES ( + (SELECT id FROM moduleVar), + 't', + ('{ + "scripts": [ + + ], + "shaderScript": "", + "scriptExecutionTimeoutMs": 1000 + }')::jsonb + ); + +-- +goose Down +