|
@@ -65,4 +65,19 @@ func addAlertMigrations(mg *Migrator) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
mg.AddMigration("create alert_heartbeat table v1", NewAddTableMigration(alert_heartbeat))
|
|
mg.AddMigration("create alert_heartbeat table v1", NewAddTableMigration(alert_heartbeat))
|
|
|
|
|
+
|
|
|
|
|
+ alert_notification := Table{
|
|
|
|
|
+ Name: "alert_notification",
|
|
|
|
|
+ Columns: []*Column{
|
|
|
|
|
+ {Name: "id", Type: DB_BigInt, IsPrimaryKey: true, IsAutoIncrement: true},
|
|
|
|
|
+ {Name: "org_id", Type: DB_BigInt, Nullable: false},
|
|
|
|
|
+ {Name: "name", Type: DB_NVarchar, Length: 255, Nullable: false},
|
|
|
|
|
+ {Name: "type", Type: DB_NVarchar, Length: 255, Nullable: false},
|
|
|
|
|
+ {Name: "settings", Type: DB_Text, Nullable: false},
|
|
|
|
|
+ {Name: "created", Type: DB_DateTime, Nullable: false},
|
|
|
|
|
+ {Name: "updated", Type: DB_DateTime, Nullable: false},
|
|
|
|
|
+ },
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ mg.AddMigration("create alert_notification table v1", NewAddTableMigration(alert_notification))
|
|
|
}
|
|
}
|