From 826cc837e36085b5c6fb3746d0e70a1ccc95894b Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 2 May 2024 13:31:18 +0200 Subject: [PATCH] feat: refs #17899 --- db/dump/fixtures.before.sql | 5 ++++- db/versions/11027-grayGalax/00-firstScript.sql | 1 + .../back/methods/travel/specs/cloneWithEntries.spec.js | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/versions/11027-grayGalax/00-firstScript.sql diff --git a/db/dump/fixtures.before.sql b/db/dump/fixtures.before.sql index 06e94c99e..52e2ccac4 100644 --- a/db/dump/fixtures.before.sql +++ b/db/dump/fixtures.before.sql @@ -3789,4 +3789,7 @@ INSERT INTO vn.workerTeam(id, team, workerFk) (8, 1, 19); INSERT INTO vn.workCenter (id, name, payrollCenterFk, counter, warehouseFk, street, geoFk, deliveryManAdjustment) - VALUES(100, 'workCenterOne', 1, NULL, 1, 'gotham', NULL, NULL); \ No newline at end of file + VALUES(100, 'workCenterOne', 1, NULL, 1, 'gotham', NULL, NULL); + +UPDATE vn.buy + SET printedStickers=NULL; \ No newline at end of file diff --git a/db/versions/11027-grayGalax/00-firstScript.sql b/db/versions/11027-grayGalax/00-firstScript.sql new file mode 100644 index 000000000..2351be7ec --- /dev/null +++ b/db/versions/11027-grayGalax/00-firstScript.sql @@ -0,0 +1 @@ +ALTER TABLE vn.buy MODIFY COLUMN printedStickers int(10) unsigned DEFAULT NULL NULL; diff --git a/modules/travel/back/methods/travel/specs/cloneWithEntries.spec.js b/modules/travel/back/methods/travel/specs/cloneWithEntries.spec.js index 950da7bb1..1f77426cd 100644 --- a/modules/travel/back/methods/travel/specs/cloneWithEntries.spec.js +++ b/modules/travel/back/methods/travel/specs/cloneWithEntries.spec.js @@ -30,6 +30,7 @@ describe('Travel cloneWithEntries()', () => { await models.Entry.destroyAll({ travelFk: newTravelId }, options); + await models.Travel.destroyById(newTravelId, options); await tx.rollback(); const travelRemoved = await models.Travel.findById(newTravelId, options);