Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db):
db seed
should try all known config file names by default (#…
…603)
- Loading branch information
Showing
10 changed files
with
132 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/db/test/fixtures/valid-config-files/platformatic.db.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"core": { | ||
"connectionString": "sqlite://./db" | ||
}, | ||
"server": { | ||
"hostname": "127.0.0.1", | ||
"port": 0, | ||
"logger": { | ||
"level": "info" | ||
} | ||
}, | ||
"migrations": { | ||
"dir": "./migrations", | ||
"table": "versions", | ||
"autoApply": true | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/db/test/fixtures/valid-config-files/platformatic.db.json5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
core: { | ||
connectionString: 'sqlite://./db' | ||
}, | ||
server: { | ||
hostname: '127.0.0.1', | ||
port: 0, | ||
logger: { | ||
level: 'info' | ||
} | ||
}, | ||
migrations: { | ||
dir: './migrations', | ||
table: 'versions', | ||
autoApply: true | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/db/test/fixtures/valid-config-files/platformatic.db.tml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[core] | ||
connectionString = "sqlite://./db" | ||
|
||
[server] | ||
hostname = "127.0.0.1" | ||
port = 0 | ||
|
||
[server.logger] | ||
level = "info" | ||
|
||
[migrations] | ||
dir = "./migrations" | ||
table = "versions" | ||
autoApply = true |
14 changes: 14 additions & 0 deletions
14
packages/db/test/fixtures/valid-config-files/platformatic.db.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[core] | ||
connectionString = "sqlite://./db" | ||
|
||
[server] | ||
hostname = "127.0.0.1" | ||
port = 0 | ||
|
||
[server.logger] | ||
level = "info" | ||
|
||
[migrations] | ||
dir = "./migrations" | ||
table = "versions" | ||
autoApply = true |
11 changes: 11 additions & 0 deletions
11
packages/db/test/fixtures/valid-config-files/platformatic.db.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
core: | ||
connectionString: sqlite://./db | ||
server: | ||
hostname: 127.0.0.1 | ||
port: 0 | ||
logger: | ||
level: info | ||
migrations: | ||
dir: './migrations' | ||
table: versions | ||
autoApply: true |
11 changes: 11 additions & 0 deletions
11
packages/db/test/fixtures/valid-config-files/platformatic.db.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
core: | ||
connectionString: sqlite://./db | ||
server: | ||
hostname: 127.0.0.1 | ||
port: 0 | ||
logger: | ||
level: info | ||
migrations: | ||
dir: './migrations' | ||
table: versions | ||
autoApply: true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.