diff options
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | internal/repositories/migration.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f3b449b..0cc5b41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 if it encounters an error while running a migration. Previously, it was silently failing. +- `bolt_migrations` `version` column is now 14 characters long instead of 32. + ## [0.1.0] - 2023-12-30 ### Added diff --git a/internal/repositories/migration.go b/internal/repositories/migration.go index 8fb8033..dccf8b6 100644 --- a/internal/repositories/migration.go +++ b/internal/repositories/migration.go @@ -39,7 +39,7 @@ type MigrationRepo struct { func NewMigrationRepo(db *sql.DB, c *config.Config) (*MigrationRepo, error) { _, err := db.Exec(` CREATE TABLE IF NOT EXISTS bolt_migrations( - version CHARACTER(32) PRIMARY KEY NOT NULL + version CHARACTER(14) PRIMARY KEY NOT NULL ); `) if err != nil { |