Fixing trigger saving, make (old) migration step more robust (drop if exists)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
/coverage.txt
|
||||
/*.iml
|
||||
/.env*
|
||||
/.dev*
|
||||
/.cover*
|
||||
/public_html
|
||||
/build
|
||||
|
||||
@@ -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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user