3
0

Fixing trigger saving, make (old) migration step more robust (drop if exists)

This commit is contained in:
Denis Arh
2019-05-04 12:32:55 +02:00
parent fefc75f392
commit c467edb02b
4 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,7 @@
/coverage.txt
/*.iml
/.env*
/.dev*
/.cover*
/public_html
/build

View File

@@ -76,6 +76,8 @@ func (ctrl Trigger) Update(ctx context.Context, r *request.TriggerUpdate) (inter
err error
)
mod.ID = r.TriggerID
mod.NamespaceID = r.NamespaceID
mod.ModuleID = r.ModuleID
mod.Name = r.Name
mod.Actions = r.Actions

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
DROP TABLE `settings`;
DROP TABLE IF EXISTS `settings`;
CREATE TABLE `sys_settings` (
CREATE TABLE IF NOT EXISTS `sys_settings` (
rel_owner BIGINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Value owner, 0 for global settings',
name VARCHAR(200) NOT NULL COMMENT 'Unique set of setting keys',
value JSON COMMENT 'Setting value',