add default config for script service

This commit is contained in:
ykomissarov committed 2019-04-02 16:51:59 +03:00
1 parent 1bc12d7a33
commit 1575a4cc34
1 file changed
+20
@@ -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