focalboard/server/services/store/sqlstore/migrationstests/fixtures/test27MigrateUserPropsToPreferences.sql
Harshil Sharma f5a068e382
Added duplicate data test for user preference (#3968)
* Added handling of duplicate key conflicts

* Added a test

* Add value checks and fix username for the test

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2022-10-07 16:28:47 +02:00

9 lines
498 B
SQL

INSERT INTO focalboard_users
(id, username, props)
VALUES
('user-id', 'johndoe', '{"focalboard_welcomePageViewed": true, "hiddenBoardIDs": ["board1", "board2"], "focalboard_tourCategory": "onboarding", "focalboard_onboardingTourStep": 1, "focalboard_onboardingTourStarted": false, "focalboard_version72MessageCanceled": true, "focalboard_lastWelcomeVersion": 7}');
INSERT INTO focalboard_preferences
(UserId, Category, Name, Value)
VALUES
('user-id', 'focalboard', 'onboardingTourStarted', true);