heartbeat_mig.go 502 B

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