1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +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
access-store.ts
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
client-applications-store.ts
client-instance-store.ts
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
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
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
public-signup-token-store.ts
reset-token-store.ts
role-store.ts
segment-store.test.ts
segment-store.ts
session-store.ts
setting-store.ts
strategy-store.ts
tag-store.ts
transaction.ts
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