mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-02 15:55:08 +03:00
Switched use of migration utils to folder
- I'm refactoring the utils to make way for dropping permissions but the utils are in a real mess - to aid my refactoring, I want to make the utils a folder, so the migrations that require utils as a file need updating - this commit does that
This commit is contained in:
parent
f732b0181d
commit
3b860c9b0d
@ -1,6 +1,6 @@
|
||||
const ObjectID = require('bson-objectid');
|
||||
const logging = require('@tryghost/logging');
|
||||
const {createTransactionalMigration} = require('../../utils.js');
|
||||
const {createTransactionalMigration} = require('../../utils');
|
||||
|
||||
const MIGRATION_USER = 1;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
const logging = require('@tryghost/logging');
|
||||
const {chunk: chunkArray} = require('lodash');
|
||||
const {createTransactionalMigration} = require('../../utils.js');
|
||||
const {createTransactionalMigration} = require('../../utils');
|
||||
|
||||
module.exports = createTransactionalMigration(
|
||||
async function up(knex) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const logging = require('@tryghost/logging');
|
||||
const {createTransactionalMigration} = require('../../utils.js');
|
||||
const {createTransactionalMigration} = require('../../utils');
|
||||
|
||||
module.exports = createTransactionalMigration(
|
||||
async function up(knex) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {addSetting} = require('../../utils.js');
|
||||
const {addSetting} = require('../../utils');
|
||||
|
||||
module.exports = addSetting({
|
||||
key: 'editor_is_launch_complete',
|
||||
|
@ -1,5 +1,5 @@
|
||||
const logging = require('@tryghost/logging');
|
||||
const {createTransactionalMigration} = require('../../utils.js');
|
||||
const {createTransactionalMigration} = require('../../utils');
|
||||
|
||||
module.exports = createTransactionalMigration(
|
||||
async function up(knex) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {addSetting} = require('../../utils.js');
|
||||
const {addSetting} = require('../../utils');
|
||||
|
||||
module.exports = addSetting({
|
||||
key: 'default_content_visibility_tiers',
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {addSetting} = require('../../utils.js');
|
||||
const {addSetting} = require('../../utils');
|
||||
|
||||
module.exports = addSetting({
|
||||
key: 'version_notifications',
|
||||
|
@ -1,5 +1,5 @@
|
||||
const logging = require('@tryghost/logging');
|
||||
const {createTransactionalMigration} = require('../../utils.js');
|
||||
const {createTransactionalMigration} = require('../../utils');
|
||||
|
||||
module.exports = createTransactionalMigration(
|
||||
async function up(knex) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
const ObjectID = require('bson-objectid');
|
||||
const logging = require('@tryghost/logging');
|
||||
const {createTransactionalMigration} = require('../../utils.js');
|
||||
const {createTransactionalMigration} = require('../../utils');
|
||||
|
||||
const MIGRATION_USER = 1;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
const logging = require('@tryghost/logging');
|
||||
const {createTransactionalMigration} = require('../../utils.js');
|
||||
const {createTransactionalMigration} = require('../../utils');
|
||||
|
||||
module.exports = createTransactionalMigration(
|
||||
async function up(knex) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
const logging = require('@tryghost/logging');
|
||||
const {createTransactionalMigration} = require('../../utils.js');
|
||||
const {createTransactionalMigration} = require('../../utils');
|
||||
|
||||
module.exports = createTransactionalMigration(
|
||||
async function up(knex) {
|
||||
|
Loading…
Reference in New Issue
Block a user