fix: clean stale deployments before monolith start
This commit is contained in:
17
project/migrations/061_payment_partial_refund.js
Normal file
17
project/migrations/061_payment_partial_refund.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Compatibility marker for the historical payment partial-refund migration.
|
||||
*
|
||||
* Some long-lived local databases have this migration recorded in pgmigrations,
|
||||
* but the repository no longer carried the file. node-pg-migrate rejects later
|
||||
* migrations when an already-run migration is missing from disk, so keep this
|
||||
* no-op marker to preserve ordering between 060 and 062.
|
||||
*
|
||||
* Current partial-refund schema support is already covered by previous
|
||||
* reporting/POS migrations (notably 053 and 056).
|
||||
*/
|
||||
|
||||
/** @param {import('pg-migrate').MigrationBuilder} _pgm */
|
||||
export const up = (_pgm) => {};
|
||||
|
||||
/** @param {import('pg-migrate').MigrationBuilder} _pgm */
|
||||
export const down = (_pgm) => {};
|
||||
@@ -10,7 +10,9 @@ exports.up = (pgm) => {
|
||||
default: null,
|
||||
},
|
||||
});
|
||||
pgm.addCommentOnColumn('pos_stores', 'logo_url', 'URL del logo custom para tickets TPV. Si es null, se usa el logo default /images/logo-main.png');
|
||||
pgm.sql(
|
||||
"COMMENT ON COLUMN pos_stores.logo_url IS 'URL del logo custom para tickets TPV. Si es null, se usa el logo default /images/logo-main.png'",
|
||||
);
|
||||
};
|
||||
|
||||
exports.down = (pgm) => {
|
||||
|
||||
Reference in New Issue
Block a user