diff --git a/lib/database/index.js b/lib/database/index.js index d2108f841a..627efff15f 100644 --- a/lib/database/index.js +++ b/lib/database/index.js @@ -221,7 +221,7 @@ class SequelizeDatabase { getUmzug(migrationsDirectory, storage) { return new Umzug({ migrations: { - glob: `${migrationsDirectory}/*.js`, + glob: `${migrationsDirectory}/**/*.js`, resolve: ({ name, path: migrationPath, context }) => { const migration = require(migrationPath || ''); diff --git a/lib/database/migrations/20200505195925-create-log.js b/lib/database/migrations/released/before-0-100-0/20200505195925-create-log.js similarity index 100% rename from lib/database/migrations/20200505195925-create-log.js rename to lib/database/migrations/released/before-0-100-0/20200505195925-create-log.js diff --git a/lib/database/migrations/20200505205233-create-user.js b/lib/database/migrations/released/before-0-100-0/20200505205233-create-user.js similarity index 100% rename from lib/database/migrations/20200505205233-create-user.js rename to lib/database/migrations/released/before-0-100-0/20200505205233-create-user.js diff --git a/lib/database/migrations/20200505214213-create-run.js b/lib/database/migrations/released/before-0-100-0/20200505214213-create-run.js similarity index 100% rename from lib/database/migrations/20200505214213-create-run.js rename to lib/database/migrations/released/before-0-100-0/20200505214213-create-run.js diff --git a/lib/database/migrations/20200506003500-create-tag.js b/lib/database/migrations/released/before-0-100-0/20200506003500-create-tag.js similarity index 100% rename from lib/database/migrations/20200506003500-create-tag.js rename to lib/database/migrations/released/before-0-100-0/20200506003500-create-tag.js diff --git a/lib/database/migrations/20200506004950-create-flp-roles.js b/lib/database/migrations/released/before-0-100-0/20200506004950-create-flp-roles.js similarity index 100% rename from lib/database/migrations/20200506004950-create-flp-roles.js rename to lib/database/migrations/released/before-0-100-0/20200506004950-create-flp-roles.js diff --git a/lib/database/migrations/20200506093229-create-epn-role-session.js b/lib/database/migrations/released/before-0-100-0/20200506093229-create-epn-role-session.js similarity index 100% rename from lib/database/migrations/20200506093229-create-epn-role-session.js rename to lib/database/migrations/released/before-0-100-0/20200506093229-create-epn-role-session.js diff --git a/lib/database/migrations/20200507202304-create-log-runs.js b/lib/database/migrations/released/before-0-100-0/20200507202304-create-log-runs.js similarity index 100% rename from lib/database/migrations/20200507202304-create-log-runs.js rename to lib/database/migrations/released/before-0-100-0/20200507202304-create-log-runs.js diff --git a/lib/database/migrations/20200507230653-create-log-tags.js b/lib/database/migrations/released/before-0-100-0/20200507230653-create-log-tags.js similarity index 100% rename from lib/database/migrations/20200507230653-create-log-tags.js rename to lib/database/migrations/released/before-0-100-0/20200507230653-create-log-tags.js diff --git a/lib/database/migrations/20200508115356-add-associations.js b/lib/database/migrations/released/before-0-100-0/20200508115356-add-associations.js similarity index 100% rename from lib/database/migrations/20200508115356-add-associations.js rename to lib/database/migrations/released/before-0-100-0/20200508115356-add-associations.js diff --git a/lib/database/migrations/20200508120618-create-run_tags.js b/lib/database/migrations/released/before-0-100-0/20200508120618-create-run_tags.js similarity index 100% rename from lib/database/migrations/20200508120618-create-run_tags.js rename to lib/database/migrations/released/before-0-100-0/20200508120618-create-run_tags.js diff --git a/lib/database/migrations/20200508154634-log-indexes.js b/lib/database/migrations/released/before-0-100-0/20200508154634-log-indexes.js similarity index 100% rename from lib/database/migrations/20200508154634-log-indexes.js rename to lib/database/migrations/released/before-0-100-0/20200508154634-log-indexes.js diff --git a/lib/database/migrations/20200511132541-log-tags-relation.js b/lib/database/migrations/released/before-0-100-0/20200511132541-log-tags-relation.js similarity index 100% rename from lib/database/migrations/20200511132541-log-tags-relation.js rename to lib/database/migrations/released/before-0-100-0/20200511132541-log-tags-relation.js diff --git a/lib/database/migrations/20200511132542-log-runs-relation.js b/lib/database/migrations/released/before-0-100-0/20200511132542-log-runs-relation.js similarity index 100% rename from lib/database/migrations/20200511132542-log-runs-relation.js rename to lib/database/migrations/released/before-0-100-0/20200511132542-log-runs-relation.js diff --git a/lib/database/migrations/20200525101348-create-subsystem.js b/lib/database/migrations/released/before-0-100-0/20200525101348-create-subsystem.js similarity index 100% rename from lib/database/migrations/20200525101348-create-subsystem.js rename to lib/database/migrations/released/before-0-100-0/20200525101348-create-subsystem.js diff --git a/lib/database/migrations/20200525135006-log-subsystems-relation.js b/lib/database/migrations/released/before-0-100-0/20200525135006-log-subsystems-relation.js similarity index 100% rename from lib/database/migrations/20200525135006-log-subsystems-relation.js rename to lib/database/migrations/released/before-0-100-0/20200525135006-log-subsystems-relation.js diff --git a/lib/database/migrations/20200621102228-user.js b/lib/database/migrations/released/before-0-100-0/20200621102228-user.js similarity index 100% rename from lib/database/migrations/20200621102228-user.js rename to lib/database/migrations/released/before-0-100-0/20200621102228-user.js diff --git a/lib/database/migrations/20200623201423-create-attachment.js b/lib/database/migrations/released/before-0-100-0/20200623201423-create-attachment.js similarity index 100% rename from lib/database/migrations/20200623201423-create-attachment.js rename to lib/database/migrations/released/before-0-100-0/20200623201423-create-attachment.js diff --git a/lib/database/migrations/20200623201424-attachment-indexes.js b/lib/database/migrations/released/before-0-100-0/20200623201424-attachment-indexes.js similarity index 100% rename from lib/database/migrations/20200623201424-attachment-indexes.js rename to lib/database/migrations/released/before-0-100-0/20200623201424-attachment-indexes.js diff --git a/lib/database/migrations/20200724114841-add-run-number.js b/lib/database/migrations/released/before-0-100-0/20200724114841-add-run-number.js similarity index 100% rename from lib/database/migrations/20200724114841-add-run-number.js rename to lib/database/migrations/released/before-0-100-0/20200724114841-add-run-number.js diff --git a/lib/database/migrations/20200914120527-logs-remove-user-constraint.js b/lib/database/migrations/released/before-0-100-0/20200914120527-logs-remove-user-constraint.js similarity index 100% rename from lib/database/migrations/20200914120527-logs-remove-user-constraint.js rename to lib/database/migrations/released/before-0-100-0/20200914120527-logs-remove-user-constraint.js diff --git a/lib/database/migrations/20200921180609-add-flp-readout-bytes.js b/lib/database/migrations/released/before-0-100-0/20200921180609-add-flp-readout-bytes.js similarity index 100% rename from lib/database/migrations/20200921180609-add-flp-readout-bytes.js rename to lib/database/migrations/released/before-0-100-0/20200921180609-add-flp-readout-bytes.js diff --git a/lib/database/migrations/20201021084028-create-flp-runs.js b/lib/database/migrations/released/before-0-100-0/20201021084028-create-flp-runs.js similarity index 100% rename from lib/database/migrations/20201021084028-create-flp-runs.js rename to lib/database/migrations/released/before-0-100-0/20201021084028-create-flp-runs.js diff --git a/lib/database/migrations/20201021084436-flp-runs-relation.js b/lib/database/migrations/released/before-0-100-0/20201021084436-flp-runs-relation.js similarity index 100% rename from lib/database/migrations/20201021084436-flp-runs-relation.js rename to lib/database/migrations/released/before-0-100-0/20201021084436-flp-runs-relation.js diff --git a/lib/database/migrations/20201121200636-run-tags-relation.js b/lib/database/migrations/released/before-0-100-0/20201121200636-run-tags-relation.js similarity index 100% rename from lib/database/migrations/20201121200636-run-tags-relation.js rename to lib/database/migrations/released/before-0-100-0/20201121200636-run-tags-relation.js diff --git a/lib/database/migrations/20220125151025-create-tag.js b/lib/database/migrations/released/before-0-100-0/20220125151025-create-tag.js similarity index 100% rename from lib/database/migrations/20220125151025-create-tag.js rename to lib/database/migrations/released/before-0-100-0/20220125151025-create-tag.js diff --git a/lib/database/migrations/20220214122956-extend_run_quality_column_values.js b/lib/database/migrations/released/before-0-100-0/20220214122956-extend_run_quality_column_values.js similarity index 100% rename from lib/database/migrations/20220214122956-extend_run_quality_column_values.js rename to lib/database/migrations/released/before-0-100-0/20220214122956-extend_run_quality_column_values.js diff --git a/lib/database/migrations/20220309132744-create-tag.js b/lib/database/migrations/released/before-0-100-0/20220309132744-create-tag.js similarity index 100% rename from lib/database/migrations/20220309132744-create-tag.js rename to lib/database/migrations/released/before-0-100-0/20220309132744-create-tag.js diff --git a/lib/database/migrations/20220404093143-create-environments-table.js b/lib/database/migrations/released/before-0-100-0/20220404093143-create-environments-table.js similarity index 100% rename from lib/database/migrations/20220404093143-create-environments-table.js rename to lib/database/migrations/released/before-0-100-0/20220404093143-create-environments-table.js diff --git a/lib/database/migrations/20220412121531-create-env-id-for-runs.js b/lib/database/migrations/released/before-0-100-0/20220412121531-create-env-id-for-runs.js similarity index 100% rename from lib/database/migrations/20220412121531-create-env-id-for-runs.js rename to lib/database/migrations/released/before-0-100-0/20220412121531-create-env-id-for-runs.js diff --git a/lib/database/migrations/20220503095951-run-lhc-variables.js b/lib/database/migrations/released/before-0-100-0/20220503095951-run-lhc-variables.js similarity index 100% rename from lib/database/migrations/20220503095951-run-lhc-variables.js rename to lib/database/migrations/released/before-0-100-0/20220503095951-run-lhc-variables.js diff --git a/lib/database/migrations/20220503101937-lhc-fills-table-creation.js b/lib/database/migrations/released/before-0-100-0/20220503101937-lhc-fills-table-creation.js similarity index 100% rename from lib/database/migrations/20220503101937-lhc-fills-table-creation.js rename to lib/database/migrations/released/before-0-100-0/20220503101937-lhc-fills-table-creation.js diff --git a/lib/database/migrations/20220511102048-update-run-detectors-column.js b/lib/database/migrations/released/before-0-100-0/20220511102048-update-run-detectors-column.js similarity index 100% rename from lib/database/migrations/20220511102048-update-run-detectors-column.js rename to lib/database/migrations/released/before-0-100-0/20220511102048-update-run-detectors-column.js diff --git a/lib/database/migrations/20220513075839-create-reason-type-table.js b/lib/database/migrations/released/before-0-100-0/20220513075839-create-reason-type-table.js similarity index 100% rename from lib/database/migrations/20220513075839-create-reason-type-table.js rename to lib/database/migrations/released/before-0-100-0/20220513075839-create-reason-type-table.js diff --git a/lib/database/migrations/20220513153414-crete-eor-reason-table.js b/lib/database/migrations/released/before-0-100-0/20220513153414-crete-eor-reason-table.js similarity index 100% rename from lib/database/migrations/20220513153414-crete-eor-reason-table.js rename to lib/database/migrations/released/before-0-100-0/20220513153414-crete-eor-reason-table.js diff --git a/lib/database/migrations/20220519134614-add-unique-run-number-constraint.js b/lib/database/migrations/released/before-0-100-0/20220519134614-add-unique-run-number-constraint.js similarity index 100% rename from lib/database/migrations/20220519134614-add-unique-run-number-constraint.js rename to lib/database/migrations/released/before-0-100-0/20220519134614-add-unique-run-number-constraint.js diff --git a/lib/database/migrations/20220623125959-lhc-polarity.js b/lib/database/migrations/released/before-0-100-0/20220623125959-lhc-polarity.js similarity index 100% rename from lib/database/migrations/20220623125959-lhc-polarity.js rename to lib/database/migrations/released/before-0-100-0/20220623125959-lhc-polarity.js diff --git a/lib/database/migrations/20220704125109-run-techincal-board-support-fields.js b/lib/database/migrations/released/before-0-100-0/20220704125109-run-techincal-board-support-fields.js similarity index 100% rename from lib/database/migrations/20220704125109-run-techincal-board-support-fields.js rename to lib/database/migrations/released/before-0-100-0/20220704125109-run-techincal-board-support-fields.js diff --git a/lib/database/migrations/20220726074211-run-lhc-period.js b/lib/database/migrations/released/before-0-100-0/20220726074211-run-lhc-period.js similarity index 100% rename from lib/database/migrations/20220726074211-run-lhc-period.js rename to lib/database/migrations/released/before-0-100-0/20220726074211-run-lhc-period.js diff --git a/lib/database/migrations/20220726144647-run-trigger-value.js b/lib/database/migrations/released/before-0-100-0/20220726144647-run-trigger-value.js similarity index 100% rename from lib/database/migrations/20220726144647-run-trigger-value.js rename to lib/database/migrations/released/before-0-100-0/20220726144647-run-trigger-value.js diff --git a/lib/database/migrations/20220801093722-run-odc-topology-fullname.js b/lib/database/migrations/released/before-0-100-0/20220801093722-run-odc-topology-fullname.js similarity index 100% rename from lib/database/migrations/20220801093722-run-odc-topology-fullname.js rename to lib/database/migrations/released/before-0-100-0/20220801093722-run-odc-topology-fullname.js diff --git a/lib/database/migrations/20220811120113-run-type-table.js b/lib/database/migrations/released/before-0-100-0/20220811120113-run-type-table.js similarity index 100% rename from lib/database/migrations/20220811120113-run-type-table.js rename to lib/database/migrations/released/before-0-100-0/20220811120113-run-type-table.js diff --git a/lib/database/migrations/20220812094302-run-type-id-run-table.js b/lib/database/migrations/released/before-0-100-0/20220812094302-run-type-id-run-table.js similarity index 100% rename from lib/database/migrations/20220812094302-run-type-id-run-table.js rename to lib/database/migrations/released/before-0-100-0/20220812094302-run-type-id-run-table.js diff --git a/lib/database/migrations/20220819093639-aliecs-pdp-readout-run-values.js b/lib/database/migrations/released/before-0-100-0/20220819093639-aliecs-pdp-readout-run-values.js similarity index 100% rename from lib/database/migrations/20220819093639-aliecs-pdp-readout-run-values.js rename to lib/database/migrations/released/before-0-100-0/20220819093639-aliecs-pdp-readout-run-values.js diff --git a/lib/database/migrations/20220926072445-runs-ccdb-fields-added.js b/lib/database/migrations/released/before-0-100-0/20220926072445-runs-ccdb-fields-added.js similarity index 100% rename from lib/database/migrations/20220926072445-runs-ccdb-fields-added.js rename to lib/database/migrations/released/before-0-100-0/20220926072445-runs-ccdb-fields-added.js diff --git a/lib/database/migrations/20220930085415-create-detectors-table.js b/lib/database/migrations/released/before-0-100-0/20220930085415-create-detectors-table.js similarity index 100% rename from lib/database/migrations/20220930085415-create-detectors-table.js rename to lib/database/migrations/released/before-0-100-0/20220930085415-create-detectors-table.js diff --git a/lib/database/migrations/20220930092539-run-detector-table-creation.js b/lib/database/migrations/released/before-0-100-0/20220930092539-run-detector-table-creation.js similarity index 100% rename from lib/database/migrations/20220930092539-run-detector-table-creation.js rename to lib/database/migrations/released/before-0-100-0/20220930092539-run-detector-table-creation.js diff --git a/lib/database/migrations/20221010120629-convert-run-detectors-to-separate-table.js b/lib/database/migrations/released/before-0-100-0/20221010120629-convert-run-detectors-to-separate-table.js similarity index 100% rename from lib/database/migrations/20221010120629-convert-run-detectors-to-separate-table.js rename to lib/database/migrations/released/before-0-100-0/20221010120629-convert-run-detectors-to-separate-table.js diff --git a/lib/database/migrations/20221013114826-run-table-detectors-rename.js b/lib/database/migrations/released/before-0-100-0/20221013114826-run-table-detectors-rename.js similarity index 100% rename from lib/database/migrations/20221013114826-run-table-detectors-rename.js rename to lib/database/migrations/released/before-0-100-0/20221013114826-run-table-detectors-rename.js diff --git a/lib/database/migrations/20221017102948-archive-tags.js b/lib/database/migrations/released/before-0-100-0/20221017102948-archive-tags.js similarity index 100% rename from lib/database/migrations/20221017102948-archive-tags.js rename to lib/database/migrations/released/before-0-100-0/20221017102948-archive-tags.js diff --git a/lib/database/migrations/20221116132910-run-detector-quality-update.js b/lib/database/migrations/released/before-0-100-0/20221116132910-run-detector-quality-update.js similarity index 100% rename from lib/database/migrations/20221116132910-run-detector-quality-update.js rename to lib/database/migrations/released/before-0-100-0/20221116132910-run-detector-quality-update.js diff --git a/lib/database/migrations/20221207075506-index-log-content.js b/lib/database/migrations/released/before-0-100-0/20221207075506-index-log-content.js similarity index 100% rename from lib/database/migrations/20221207075506-index-log-content.js rename to lib/database/migrations/released/before-0-100-0/20221207075506-index-log-content.js diff --git a/lib/database/migrations/20221214064931-merge-flp-runs-in-flp-roles.js b/lib/database/migrations/released/before-0-100-0/20221214064931-merge-flp-runs-in-flp-roles.js similarity index 100% rename from lib/database/migrations/20221214064931-merge-flp-runs-in-flp-roles.js rename to lib/database/migrations/released/before-0-100-0/20221214064931-merge-flp-runs-in-flp-roles.js diff --git a/lib/database/migrations/20230120160345-add-environment-history.js b/lib/database/migrations/released/before-0-100-0/20230120160345-add-environment-history.js similarity index 100% rename from lib/database/migrations/20230120160345-add-environment-history.js rename to lib/database/migrations/released/before-0-100-0/20230120160345-add-environment-history.js diff --git a/lib/database/migrations/20230201135752-make-detector-unique.js b/lib/database/migrations/released/before-0-100-0/20230201135752-make-detector-unique.js similarity index 100% rename from lib/database/migrations/20230201135752-make-detector-unique.js rename to lib/database/migrations/released/before-0-100-0/20230201135752-make-detector-unique.js diff --git a/lib/database/migrations/20230213082905-run-quality-unknown-to-null.js b/lib/database/migrations/released/before-0-100-0/20230213082905-run-quality-unknown-to-null.js similarity index 100% rename from lib/database/migrations/20230213082905-run-quality-unknown-to-null.js rename to lib/database/migrations/released/before-0-100-0/20230213082905-run-quality-unknown-to-null.js diff --git a/lib/database/migrations/20230411123947-add-tag-description.js b/lib/database/migrations/released/before-0-100-0/20230411123947-add-tag-description.js similarity index 100% rename from lib/database/migrations/20230411123947-add-tag-description.js rename to lib/database/migrations/released/before-0-100-0/20230411123947-add-tag-description.js diff --git a/lib/database/migrations/20230424121312-add-dpl-process.js b/lib/database/migrations/released/before-0-100-0/20230424121312-add-dpl-process.js similarity index 100% rename from lib/database/migrations/20230424121312-add-dpl-process.js rename to lib/database/migrations/released/before-0-100-0/20230424121312-add-dpl-process.js diff --git a/lib/database/migrations/20230630155135-use-uint-64-readout-counters.js b/lib/database/migrations/released/before-0-100-0/20230630155135-use-uint-64-readout-counters.js similarity index 100% rename from lib/database/migrations/20230630155135-use-uint-64-readout-counters.js rename to lib/database/migrations/released/before-0-100-0/20230630155135-use-uint-64-readout-counters.js diff --git a/lib/database/migrations/20230706083148-add-run-definition-column.js b/lib/database/migrations/released/before-0-100-0/20230706083148-add-run-definition-column.js similarity index 97% rename from lib/database/migrations/20230706083148-add-run-definition-column.js rename to lib/database/migrations/released/before-0-100-0/20230706083148-add-run-definition-column.js index 1a967b9b9c..da9c8da5ab 100644 --- a/lib/database/migrations/20230706083148-add-run-definition-column.js +++ b/lib/database/migrations/released/before-0-100-0/20230706083148-add-run-definition-column.js @@ -13,7 +13,7 @@ 'use strict'; -const { RUN_DEFINITIONS } = require('../../domain/enums/RunDefinition.js'); +const { RUN_DEFINITIONS } = require('../../../../domain/enums/RunDefinition.js'); const SET_PHYSICS_DEFINITION = ` UPDATE runs r diff --git a/lib/database/migrations/20230717163538-add-fill-statistics-view.js b/lib/database/migrations/released/before-0-100-0/20230717163538-add-fill-statistics-view.js similarity index 100% rename from lib/database/migrations/20230717163538-add-fill-statistics-view.js rename to lib/database/migrations/released/before-0-100-0/20230717163538-add-fill-statistics-view.js diff --git a/lib/database/migrations/20230802095128-create-log-environments.js b/lib/database/migrations/released/before-0-100-0/20230802095128-create-log-environments.js similarity index 100% rename from lib/database/migrations/20230802095128-create-log-environments.js rename to lib/database/migrations/released/before-0-100-0/20230802095128-create-log-environments.js diff --git a/lib/database/migrations/20230809084256-create-log-lhcfills.js b/lib/database/migrations/released/before-0-100-0/20230809084256-create-log-lhcfills.js similarity index 100% rename from lib/database/migrations/20230809084256-create-log-lhcfills.js rename to lib/database/migrations/released/before-0-100-0/20230809084256-create-log-lhcfills.js diff --git a/lib/database/migrations/20230821070256-add-run-calibration-status.js b/lib/database/migrations/released/before-0-100-0/20230821070256-add-run-calibration-status.js similarity index 91% rename from lib/database/migrations/20230821070256-add-run-calibration-status.js rename to lib/database/migrations/released/before-0-100-0/20230821070256-add-run-calibration-status.js index 1b4535d927..f5288e95ff 100644 --- a/lib/database/migrations/20230821070256-add-run-calibration-status.js +++ b/lib/database/migrations/released/before-0-100-0/20230821070256-add-run-calibration-status.js @@ -1,7 +1,7 @@ 'use strict'; -const { RUN_CALIBRATION_STATUS, RunCalibrationStatus } = require('../../domain/enums/RunCalibrationStatus.js'); -const { RunDefinition } = require('../../domain/enums/RunDefinition.js'); +const { RUN_CALIBRATION_STATUS, RunCalibrationStatus } = require('../../../../domain/enums/RunCalibrationStatus.js'); +const { RunDefinition } = require('../../../../domain/enums/RunDefinition.js'); const UPDATE_CALIBRATION_STATUS = `UPDATE runs SET calibration_status = '${RunCalibrationStatus.NO_STATUS}' diff --git a/lib/database/migrations/20230901090207-include-fill-without-runs-in-statistics.js b/lib/database/migrations/released/before-0-100-0/20230901090207-include-fill-without-runs-in-statistics.js similarity index 100% rename from lib/database/migrations/20230901090207-include-fill-without-runs-in-statistics.js rename to lib/database/migrations/released/before-0-100-0/20230901090207-include-fill-without-runs-in-statistics.js diff --git a/lib/database/migrations/20230928091453-add-run-duration-column.js b/lib/database/migrations/released/before-0-100-0/20230928091453-add-run-duration-column.js similarity index 100% rename from lib/database/migrations/20230928091453-add-run-duration-column.js rename to lib/database/migrations/released/before-0-100-0/20230928091453-add-run-duration-column.js diff --git a/lib/database/migrations/20231011103554-create-lhc-period.js b/lib/database/migrations/released/before-0-100-0/20231011103554-create-lhc-period.js similarity index 100% rename from lib/database/migrations/20231011103554-create-lhc-period.js rename to lib/database/migrations/released/before-0-100-0/20231011103554-create-lhc-period.js diff --git a/lib/database/migrations/20231025101611-create-lhc-periods-view.js b/lib/database/migrations/released/before-0-100-0/20231025101611-create-lhc-periods-view.js similarity index 100% rename from lib/database/migrations/20231025101611-create-lhc-periods-view.js rename to lib/database/migrations/released/before-0-100-0/20231025101611-create-lhc-periods-view.js diff --git a/lib/database/migrations/20231205080706-create-runs-lhc-period-index.js b/lib/database/migrations/released/before-0-100-0/20231205080706-create-runs-lhc-period-index.js similarity index 100% rename from lib/database/migrations/20231205080706-create-runs-lhc-period-index.js rename to lib/database/migrations/released/before-0-100-0/20231205080706-create-runs-lhc-period-index.js diff --git a/lib/database/migrations/20231211080706-create-data-passes.js b/lib/database/migrations/released/before-0-100-0/20231211080706-create-data-passes.js similarity index 100% rename from lib/database/migrations/20231211080706-create-data-passes.js rename to lib/database/migrations/released/before-0-100-0/20231211080706-create-data-passes.js diff --git a/lib/database/migrations/20231215113344-add-stop-and-start-users-to-run.js b/lib/database/migrations/released/before-0-100-0/20231215113344-add-stop-and-start-users-to-run.js similarity index 100% rename from lib/database/migrations/20231215113344-add-stop-and-start-users-to-run.js rename to lib/database/migrations/released/before-0-100-0/20231215113344-add-stop-and-start-users-to-run.js diff --git a/lib/database/migrations/20240108090706-create-data-passes-runs.js b/lib/database/migrations/released/before-0-100-0/20240108090706-create-data-passes-runs.js similarity index 100% rename from lib/database/migrations/20240108090706-create-data-passes-runs.js rename to lib/database/migrations/released/before-0-100-0/20240108090706-create-data-passes-runs.js diff --git a/lib/database/migrations/20240109091430-add-unique-constraint-to-data-passes.js b/lib/database/migrations/released/before-0-100-0/20240109091430-add-unique-constraint-to-data-passes.js similarity index 100% rename from lib/database/migrations/20240109091430-add-unique-constraint-to-data-passes.js rename to lib/database/migrations/released/before-0-100-0/20240109091430-add-unique-constraint-to-data-passes.js diff --git a/lib/database/migrations/20240119141430-create-simulation-passes.js b/lib/database/migrations/released/before-0-100-0/20240119141430-create-simulation-passes.js similarity index 100% rename from lib/database/migrations/20240119141430-create-simulation-passes.js rename to lib/database/migrations/released/before-0-100-0/20240119141430-create-simulation-passes.js diff --git a/lib/database/migrations/20240119152741-add-history-items-fk.js b/lib/database/migrations/released/before-0-100-0/20240119152741-add-history-items-fk.js similarity index 100% rename from lib/database/migrations/20240119152741-add-history-items-fk.js rename to lib/database/migrations/released/before-0-100-0/20240119152741-add-history-items-fk.js diff --git a/lib/database/migrations/20240123103621-add-color-to-tags.js b/lib/database/migrations/released/before-0-100-0/20240123103621-add-color-to-tags.js similarity index 100% rename from lib/database/migrations/20240123103621-add-color-to-tags.js rename to lib/database/migrations/released/before-0-100-0/20240123103621-add-color-to-tags.js diff --git a/lib/database/migrations/20240124112734-add-runs-env-id-index.js b/lib/database/migrations/released/before-0-100-0/20240124112734-add-runs-env-id-index.js similarity index 100% rename from lib/database/migrations/20240124112734-add-runs-env-id-index.js rename to lib/database/migrations/released/before-0-100-0/20240124112734-add-runs-env-id-index.js diff --git a/lib/database/migrations/20240216160730-remove-obsolate-non-physics-runs-links.js b/lib/database/migrations/released/before-0-100-0/20240216160730-remove-obsolate-non-physics-runs-links.js similarity index 93% rename from lib/database/migrations/20240216160730-remove-obsolate-non-physics-runs-links.js rename to lib/database/migrations/released/before-0-100-0/20240216160730-remove-obsolate-non-physics-runs-links.js index c9af5cfb7c..37a95bbeb5 100644 --- a/lib/database/migrations/20240216160730-remove-obsolate-non-physics-runs-links.js +++ b/lib/database/migrations/released/before-0-100-0/20240216160730-remove-obsolate-non-physics-runs-links.js @@ -1,6 +1,6 @@ 'use strict'; -const { RunDefinition } = require('../../domain/enums/RunDefinition.js'); +const { RunDefinition } = require('../../../../domain/enums/RunDefinition.js'); const REMOVE_DATA_PASSES_LINKS_TO_NON_PHYSICS_RUNS = ` DELETE dpr FROM data_passes_runs AS dpr diff --git a/lib/database/migrations/20240226102034-create-quality-control-flags-tables.js b/lib/database/migrations/released/before-0-100-0/20240226102034-create-quality-control-flags-tables.js similarity index 100% rename from lib/database/migrations/20240226102034-create-quality-control-flags-tables.js rename to lib/database/migrations/released/before-0-100-0/20240226102034-create-quality-control-flags-tables.js diff --git a/lib/database/migrations/20240403163341-create-qc-flags-tables.js b/lib/database/migrations/released/before-0-100-0/20240403163341-create-qc-flags-tables.js similarity index 100% rename from lib/database/migrations/20240403163341-create-qc-flags-tables.js rename to lib/database/migrations/released/before-0-100-0/20240403163341-create-qc-flags-tables.js diff --git a/lib/database/migrations/20240412121841-create-qc-flag-verification-table.js b/lib/database/migrations/released/before-0-100-0/20240412121841-create-qc-flag-verification-table.js similarity index 100% rename from lib/database/migrations/20240412121841-create-qc-flag-verification-table.js rename to lib/database/migrations/released/before-0-100-0/20240412121841-create-qc-flag-verification-table.js diff --git a/lib/database/migrations/20240417163030-add-Mu-and-Inel-columns-to-runs.js b/lib/database/migrations/released/before-0-100-0/20240417163030-add-Mu-and-Inel-columns-to-runs.js similarity index 100% rename from lib/database/migrations/20240417163030-add-Mu-and-Inel-columns-to-runs.js rename to lib/database/migrations/released/before-0-100-0/20240417163030-add-Mu-and-Inel-columns-to-runs.js diff --git a/lib/database/migrations/20240423072839-add-sb-duration-to-fill-statistics-view.js b/lib/database/migrations/released/before-0-100-0/20240423072839-add-sb-duration-to-fill-statistics-view.js similarity index 100% rename from lib/database/migrations/20240423072839-add-sb-duration-to-fill-statistics-view.js rename to lib/database/migrations/released/before-0-100-0/20240423072839-add-sb-duration-to-fill-statistics-view.js diff --git a/lib/database/migrations/20240424092020-add-qc-flag-effective-periods-table.js b/lib/database/migrations/released/before-0-100-0/20240424092020-add-qc-flag-effective-periods-table.js similarity index 94% rename from lib/database/migrations/20240424092020-add-qc-flag-effective-periods-table.js rename to lib/database/migrations/released/before-0-100-0/20240424092020-add-qc-flag-effective-periods-table.js index 4df3c1ec9b..7f7ca650b2 100644 --- a/lib/database/migrations/20240424092020-add-qc-flag-effective-periods-table.js +++ b/lib/database/migrations/released/before-0-100-0/20240424092020-add-qc-flag-effective-periods-table.js @@ -1,17 +1,17 @@ /** - * @license - * Copyright CERN and copyright holders of ALICE O2. This software is - * distributed under the terms of the GNU General Public License v3 (GPL - * Version 3), copied verbatim in the file "COPYING". + * @license + * Copyright CERN and copyright holders of ALICE O2. This software is + * distributed under the terms of the GNU General Public License v3 (GPL + * Version 3), copied verbatim in the file "COPYING". * - * See http://alice-o2.web.cern.ch/license for full licensing information. + * See http://alice-o2.web.cern.ch/license for full licensing information. * - * In applying this license CERN does not waive the privileges and immunities - * granted to it by virtue of its status as an Intergovernmental Organization - * or submit itself to any jurisdiction. + * In applying this license CERN does not waive the privileges and immunities + * granted to it by virtue of its status as an Intergovernmental Organization + * or submit itself to any jurisdiction. */ -const { timestampToMysql } = require('../../server/utilities/timestampToMysql'); +const { timestampToMysql } = require('../../../../server/utilities/timestampToMysql.js'); /** * Remove time segments of effective periods of flags assigned to diff --git a/lib/database/migrations/20240430100347-delete-subsystems.js b/lib/database/migrations/released/before-0-100-0/20240430100347-delete-subsystems.js similarity index 100% rename from lib/database/migrations/20240430100347-delete-subsystems.js rename to lib/database/migrations/released/before-0-100-0/20240430100347-delete-subsystems.js diff --git a/lib/database/migrations/20240528092020-add-qc-flag-origin-column.js b/lib/database/migrations/released/before-0-100-0/20240528092020-add-qc-flag-origin-column.js similarity index 100% rename from lib/database/migrations/20240528092020-add-qc-flag-origin-column.js rename to lib/database/migrations/released/before-0-100-0/20240528092020-add-qc-flag-origin-column.js diff --git a/lib/database/migrations/20240603082112-create-trigger-counters.js b/lib/database/migrations/released/before-0-100-0/20240603082112-create-trigger-counters.js similarity index 100% rename from lib/database/migrations/20240603082112-create-trigger-counters.js rename to lib/database/migrations/released/before-0-100-0/20240603082112-create-trigger-counters.js diff --git a/lib/database/migrations/20240606104339-extract-data-passes-versions-table.js b/lib/database/migrations/released/before-0-100-0/20240606104339-extract-data-passes-versions-table.js similarity index 100% rename from lib/database/migrations/20240606104339-extract-data-passes-versions-table.js rename to lib/database/migrations/released/before-0-100-0/20240606104339-extract-data-passes-versions-table.js diff --git a/lib/database/migrations/20240702074339-add-mc-reproducible-to-qc-flag-type.js b/lib/database/migrations/released/before-0-100-0/20240702074339-add-mc-reproducible-to-qc-flag-type.js similarity index 100% rename from lib/database/migrations/20240702074339-add-mc-reproducible-to-qc-flag-type.js rename to lib/database/migrations/released/before-0-100-0/20240702074339-add-mc-reproducible-to-qc-flag-type.js diff --git a/lib/database/migrations/20240702084339-add-deleted-ML-productions-column.js b/lib/database/migrations/released/before-0-100-0/20240702084339-add-deleted-ML-productions-column.js similarity index 100% rename from lib/database/migrations/20240702084339-add-deleted-ML-productions-column.js rename to lib/database/migrations/released/before-0-100-0/20240702084339-add-deleted-ML-productions-column.js diff --git a/lib/database/migrations/20240702134026-add-environment-raw-configuration.js b/lib/database/migrations/released/before-0-100-0/20240702134026-add-environment-raw-configuration.js similarity index 100% rename from lib/database/migrations/20240702134026-add-environment-raw-configuration.js rename to lib/database/migrations/released/before-0-100-0/20240702134026-add-environment-raw-configuration.js diff --git a/lib/database/migrations/20240705142020-make-effective-period-timestamps-nullable.js b/lib/database/migrations/released/before-0-100-0/20240705142020-make-effective-period-timestamps-nullable.js similarity index 100% rename from lib/database/migrations/20240705142020-make-effective-period-timestamps-nullable.js rename to lib/database/migrations/released/before-0-100-0/20240705142020-make-effective-period-timestamps-nullable.js diff --git a/lib/database/migrations/20240709105539-add-GAQ-detectors-table.js b/lib/database/migrations/released/before-0-100-0/20240709105539-add-GAQ-detectors-table.js similarity index 100% rename from lib/database/migrations/20240709105539-add-GAQ-detectors-table.js rename to lib/database/migrations/released/before-0-100-0/20240709105539-add-GAQ-detectors-table.js diff --git a/lib/database/migrations/20240712100711-environments-milliseconds-timestamps-and-remove-toredown-at.js b/lib/database/migrations/released/before-0-100-0/20240712100711-environments-milliseconds-timestamps-and-remove-toredown-at.js similarity index 100% rename from lib/database/migrations/20240712100711-environments-milliseconds-timestamps-and-remove-toredown-at.js rename to lib/database/migrations/released/before-0-100-0/20240712100711-environments-milliseconds-timestamps-and-remove-toredown-at.js diff --git a/lib/database/migrations/20240718120539-add-type-column-to-detectors.js b/lib/database/migrations/released/before-0-100-0/20240718120539-add-type-column-to-detectors.js similarity index 76% rename from lib/database/migrations/20240718120539-add-type-column-to-detectors.js rename to lib/database/migrations/released/before-0-100-0/20240718120539-add-type-column-to-detectors.js index 38df819e1b..205472669a 100644 --- a/lib/database/migrations/20240718120539-add-type-column-to-detectors.js +++ b/lib/database/migrations/released/before-0-100-0/20240718120539-add-type-column-to-detectors.js @@ -1,20 +1,7 @@ -/** - * @license - * Copyright CERN and copyright holders of ALICE O2. This software is - * distributed under the terms of the GNU General Public License v3 (GPL - * Version 3), copied verbatim in the file "COPYING". - * - * See http://alice-o2.web.cern.ch/license for full licensing information. - * - * In applying this license CERN does not waive the privileges and immunities - * granted to it by virtue of its status as an Intergovernmental Organization - * or submit itself to any jurisdiction. - */ - 'use strict'; const { Sequelize } = require('sequelize'); -const { DetectorType, DETECTOR_TYPES } = require('../../domain/enums/DetectorTypes'); +const { DetectorType, DETECTOR_TYPES } = require('../../../../domain/enums/DetectorTypes.js'); /** @type {import('sequelize-cli').Migration} */ module.exports = { diff --git a/lib/database/migrations/20240724134539-migrate-dpl-detectors-to-detectors.js b/lib/database/migrations/released/before-0-100-0/20240724134539-migrate-dpl-detectors-to-detectors.js similarity index 90% rename from lib/database/migrations/20240724134539-migrate-dpl-detectors-to-detectors.js rename to lib/database/migrations/released/before-0-100-0/20240724134539-migrate-dpl-detectors-to-detectors.js index 6c9e9f83b0..3d827a87e8 100644 --- a/lib/database/migrations/20240724134539-migrate-dpl-detectors-to-detectors.js +++ b/lib/database/migrations/released/before-0-100-0/20240724134539-migrate-dpl-detectors-to-detectors.js @@ -1,20 +1,20 @@ /** - * @license - * Copyright CERN and copyright holders of ALICE O2. This software is - * distributed under the terms of the GNU General Public License v3 (GPL - * Version 3), copied verbatim in the file "COPYING". + * @license + * Copyright CERN and copyright holders of ALICE O2. This software is + * distributed under the terms of the GNU General Public License v3 (GPL + * Version 3), copied verbatim in the file "COPYING". * - * See http://alice-o2.web.cern.ch/license for full licensing information. + * See http://alice-o2.web.cern.ch/license for full licensing information. * - * In applying this license CERN does not waive the privileges and immunities - * granted to it by virtue of its status as an Intergovernmental Organization - * or submit itself to any jurisdiction. + * In applying this license CERN does not waive the privileges and immunities + * granted to it by virtue of its status as an Intergovernmental Organization + * or submit itself to any jurisdiction. */ 'use strict'; const { Sequelize } = require('sequelize'); -const { DetectorType, DATA_TAKING_DETECTOR_TYPES } = require('../../domain/enums/DetectorTypes'); +const { DetectorType, DATA_TAKING_DETECTOR_TYPES } = require('../../../../domain/enums/DetectorTypes.js'); /** @type {import('sequelize-cli').Migration} */ module.exports = { diff --git a/lib/database/migrations/20240731134539-add-default-GAQ-detectors.js b/lib/database/migrations/released/before-0-100-0/20240731134539-add-default-GAQ-detectors.js similarity index 77% rename from lib/database/migrations/20240731134539-add-default-GAQ-detectors.js rename to lib/database/migrations/released/before-0-100-0/20240731134539-add-default-GAQ-detectors.js index aee32b248b..646bb17c29 100644 --- a/lib/database/migrations/20240731134539-add-default-GAQ-detectors.js +++ b/lib/database/migrations/released/before-0-100-0/20240731134539-add-default-GAQ-detectors.js @@ -1,14 +1,14 @@ /** - * @license - * Copyright CERN and copyright holders of ALICE O2. This software is - * distributed under the terms of the GNU General Public License v3 (GPL - * Version 3), copied verbatim in the file "COPYING". + * @license + * Copyright CERN and copyright holders of ALICE O2. This software is + * distributed under the terms of the GNU General Public License v3 (GPL + * Version 3), copied verbatim in the file "COPYING". * - * See http://alice-o2.web.cern.ch/license for full licensing information. + * See http://alice-o2.web.cern.ch/license for full licensing information. * - * In applying this license CERN does not waive the privileges and immunities - * granted to it by virtue of its status as an Intergovernmental Organization - * or submit itself to any jurisdiction. + * In applying this license CERN does not waive the privileges and immunities + * granted to it by virtue of its status as an Intergovernmental Organization + * or submit itself to any jurisdiction. */ 'use strict'; @@ -16,7 +16,7 @@ const { DEFAULT_GAQ_DETECTORS_FOR_PROTON_PROTON_RUNS, DEFAULT_GAQ_DETECTORS_FOR_LEAD_LEAD_RUNS, -} = require('../../server/services/gaq/GaqDetectorsService'); +} = require('../../../../server/services/gaq/GaqDetectorsService.js'); /** @type {import('sequelize-cli').Migration} */ module.exports = { diff --git a/lib/database/migrations/20240801103339-add-data-passes-ML-status.js b/lib/database/migrations/released/before-0-100-0/20240801103339-add-data-passes-ML-status.js similarity index 86% rename from lib/database/migrations/20240801103339-add-data-passes-ML-status.js rename to lib/database/migrations/released/before-0-100-0/20240801103339-add-data-passes-ML-status.js index 8a5981513f..815fd73815 100644 --- a/lib/database/migrations/20240801103339-add-data-passes-ML-status.js +++ b/lib/database/migrations/released/before-0-100-0/20240801103339-add-data-passes-ML-status.js @@ -1,20 +1,20 @@ /** - * @license - * Copyright CERN and copyright holders of ALICE O2. This software is - * distributed under the terms of the GNU General Public License v3 (GPL - * Version 3), copied verbatim in the file "COPYING". + * @license + * Copyright CERN and copyright holders of ALICE O2. This software is + * distributed under the terms of the GNU General Public License v3 (GPL + * Version 3), copied verbatim in the file "COPYING". * - * See http://alice-o2.web.cern.ch/license for full licensing information. + * See http://alice-o2.web.cern.ch/license for full licensing information. * - * In applying this license CERN does not waive the privileges and immunities - * granted to it by virtue of its status as an Intergovernmental Organization - * or submit itself to any jurisdiction. + * In applying this license CERN does not waive the privileges and immunities + * granted to it by virtue of its status as an Intergovernmental Organization + * or submit itself to any jurisdiction. */ 'use strict'; const { Sequelize } = require('sequelize'); -const { DATA_PASS_VERSION_STATUSES, DataPassVersionStatus } = require('../../domain/enums/DataPassVersionStatus'); +const { DATA_PASS_VERSION_STATUSES, DataPassVersionStatus } = require('../../../../domain/enums/DataPassVersionStatus.js'); /** @type {import('sequelize-cli').Migration} */ module.exports = { diff --git a/lib/database/migrations/20240806160000-add-skimming-role-to-data-passes.js b/lib/database/migrations/released/before-0-100-0/20240806160000-add-skimming-role-to-data-passes.js similarity index 78% rename from lib/database/migrations/20240806160000-add-skimming-role-to-data-passes.js rename to lib/database/migrations/released/before-0-100-0/20240806160000-add-skimming-role-to-data-passes.js index 43fc196cc7..a30a2bb3ef 100644 --- a/lib/database/migrations/20240806160000-add-skimming-role-to-data-passes.js +++ b/lib/database/migrations/released/before-0-100-0/20240806160000-add-skimming-role-to-data-passes.js @@ -1,20 +1,20 @@ /** - * @license - * Copyright CERN and copyright holders of ALICE O2. This software is - * distributed under the terms of the GNU General Public License v3 (GPL - * Version 3), copied verbatim in the file "COPYING". + * @license + * Copyright CERN and copyright holders of ALICE O2. This software is + * distributed under the terms of the GNU General Public License v3 (GPL + * Version 3), copied verbatim in the file "COPYING". * - * See http://alice-o2.web.cern.ch/license for full licensing information. + * See http://alice-o2.web.cern.ch/license for full licensing information. * - * In applying this license CERN does not waive the privileges and immunities - * granted to it by virtue of its status as an Intergovernmental Organization - * or submit itself to any jurisdiction. + * In applying this license CERN does not waive the privileges and immunities + * granted to it by virtue of its status as an Intergovernmental Organization + * or submit itself to any jurisdiction. */ 'use strict'; const { Sequelize } = require('sequelize'); -const { SKIMMING_STAGES, SkimmingStage } = require('../../domain/enums/SkimmingStage'); +const { SKIMMING_STAGES, SkimmingStage } = require('../../../../domain/enums/SkimmingStage.js'); /** @type {import('sequelize-cli').Migration} */ module.exports = { diff --git a/lib/database/migrations/20240815064316-remove-environments-toredown-at.js b/lib/database/migrations/released/before-0-100-0/20240815064316-remove-environments-toredown-at.js similarity index 100% rename from lib/database/migrations/20240815064316-remove-environments-toredown-at.js rename to lib/database/migrations/released/before-0-100-0/20240815064316-remove-environments-toredown-at.js diff --git a/lib/database/migrations/20240902080430-add-fill-colliding-bunch-and-lumi.js b/lib/database/migrations/released/before-0-100-0/20240902080430-add-fill-colliding-bunch-and-lumi.js similarity index 100% rename from lib/database/migrations/20240902080430-add-fill-colliding-bunch-and-lumi.js rename to lib/database/migrations/released/before-0-100-0/20240902080430-add-fill-colliding-bunch-and-lumi.js diff --git a/lib/database/migrations/unreleased/.gitkeep b/lib/database/migrations/unreleased/.gitkeep new file mode 100644 index 0000000000..e69de29bb2