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:
parent
1573dfcf8e
commit
235cd0ad93
3 changed files with 25 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue