Skip to content

Commit

Permalink
feat: add database mirror operations
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Jan 12, 2022
1 parent b66f061 commit f999f86
Show file tree
Hide file tree
Showing 55 changed files with 316 additions and 2,366 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
data.sqlite3
test.sqlite3

# dependencies
/node_modules
Expand Down
2 changes: 1 addition & 1 deletion migrations/20211212200953-fulltext-search.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = {
marketplaceIdentifier,
unitRegistryLink,
unitMarketplaceLink,
cooresponingAdjustmentDeclaration,
correspondingAdjustmentDeclaration,
correspondingAdjustmentStatus
);
`);
Expand Down
8 changes: 4 additions & 4 deletions migrations/20211219184405-sqlite-triggers-units.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
marketplaceIdentifier,
unitRegistryLink,
unitMarketplaceLink,
cooresponingAdjustmentDeclaration,
correspondingAdjustmentDeclaration,
correspondingAdjustmentStatus
) VALUES (
new.warehouseUnitId,
Expand All @@ -39,7 +39,7 @@ module.exports = {
new.marketplaceIdentifier,
new.unitRegistryLink,
new.unitMarketplaceLink,
new.cooresponingAdjustmentDeclaration,
new.correspondingAdjustmentDeclaration,
new.correspondingAdjustmentStatus
);
END;`);
Expand Down Expand Up @@ -69,7 +69,7 @@ module.exports = {
marketplaceIdentifier,
unitRegistryLink,
unitMarketplaceLink,
cooresponingAdjustmentDeclaration,
correspondingAdjustmentDeclaration,
correspondingAdjustmentStatus
) VALUES (
new.warehouseUnitId,
Expand All @@ -87,7 +87,7 @@ module.exports = {
new.marketplaceIdentifier,
new.unitRegistryLink,
new.unitMarketplaceLink,
new.cooresponingAdjustmentDeclaration,
new.correspondingAdjustmentDeclaration,
new.correspondingAdjustmentStatus
);
END;
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
},
"scripts": {
"requirements-check": "node --experimental-json-modules check_node_version.js",
"start": "node --experimental-specifier-resolution=node --no-warnings ./src/server.js",
"test": "mocha tests/**/*.spec.js --reporter spec --exit --timeout 30000",
"start": "npx cross-env NODE_ENV=local node --experimental-specifier-resolution=node --no-warnings ./src/server.js",
"test": "npm run resetTestDb && npx cross-env NODE_ENV=test mocha tests/**/*.spec.js --reporter spec --exit --timeout 30000",
"release": "./node_modules/.bin/standard-version && git push --tags",
"postinstall": "npm run requirements-check",
"resetdb": "rm ./data.sqlite3 && npx sequelize-cli db:migrate --env local && npx sequelize-cli db:seed:all --debug --env local",
"resetReportingdb": "npx sequelize-cli db:drop --env reporting && npx sequelize-cli db:create --env reporting && npx sequelize-cli db:migrate --env reporting --debug"
"resetDb": "rm -f ./data.sqlite3 && npx sequelize-cli db:migrate --env local && npx sequelize-cli db:seed:all --debug --env local",
"resetTestDb": "rm -f ./test.sqlite3 && npx sequelize-cli db:migrate --env test && npx sequelize-cli db:seed:all --debug --env test",
"resetMirrorDb": "npx sequelize-cli db:drop --env mirror && npx sequelize-cli db:create --env mirror && npx sequelize-cli db:migrate --env mirror --debug"
},
"dependencies": {
"body-parser": "^1.19.0",
Expand Down
5 changes: 0 additions & 5 deletions src/assets/organizationIcons/algeria.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/assets/organizationIcons/andorra.svg

This file was deleted.

68 changes: 0 additions & 68 deletions src/assets/organizationIcons/argentinia.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/armenia.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/australia.svg

This file was deleted.

4 changes: 0 additions & 4 deletions src/assets/organizationIcons/austria.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/bahamas.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/barbados.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/belgium.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/bolivia.svg

This file was deleted.

11 changes: 0 additions & 11 deletions src/assets/organizationIcons/bosnia.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/botswana.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/assets/organizationIcons/brazil.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/bulgaria.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/assets/organizationIcons/cameroon.svg

This file was deleted.

7 changes: 0 additions & 7 deletions src/assets/organizationIcons/canada.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/chad.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/assets/organizationIcons/chili.svg

This file was deleted.

8 changes: 0 additions & 8 deletions src/assets/organizationIcons/china.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/colombia.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/congo.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/costa-rica.svg

This file was deleted.

30 changes: 0 additions & 30 deletions src/assets/organizationIcons/croatia.svg

This file was deleted.

8 changes: 0 additions & 8 deletions src/assets/organizationIcons/cuba.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/czech.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/organizationIcons/denmark.svg
Diff not rendered.
Loading

0 comments on commit f999f86

Please sign in to comment.