Some checks failed
Deploy to production / deploy (push) Has been cancelled
- Modified the deployment workflow to include new migration paths for the backend, ensuring that migrations are correctly referenced in the deployment process. - Updated the `db:migrate` script in package.json to point to the `migrations-active` directory, enhancing clarity and organization of migration files. - Adjusted the deployment conditions to account for changes in migration file locations, improving the accuracy of change detection during deployments. - Removed obsolete migration files to streamline the migration process and prevent confusion.
23 lines
980 B
JavaScript
23 lines
980 B
JavaScript
/* eslint-disable */
|
|
'use strict';
|
|
|
|
module.exports = {
|
|
async up(queryInterface) {
|
|
await queryInterface.sequelize.query(`
|
|
ALTER TABLE falukant_data.falukant_user
|
|
ADD COLUMN IF NOT EXISTS certificate_productions_count_since TIMESTAMPTZ;
|
|
`);
|
|
await queryInterface.sequelize.query(`
|
|
COMMENT ON COLUMN falukant_data.falukant_user.certificate_productions_count_since IS
|
|
'Daemon/UI: Zählt nur falukant_log.production-Zeilen mit COALESCE(production_timestamp, production_date::timestamp) >= diesem Wert; bei Stufenänderung (Aufstieg/Bankrott/Erbfolge) auf NOW() (YpDaemon QUERY_UPDATE_FALUKANT_USER_CERTIFICATE). NULL = alle passenden Log-Zeilen bis zur ersten Stufenänderung nach Migration. Kein Löschen der Logs zum Reset.';
|
|
`);
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.sequelize.query(`
|
|
ALTER TABLE falukant_data.falukant_user
|
|
DROP COLUMN IF EXISTS certificate_productions_count_since;
|
|
`);
|
|
}
|
|
};
|