1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00
unleash.unleash/src/lib/db
David Leek 1dadd23594
chore:system user and events created by userid migrations (#5612)
## About the changes

Migrations for:
- Adds column is_system to users
- Inserts unleash_system_user id -1337 to users 

includes `is_system: false` in the activeUsers and activeAccounts where filter

Tested by running:
`
select * into users_pre_check from users where id > -1;
delete from users where id > -1;
`
before starting unleash, then inspecting users table after unleash has
started and verifying that an 'admin' user has been created.

---------

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2023-12-22 11:19:39 +01:00
..
access-store.test.ts fix: return 400 on invalid POST data to project access endpoint (#5610) 2023-12-12 14:46:23 +01:00
access-store.ts fix: return 400 on invalid POST data to project access endpoint (#5610) 2023-12-12 14:46:23 +01:00
account-store.ts chore:system user and events created by userid migrations (#5612) 2023-12-22 11:19:39 +01:00
addon-store.ts
api-token-store.ts fix: add metrics for service account and api tokens (#5478) 2023-11-29 13:09:30 +01:00
client-applications-store.ts
client-instance-store.ts refactor: move metrics service scheduling (#5129) 2023-10-23 16:28:19 +02:00
client-metrics-store-v2.ts
context-field-store.ts
db-pool.ts
db.ts
event-store.test.ts
event-store.ts feat: adds created_by_user_id to all events (#5619) 2023-12-14 13:45:25 +01:00
favorite-features-store.ts
favorite-projects-store.ts
feature-environment-store.ts
feature-strategy-store.test.ts chore(update): Updates biome config to 1.3 format (#5421) 2023-11-27 13:42:58 +01:00
feature-tag-store.ts feat: implement column created_by_user_id in feature_tag (#5695) 2023-12-21 10:00:45 +01:00
feature-type-store.ts feat: feature type updated audit log (#5415) 2023-11-24 14:24:31 +01:00
group-store.ts
index.ts refactor: move search implementation out of strategies store (#5642) 2023-12-14 15:45:36 +02:00
pat-store.ts
project-stats-store.ts
project-store.ts fix: hardcoded stickiness and mode fields (#5342) 2023-11-17 12:32:13 +01:00
public-signup-token-store.ts
reset-token-store.ts
role-store.ts
segment-store.test.ts chore: only return change request data if the unleash instance is an enterprise instance (#5331) 2023-11-22 12:15:29 +00:00
segment-store.ts fix: check whether a usage data is defined (#5393) 2023-11-27 11:20:25 +01:00
session-store.ts
setting-store.ts chore: expose instanceId so it can be used from addons (#5231) 2023-10-31 12:38:21 +01:00
strategy-store.ts
tag-store.ts
transaction.ts chore: introduce type to prevent potential issues (#5066) 2023-10-17 12:30:44 +02:00
user-feedback-store.ts
user-splash-store.ts
user-store.ts chore:system user and events created by userid migrations (#5612) 2023-12-22 11:19:39 +01:00