Skip to content

Commit

Permalink
simplify primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Jun 21, 2024
1 parent 835a812 commit 5fd54a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbump_sqlite/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func NewMigrator(conn *sql.DB, cfg Config) *Migrator {
// Init is a method from dbump.Migrator interface.
func (s *Migrator) Init(ctx context.Context) error {
query := fmt.Sprintf(`CREATE TABLE IF NOT EXISTS %s (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
id INTEGER PRIMARY KEY,
version INTEGER NOT NULL,
created_at TEXT NOT NULL
);`, s.cfg.tableName)
Expand Down

0 comments on commit 5fd54a3

Please sign in to comment.