This commit is contained in:
@@ -44,5 +44,10 @@ func Open(path string) (*sql.DB, error) {
|
||||
log.Println("[sqlite] is_active column migration applied")
|
||||
}
|
||||
|
||||
// Create scripts table if not exists
|
||||
if _, err := db.Exec(CreateScriptsTable); err != nil {
|
||||
return nil, fmt.Errorf("migrate scripts: %w", err)
|
||||
}
|
||||
|
||||
return db, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user