configurable migration table

This commit is contained in:
Andrea Maria Piana 2019-08-21 15:54:14 +02:00 committed by Adam Babik
parent d4b77d81b5
commit 604309dd45
No known key found for this signature in database
GPG Key ID: ED02515A1FC0D1B4
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func (m *Sqlite) ensureVersionTable() error {
query := fmt.Sprintf(` query := fmt.Sprintf(`
CREATE TABLE IF NOT EXISTS %s (version uint64,dirty bool); CREATE TABLE IF NOT EXISTS %s (version uint64,dirty bool);
CREATE UNIQUE INDEX IF NOT EXISTS version_unique ON %s (version); CREATE UNIQUE INDEX IF NOT EXISTS version_unique ON %s (version);
`, DefaultMigrationsTable, DefaultMigrationsTable) `, m.config.MigrationsTable, m.config.MigrationsTable)
if _, err := m.db.Exec(query); err != nil { if _, err := m.db.Exec(query); err != nil {
return err return err