Skip to content

Commit

Permalink
Merge branch 'master' into query-changes-1
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Feb 8, 2025
2 parents 0b60e85 + a1db5fb commit a0b70a3
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/bin/check-migrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// including this file, may be copied, modified, propagated, or distributed
// except according to the terms contained in the LICENSE file.

const { withKnex, checkMigrations } = require('../model/migrate');
const { withKnex, checkMigrations } = require('../model/knex-migrator');

(async () => {
try {
Expand Down
2 changes: 1 addition & 1 deletion lib/bin/check-open-db-queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// including this file, may be copied, modified, propagated, or distributed
// except according to the terms contained in the LICENSE file.

const { withKnex } = require('../model/migrate');
const { withKnex } = require('../model/knex-migrator');

(async () => {
try {
Expand Down
2 changes: 1 addition & 1 deletion lib/bin/run-migrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// including this file, may be copied, modified, propagated, or distributed
// except according to the terms contained in the LICENSE file.

const { withKnex, migrate } = require('../model/migrate');
const { withKnex, migrate } = require('../model/knex-migrator');

(async () => {
try {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/model/migrations/20191231-02-add-schema-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const up = async (db) => {
// this config hardcoding would be dangerous with tests except that
// tests will never invoke this path.
const config = require('config').get('default.database');
const db2 = require('../migrate').knexConnect(config); // eslint-disable-line no-restricted-modules
const db2 = require('../knex-migrator').knexConnect(config); // eslint-disable-line no-restricted-modules
return db2.select('projectId', 'xmlFormId').from('forms').where({ currentDefId: formDefId })
.then(([{ projectId, xmlFormId }]) => {
process.stderr.write(`\n!!!!\nThe database upgrade to v0.8 has failed because the Form '${xmlFormId}' in Project ${projectId} has an invalid schema. It tries to bind multiple instance nodes at the path ${path}.\n!!!!\n\n`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { testContainerFullTrx, testServiceFullTrx } = require('../setup');
const { sql } = require('slonik');
const { createReadStream } = require('fs');
const { Actor, Config } = require(appRoot + '/lib/model/frames');
const { withKnex } = require(appRoot + '/lib/model/migrate');
const { withKnex } = require(appRoot + '/lib/model/knex-migrator');
const { exhaust } = require(appRoot + '/lib/worker/worker');

const testData = require('../../data/xml');
Expand Down
2 changes: 1 addition & 1 deletion test/integration/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const testData = require('../data/xml');

// knex things.
const config = require('config');
const { knexConnect } = require(appRoot + '/lib/model/migrate');
const { knexConnect } = require(appRoot + '/lib/model/knex-migrator');

// slonik connection pool
const { slonikPool } = require(appRoot + '/lib/external/slonik');
Expand Down

0 comments on commit a0b70a3

Please sign in to comment.