mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
feat: Use environment variables for default admin configuration
This commit is contained in:
parent
a34d8e9753
commit
91bc889fed
20 changed files with 224 additions and 121 deletions
|
@ -6,12 +6,8 @@ const knex = initKnex(knexfile);
|
|||
|
||||
(async () => {
|
||||
try {
|
||||
const isExists = await knex.schema.hasTable(knexfile.migrations.tableName);
|
||||
|
||||
await knex.migrate.latest();
|
||||
if (!isExists) {
|
||||
await knex.seed.run();
|
||||
}
|
||||
await knex.seed.run();
|
||||
} catch (error) {
|
||||
process.exitCode = 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue