From aa8a533c1552bdbeb26b485683ba23b37305a84d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 1 Jan 2024 20:20:19 -0500 Subject: Use 14 character long version instead 32 --- CHANGELOG.md | 2 ++ internal/repositories/migration.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3