1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/src/migrations
andreas-unleash 9e1241d728
fix: migration (#3558)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
Fixes `down` migration  for add_title_to_strategy
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-04-19 10:07:56 +03:00
..
.eslintrc Fix OOM with eslint in migrations (#2545) 2022-11-28 15:16:19 +01:00
20141020151056-initial-schema.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20141110144153-add-description-to-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20141117200435-add-parameters-template-to-strategies.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20141117202209-insert-default-strategy.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20141118071458-default-strategy-event.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20141215210141-005-archived-flag-to-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20150210152531-006-rename-eventtype.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20160618193924-add-strategies-to-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20161027134128-create-metrics.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20161104074441-create-client-instances.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20161205203516-create-client-applications.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20161212101749-better-strategy-parameter-definitions.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20170211085502-built-in-strategies.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20170211090541-add-default-strategies.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20170306233934-timestamp-with-tz.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20170628205541-add-sdk-version-to-client-instances.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20190123204125-add-variants-to-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20191023184858-flexible-rollout-strategy.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200102184820-create-context-fields.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200227202711-settings.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200329191251-settings-secret.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200416201319-create-users.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200429175747-users-settings.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200805091409-add-feature-toggle-type.js refactor: create migration to update feature types description 2022-01-19 19:54:49 +01:00
20200805094311-add-feature-type-to-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200806091734-add-stale-flag-to-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200810200901-add-created-at-to-feature-types.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200928194947-add-projects.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20200928195238-add-project-id-to-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20201216140726-add-last-seen-to-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210105083014-add-tag-and-tag-types.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210119084617-add-addon-table.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210121115438-add-deprecated-column-to-strategies.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210127094440-add-tags-column-to-events.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210208203708-add-stickiness-to-context.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210212114759-add-session-table.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210217195834-rbac-tables.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210218090213-generate-server-identifier.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210302080040-add-pk-to-client-instances.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210304115810-change-default-timestamp-to-now.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210304141005-add-announce-field-to-application.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210304150739-add-created-by-to-application.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210322104356-api-tokens-table.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210322104357-api-tokens-convert-enterprise.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210323073508-reset-application-announcements.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210409120136-create-reset-token-table.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210414141220-fix-misspellings-in-role-descriptions.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210415173116-rbac-rename-roles.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210421133845-add-sort-order-to-strategies.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210421135405-add-display-name-and-update-description-for-strategies.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210423103647-lowercase-all-emails.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210428062103-user-permission-to-rbac.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210428103922-patch-role-table.js fix: add migration patch 2022-02-24 14:08:41 +01:00
20210428103923-onboard-projects-to-rbac.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210428103924-patch-admin_role.js fix: add migration patch 2022-02-24 14:08:41 +01:00
20210428103924-patch-admin-role-name.js fix: add migration patch 2022-02-24 14:08:41 +01:00
20210428103924-patch-role_permissions.js fix: add migration patch 2022-02-24 14:08:41 +01:00
20210504101429-deprecate-strategies.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210520171325-update-role-descriptions.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210602115555-create-feedback-table.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210610085817-features-strategies-table.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210615115226-migrate-strategies-to-feature-strategies.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210618091331-project-environments-table.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210618100913-add-cascade-for-user-feedback.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210624114602-change-type-of-feature-archived.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210624114855-drop-strategies-column-from-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210624115109-drop-enabled-column-from-features.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210625102126-connect-default-project-to-global-environment.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210629130734-add-health-rating-to-project.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
20210830113948-connect-projects-to-global-envrionments.js fix: make sure exising projects get :global: env automatically 2021-08-30 13:47:01 +02:00
20210831072631-add-sort-order-and-type-to-env.js feat: Move environments to enterprise (#935) 2021-09-13 15:57:38 +02:00
20210907124058-add-dbcritic-indices.js fix: Added indices and primary key to feature_tag (#936) 2021-09-10 12:27:20 +02:00
20210907124850-add-dbcritic-primary-keys.js fix: Added indices and primary key to feature_tag (#936) 2021-09-10 12:27:20 +02:00
20210908100701-add-enabled-to-environments.js feat: Move environments to enterprise (#935) 2021-09-13 15:57:38 +02:00
20210909085651-add-protected-field-to-environments.js feat: Move environments to enterprise (#935) 2021-09-13 15:57:38 +02:00
20210913103159-api-keys-scoping.js Feat/api key scoping (#941) 2021-09-15 20:28:10 +02:00
20210915122001-add-project-and-environment-columns-to-events.js feat: add project and environment columns to events (#942) 2021-09-20 12:13:38 +02:00
20210920104218-rename-global-env-to-default-env.js fix: envrionments should have type 2021-09-24 14:16:13 +02:00
20210921105032-client-api-tokens-default.js feat: rename :global: env to "default" (#947) 2021-09-24 13:55:00 +02:00
20210922084509-add-non-null-constraint-to-environment-type.js fix: Enforce non-nullability of environment type (#950) 2021-09-24 09:11:36 +02:00
20210922120521-add-tag-type-permission.js Add UPDATE and DELETE TAG_TYPE permissions (#951) 2021-09-24 09:01:15 +02:00
20210928065411-remove-displayname-from-environments.js task: remove displayName from environments (#988) 2021-09-29 10:23:43 +02:00
20210928080601-add-development-and-production-environments.js fix: add default sort order for built in envs (#1076) 2021-10-29 13:02:05 +02:00
20210928082228-connect-default-environment-to-all-existing-projects.js task: add default environment (#989) 2021-09-29 11:09:35 +02:00
20211004104917-client-metrics-env.js feat/metricsV2 (#1005) 2021-10-08 10:09:22 +02:00
20211011094226-add-environment-to-client-instances.js Make Appinstance registration include environment (#1014) 2021-10-12 10:39:28 +02:00
20211013093114-feature-strategies-parameters-not-null.js fix: feature_strategies paramter column should not be null (#1024) 2021-10-13 12:42:57 +02:00
20211029094324-set-sort-order-env.js fix: add default sort order for built in envs (#1076) 2021-10-29 13:02:05 +02:00
20211105104316-add-feature-name-column-to-events.js feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
20211105105509-add-predata-column-to-events.js feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
20211108130333-create-user-splash-table.js fix: add cascade query inside create table for splash 2021-11-12 13:01:56 +01:00
20211109103930-add-splash-entry-for-users.js fix: update sql query in add-splash-entry 2021-11-12 11:02:12 +01:00
20211126112551-disable-default-environment.js Fix/enable standard environments (#1134) 2021-11-26 15:31:36 +01:00
20211130142314-add-updated-at-to-projects.js fix: add timestamp on project creation for update_at column 2021-12-01 09:59:34 +01:00
20211202120808-add-custom-roles.js refactor: drop permissions table on down migration (#1699) 2022-06-13 09:08:46 +02:00
20211209205201-drop-client-metrics.js fix: drop client_metrics table 2021-12-10 09:31:54 +01:00
20220103134659-add-permissions-to-project-roles.js feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
20220103143843-add-permissions-to-editor-role.js feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
20220111112804-update-permission-descriptions.js feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
20220111115613-move-feature-toggle-permission.js feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
20220111120346-roles-unique-name.js feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
20220111121010-update-project-for-editor-role.js feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
20220111125620-role-permission-empty-string-for-non-environment-type.js feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
20220119182603-update-toggle-types-description.js refactor: create migration to update feature types description 2022-01-19 19:54:49 +01:00
20220125200908-convert-old-feature-events.js fix: add migration for old feature events (#1300) 2022-01-26 13:39:59 +01:00
20220128081242-add-impressiondata-to-features.js Feat/impression data (#1310) 2022-02-03 11:06:51 +01:00
20220129113106-metrics-counters-as-bigint.js fix: metric counters should use bigint (#1313) 2022-01-31 08:50:11 +01:00
20220131082150-reset-feedback-form.js fix: set migration for feedbacK (#1315) 2022-01-31 09:57:33 +01:00
20220224081422-remove-project-column-from-roles.js fix: remove project column from roles if exists 2022-02-24 14:08:41 +01:00
20220224111626-add-current-time-context-field.js Feat/new constraint operators (#1397) 2022-03-04 17:29:42 +01:00
20220307130902-add-segments.js feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
20220331085057-add-api-link-table.js feat: Implement multi token support for client tokens 2022-04-06 08:11:41 +02:00
20220405103233-add-segments-name-index.js fix: reject duplicate segment names (#1475) 2022-04-06 14:01:50 +01:00
20220408081222-clean-up-duplicate-foreign-key-role-permission.js fix: remove duplicate foreign key (#1491) 2022-04-08 10:34:22 +02:00
20220411103724-add-legal-value-description.js feat: add context value descriptions (#1496) 2022-04-19 08:40:07 +02:00
20220425090847-add-token-permission.js feat: add READ_API_TOKEN permission (#1528) 2022-04-26 10:24:34 +02:00
20220511111823-patch-broken-feature-strategies.js fix: Repair feature strategies with broken project ids (#1593) 2022-05-11 13:41:35 +02:00
20220511124923-fix-patch-broken-feature-strategies.js fix: correct patch for feature project id 2022-05-11 14:52:38 +02:00
20220528143630-dont-cascade-environment-deletion-to-apitokens.js fix: Issue #1444 - API import with drop=true deletes existing client keys (#1668) 2022-06-09 15:56:13 +01:00
20220603081324-add-archive-at-to-feature-toggle.js Added missing archivedAt to featureSchema (#1779) 2022-07-01 11:51:26 +00:00
20220704115624-add-user-groups.js Feat/grouping (#1845) 2022-07-21 16:23:56 +02:00
20220711084613-add-projects-and-environments-for-addons.js feat: support filtering on project and environment fields for events (#1801) 2022-07-12 12:13:25 +00:00
20220808084524-add-group-permissions.js Fix/remove group owner concept (#1905) 2022-08-11 08:23:08 +02:00
20220808110415-add-projects-foreign-key.js Deleting project does not delete entry group_role table (#1896) 2022-08-10 07:45:59 +00:00
20220816121136-add-metadata-to-api-keys.js Migration for API key metadata (#1930) 2022-08-16 16:38:20 +02:00
20220817130250-alter-api-tokens.js Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
20220908093515-add-public-signup-tokens.js Update public signup migration files (#2120) 2022-09-30 15:20:24 +03:00
20220912165344-pat-tokens.js Add description to PAT (#2090) 2022-09-26 15:42:39 +03:00
20220916093515-add-url-to-public-signup-tokens.js Fix/oas response (#2068) 2022-09-26 13:06:30 +03:00
20220927110212-add-enabled-to-public-signup-tokens.js Feat/invite user (#2061) 2022-09-30 13:01:32 +02:00
20221010114644-pat-auto-increment.js Change PAT primary key from string to number (#2163) 2022-10-10 13:35:12 +03:00
20221011155007-add-user-groups-mappings.js feat: add SSO mappings to groups (#2175) 2022-10-13 11:34:47 +01:00
20221103111940-fix-migrations.js Remove manually added migrations and fix the scripts (#2324) 2022-11-03 14:05:47 +02:00
20221103112200-change-request.js Remove manually added migrations and fix the scripts (#2324) 2022-11-03 14:05:47 +02:00
20221103125732-change-request-remove-unique.js Remove uniqueness from change requests merging (#2332) 2022-11-04 10:57:45 +02:00
20221104123349-change-request-approval.js Change request approvals table (#2347) 2022-11-09 10:40:47 +02:00
20221107121635-move-variants-to-per-environment.js Fix error in migration when updating feature_environments (#2607) 2022-12-06 14:57:54 +02:00
20221107132528-change-request-project-options.js Add changeRequestEnabled to project and project_environments (#2357) 2022-11-09 14:44:53 +02:00
20221108114358-add-change-request-permissions.js Feat/change request permissions (#2382) 2022-11-10 11:08:58 +01:00
20221110104933-add-change-request-settings.js Feat/add change request settings (#2390) 2022-11-11 10:09:25 +02:00
20221110144113-revert-change-request-project-options.js Feat/add change request settings (#2390) 2022-11-11 10:09:25 +02:00
20221114150559-change-request-comments.js Changeset comments schema (#2425) 2022-11-15 09:15:56 +01:00
20221115072335-add-required-approvals.js Change requests - add multiple reviewers (#2448) 2022-11-17 11:08:29 +02:00
20221121114357-add-permission-for-environment-variants.js Permission for variant environments (#2490) 2022-11-22 11:54:04 +02:00
20221121133546-soft-delete-user.js Add possibility to soft delete users (#2497) 2022-11-23 09:30:54 +02:00
20221124123914-add-favorites.js Favorite features (#2550) 2022-11-29 16:06:08 +01:00
20221125185244-change-request-unique-approvals.js make approvals unique (#2534) 2022-11-28 07:19:15 +01:00
20221128165141-change-request-min-approvals.js store min approvals as part of change request creation (#2548) 2022-11-29 09:40:40 +01:00
20221205122253-skip-change-request.js skip change request (#2598) 2022-12-05 15:38:17 +01:00
20221220160345-user-pat-permissions.js feat: allows creation of PATs for other users (#2718) 2023-01-02 10:49:57 +00:00
20221221144132-service-account-users.js feat: enterprise service accounts (BE) (#2806) 2023-01-03 15:15:32 +00:00
20230125065315-project-stats-table.js fix: down migration (#3015) 2023-01-27 16:13:59 +01:00
20230127111638-new-project-stats-field.js Feat/project stats members (#3009) 2023-01-27 13:13:41 +01:00
20230130113337-revert-user-pat-permissions.js fix: limit creation of other users PATs (adapting) (#3019) 2023-01-31 08:40:23 +00:00
20230208084046-project-api-token-permissions.js Feat/project api token permissions (#3065) 2023-02-17 12:15:36 +02:00
20230208093627-assign-project-api-token-permissions-editor.js Feat/project api token permissions (#3065) 2023-02-17 12:15:36 +02:00
20230208093750-assign-project-api-token-permissions-owner.js Feat/project api token permissions (#3065) 2023-02-17 12:15:36 +02:00
20230208093942-assign-project-api-token-permissions-member.js Feat/project api token permissions (#3065) 2023-02-17 12:15:36 +02:00
20230222084211-add-login-events-table.js feat: store login events (#3185) 2023-02-23 10:49:01 +00:00
20230222154915-create-notiications-table.js fix: add on delete cascade to notifications and userNotifications tables (#3192) 2023-02-24 13:19:43 +02:00
20230224093446-drop-createdBy-from-notifications-table.js remove createdBy column from notifications table (#3190) 2023-02-24 12:33:03 +02:00
20230227115320-rename-login-events-table-to-sign-on-log.js chore: Renames login_events to sign_on_log (#3203) 2023-02-27 14:42:13 +00:00
20230227120500-change-display-name-for-variants-per-env-permission.js docs: update documentation around permissions for variants (#3195) 2023-02-28 14:06:24 +01:00
20230227123106-add-setting-for-sign-on-log-retention.js chore: Renames login_events to sign_on_log (#3203) 2023-02-27 14:42:13 +00:00
20230302133740-rename-sign-on-log-table-to-login-history.js refactor: rename sign-on log to login history (#3245) 2023-03-02 13:49:50 +00:00
20230306103400-add-project-column-to-segments.js chore: add a new project column to segments table (#3263) 2023-03-07 14:56:20 +01:00
20230306103400-remove-direct-link-from-segment-permissions-to-admin.js Remove link that's not necessary (#3266) 2023-03-08 10:25:54 +01:00
20230309174400-add-project-segment-permission.js chore: add project-specific-segment permission (#3295) 2023-03-10 10:34:26 +01:00
20230314131041-project-settings.js feat: project settings migration (#3313) 2023-03-14 14:43:14 +01:00
20230316092547-remove-project-stats-column.js fix: refactor calculate time to prod (#3333) 2023-03-16 15:45:24 +01:00
20230411085947-skip-change-request-ui.js feat: skip change request in UI (#3495) 2023-04-11 14:47:54 +02:00
20230412062635-add-change-request-title.js feat: change request title migration (#3502) 2023-04-12 08:42:52 +02:00
20230412125618-add-title-to-strategy.js fix: migration (#3558) 2023-04-19 10:07:56 +03:00
default-strategies.json Feature/setup typescript 2021-02-12 11:42:00 +01:00
flexible-rollout-strategy.json Feature/setup typescript 2021-02-12 11:42:00 +01:00