aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-01-01 20:20:19 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2024-01-01 20:20:19 -0500
commitaa8a533c1552bdbeb26b485683ba23b37305a84d (patch)
tree9c5841a1d62efb8e94422bce256858fd1bee7df6
parentAdd changelog entry for previous change (diff)
downloadcli-aa8a533c1552bdbeb26b485683ba23b37305a84d.zip
Use 14 character long version instead 32
-rw-r--r--CHANGELOG.md2
-rw-r--r--internal/repositories/migration.go2
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 {