fix: postgres migration

Using postgres results in panic during migration due to "sqlite3" being
hard-coded as the db dialect for performing `ScriptMigration`.
This commit fixes this behavior by selecting the proper dialect from
config.
This commit is contained in:
David Harrigan 2025-02-22 20:13:35 -05:00
parent 1573dfcf8e
commit 235cd0ad93
3 changed files with 25 additions and 8 deletions

View file

@ -8,6 +8,12 @@ pushover:
database:
type: "sqlite"
migration: true
# these are only required for postgres
host: "secret"
port: "secret"
user: "secret"
password: "secret"
name: "secret"
jwt:
secret: "secret"
session_time: 168h

View file

@ -8,6 +8,12 @@ pushover:
database:
type: "sqlite"
migration: true
# these are only required for postgres
host: "secret"
port: "secret"
user: "secret"
password: "secret"
name: "secret"
jwt:
secret: "secret"
session_time: 168h