heartbeat_mig.go 597 B

123456789101112131415161718
  1. package migrations
  2. // // create table
  3. // mg.AddMigration("create alert table v1", NewAddTableMigration(alertV1))
  4. //
  5. // alert_heartbeat := Table{
  6. // Name: "alert_heartbeat",
  7. // Columns: []*Column{
  8. // {Name: "id", Type: DB_BigInt, IsPrimaryKey: true, IsAutoIncrement: true},
  9. // {Name: "server_id", Type: DB_NVarchar, Length: 50, Nullable: false},
  10. // {Name: "created", Type: DB_DateTime, Nullable: false},
  11. // {Name: "updated", Type: DB_DateTime, Nullable: false},
  12. // },
  13. // }
  14. //
  15. // mg.AddMigration("create alert_heartbeat table v1", NewAddTableMigration(alert_heartbeat))
  16. //
  17. //