forked from tenders-exposed/elvis-backend-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove xTEDCANID and xTEDCNID from Tender and Bid
Fixes #15
- Loading branch information
Georgiana Bere
committed
Apr 3, 2020
1 parent
89c1107
commit 1513ba7
Showing
9 changed files
with
37 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
migrations/m20200403_101942_remove_xTEDCNID_from_tender.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use strict"; | ||
exports.name = "remove xTEDCNID from tender"; | ||
|
||
|
||
exports.up = (db) => ( | ||
db.class.get('Tender') | ||
.then((Tender) => Tender.property.drop('xTEDCNID')) | ||
); | ||
|
||
exports.down = (db) => ( | ||
db.class.get('Tender') | ||
.then((Tender) => | ||
Tender.property.create([ | ||
{ | ||
name: 'xTEDCNID', | ||
type: 'String', | ||
}, | ||
])) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"use strict"; | ||
exports.name = "remove xTEDCANID from Bid"; | ||
|
||
exports.up = (db) => ( | ||
db.class.get('Bid') | ||
.then((Bid) => Bid.property.drop('xTEDCANID')) | ||
); | ||
|
||
exports.down = (db) => ( | ||
db.class.get('Bid') | ||
.then((Bid) => | ||
Bid.property.create([ | ||
{ | ||
name: 'xTEDCANID', | ||
type: 'String', | ||
}, | ||
])) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters