fix: clean stale deployments before monolith start

This commit is contained in:
Deploy
2026-08-25 21:59:29 +02:00
parent 9ae5f8e0de
commit 66a08b61d2
4 changed files with 89 additions and 22 deletions

View 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) => {};

View File

@@ -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) => {