mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
Move all custom-scripts to /scripts folder
This commit is contained in:
parent
dd66921a97
commit
c1987a76fc
@ -71,6 +71,6 @@ npm run docker-test
|
||||
|
||||
1. Create `migrations/sql/NNN-your-migration-name.up.sql` with your change in SQL.
|
||||
2. Create `migrations/sql/NNN-your-migration-name.down.sql` with the rollback of your change in SQL.
|
||||
3. Run `db-migrate create your-migration-name` and edit the generated file to have this line: `module.exports = require('../lib/migrationRunner').create('NNN-your-migration-name');`
|
||||
3. Run `db-migrate create your-migration-name` and edit the generated file to have this line: `module.exports = require('../scripts/migration-runner').create('NNN-your-migration-name');`
|
||||
4. Run `db-migrate up`.
|
||||
5. Generate LB artifact using `scripts/generate-liquibase-artifact` (TODO: make this internal)
|
||||
|
@ -1 +1 @@
|
||||
module.exports = require('../lib/migrationRunner').create('001-initial-schema');
|
||||
module.exports = require('../scripts/migration-runner').create('001-initial-schema');
|
||||
|
@ -1 +1 @@
|
||||
module.exports = require('../lib/migrationRunner').create('002-add-description-to-features');
|
||||
module.exports = require('../scripts/migration-runner').create('002-add-description-to-features');
|
||||
|
@ -1,2 +1,2 @@
|
||||
module.exports = require('../lib/migrationRunner').create('003-add-parameters-template-to-strategies');
|
||||
module.exports = require('../scripts/migration-runner').create('003-add-parameters-template-to-strategies');
|
||||
|
||||
|
@ -1 +1 @@
|
||||
module.exports = require('../lib/migrationRunner').create('004-insert-default-strategy');
|
||||
module.exports = require('../scripts/migration-runner').create('004-insert-default-strategy');
|
||||
|
@ -1 +1 @@
|
||||
module.exports = require('../lib/migrationRunner').create('004-insert-default-strategy-event');
|
||||
module.exports = require('../scripts/migration-runner').create('004-insert-default-strategy-event');
|
||||
|
@ -1 +1 @@
|
||||
module.exports = require('../lib/migrationRunner').create('005-archived-flag-to-features');
|
||||
module.exports = require('../scripts/migration-runner').create('005-archived-flag-to-features');
|
||||
|
@ -1 +1 @@
|
||||
module.exports = require('../lib/migrationRunner').create('006-rename-eventtype');
|
||||
module.exports = require('../scripts/migration-runner').create('006-rename-eventtype');
|
||||
|
@ -86,7 +86,7 @@
|
||||
"xmlbuilder": "^8.2.2"
|
||||
},
|
||||
"jest": {
|
||||
"scriptPreprocessor": "<rootDir>/jest-preprocessor.js",
|
||||
"scriptPreprocessor": "<rootDir>/scripts/jest-preprocessor.js",
|
||||
"modulePathIgnorePatterns": [
|
||||
"<rootDir>/node_modules/npm"
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user