mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 01:11:13 +03:00
feat: Add gallery for attachments
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
const config = require('./knexfile');
|
||||
const initKnex = require('knex');
|
||||
|
||||
const knex = require('knex')(config); // eslint-disable-line import/order
|
||||
const knexfile = require('./knexfile');
|
||||
|
||||
const knex = initKnex(knexfile);
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
const isExists = await knex.schema.hasTable(config.migrations.tableName);
|
||||
const isExists = await knex.schema.hasTable(knexfile.migrations.tableName);
|
||||
|
||||
await knex.migrate.latest();
|
||||
if (!isExists) {
|
||||
|
||||
Reference in New Issue
Block a user