mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-17 23:43:32 +01:00
18d66474e0
While working on the fix I realised the location where the `external_id` is stored was wrong. It was stored in the `users` table, but it actually should have been stored in the `users_organizations` table. This will move the column to the right table. It will not move the values of the `external_id` column, because if there are more organizations, there is no way to really know which organization it is linked to. Setups using the Directory Connector can clear the sync cache, and sync again, that will store all the `external_id` values at the right location. Also changed the function to revoke,restore an org-user and set_external_id to return a boolean. It will state if the value has been changed or not, and if not, we can prevent a `save` call to the database. The `users` table is not changed to remove the `external_id` column, thi to prevent issue when users want to revert back to an earlier version for some reason. We can do this after a few minor release i think. Fixes #3777 |
||
---|---|---|
.. | ||
2019-09-12-100000_create_tables | ||
2019-09-16-150000_fix_attachments | ||
2019-10-10-083032_add_column_to_twofactor | ||
2019-11-17-011009_add_email_verification | ||
2020-03-13-205045_add_policy_table | ||
2020-04-09-235005_add_cipher_delete_date | ||
2020-07-01-214531_add_hide_passwords | ||
2020-08-02-025025_add_favorites_table | ||
2020-11-30-224000_add_user_enabled | ||
2020-12-09-173101_add_stamp_exception | ||
2021-03-11-190243_add_sends | ||
2021-03-15-163412_rename_send_key | ||
2021-04-30-233251_add_reprompt | ||
2021-05-11-205202_add_hide_email | ||
2021-07-01-203140_add_password_reset_keys | ||
2021-08-30-193501_create_emergency_access | ||
2021-10-24-164321_add_2fa_incomplete | ||
2022-01-17-234911_add_api_key | ||
2022-03-02-210038_update_devices_primary_key | ||
2022-07-27-110000_add_group_support | ||
2022-10-18-170602_add_events | ||
2023-01-06-151600_add_reset_password_support | ||
2023-01-11-205851_add_avatar_color | ||
2023-01-31-222222_add_argon2 | ||
2023-02-18-125735_push_uuid_table | ||
2023-06-02-200424_create_organization_api_key | ||
2023-06-17-200424_create_auth_requests_table | ||
2023-06-28-133700_add_collection_external_id | ||
2023-09-01-170620_update_auth_request_table | ||
2023-09-02-212336_move_user_external_id |