feat(F-185): completed feature
This commit is contained in:
10
project/migrations/052_reporting_payment_currency_default.js
Normal file
10
project/migrations/052_reporting_payment_currency_default.js
Normal file
@@ -0,0 +1,10 @@
|
||||
/** @param {import('node-pg-migrate').MigrationBuilder} pgm */
|
||||
exports.shorthands = undefined;
|
||||
|
||||
exports.up = (pgm) => {
|
||||
pgm.sql(`ALTER TABLE reporting_payment_lines ALTER COLUMN currency SET DEFAULT 'EUR';`);
|
||||
};
|
||||
|
||||
exports.down = (pgm) => {
|
||||
pgm.sql(`ALTER TABLE reporting_payment_lines ALTER COLUMN currency SET DEFAULT '''EUR''';`);
|
||||
};
|
||||
Reference in New Issue
Block a user