Commit 68079fab authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[#458] Fixed database migration 33

The reverse migration no 33 was fixed. Previously it did not remove one
trigger and one function it should remove.
parent 5af66c86
...@@ -136,8 +136,8 @@ func init() { ...@@ -136,8 +136,8 @@ func init() {
_, err := db.Exec(` _, err := db.Exec(`
ALTER TABLE app DROP CONSTRAINT app_name_unique; ALTER TABLE app DROP CONSTRAINT app_name_unique;
DROP TRIGGER IF EXISTS trigger_replace_machine_name on machine; DROP TRIGGER IF EXISTS trigger_replace_app_name ON machine;
DROP FUNCTION IF EXISTS replace_machine_name; DROP FUNCTION IF EXISTS replace_app_name;
DROP TRIGGER IF EXISTS trigger_validate_app_name on app; DROP TRIGGER IF EXISTS trigger_validate_app_name on app;
DROP FUNCTION IF EXISTS validate_app_name; DROP FUNCTION IF EXISTS validate_app_name;
...@@ -145,8 +145,6 @@ func init() { ...@@ -145,8 +145,6 @@ func init() {
DROP TRIGGER IF EXISTS trigger_create_default_app_name ON app; DROP TRIGGER IF EXISTS trigger_create_default_app_name ON app;
DROP FUNCTION IF EXISTS create_default_app_name; DROP FUNCTION IF EXISTS create_default_app_name;
DROP FUNCTION IF EXISTS gen_app_name_suffix;
ALTER TABLE app DROP COLUMN name; ALTER TABLE app DROP COLUMN name;
`) `)
return err return err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment