-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gaurav Gahlot <[email protected]>
- Loading branch information
1 parent
24b622f
commit ea5ece4
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package migration | ||
|
||
import migrate "github.com/rubenv/sql-migrate" | ||
|
||
// Get202103261030 removes the event system tables and triggers. | ||
// | ||
// Fixes: https://github.com/tinkerbell/tink/issues/464 | ||
// | ||
// The event system in place relies on triggers. | ||
// It causes many problems because of its 8k characters limitation. | ||
// CAPT is suffering from this limitation. | ||
func Get2021032610300() *migrate.Migration { | ||
return &migrate.Migration{ | ||
Id: "2021032610300-drop-events-system", | ||
Up: []string{` | ||
DROP TABLE IF EXISTS events CASCADE; | ||
DROP TRIGGER IF EXISTS events_channel ON events; | ||
DROP TRIGGER IF EXISTS hardware_event_trigger ON hardware; | ||
DROP TRIGGER IF EXISTS template_event_trigger ON template; | ||
DROP TRIGGER IF EXISTS workflow_event_trigger ON workflow; | ||
DROP TYPE IF EXISTS resource_type; | ||
DROP TYPE IF EXISTS event_type; | ||
`}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters