feat: drop sqlite support
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m27s
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m27s
This commit is contained in:
parent
5e00060421
commit
da718427bd
27 changed files with 1296 additions and 115 deletions
|
|
@ -26,12 +26,12 @@ type App struct {
|
|||
}
|
||||
|
||||
func New(cfg *config.Config) (*App, error) {
|
||||
database, err := db.Init(cfg.DBDriver, cfg.DBConnection)
|
||||
database, err := db.Init(cfg.DBConnection)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to initialize database: %w", err)
|
||||
}
|
||||
|
||||
err = db.RunMigrations(database.DB, cfg.DBDriver)
|
||||
err = db.RunMigrations(database.DB)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to run migrations: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue