migrations.go 373 B

1234567891011121314151617181920212223242526
  1. package migrations
  2. var migrationList []*migration
  3. func init() {
  4. new(migrationBuilder).
  5. desc("Create account table").
  6. sqlite(`
  7. CREATE TABLE account (
  8. id INTEGER PRIMARY KEY
  9. )
  10. `).
  11. verifyTable("account")
  12. }
  13. type SchemaVersion struct {
  14. Version int
  15. }
  16. type SchemaLog struct {
  17. Id int64
  18. Version int64
  19. Desc string
  20. Info string
  21. Error bool
  22. }