Skip to content

Commit d2e2f22

Browse files
authored
feat: persist preferred project by account key (#1366)
## Problem Now we're not persisting preferred project on logout followed by login <!-- Who is this for and what problem does it solve? --> <!-- Closes #ISSUE_ID --> ## Changes persist it in sqlite, keying by region and account key <!-- What did you change and why? --> <!-- If there are frontend changes, include screenshots. -->
1 parent 915bd26 commit d2e2f22

11 files changed

Lines changed: 1340 additions & 26 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CREATE TABLE `auth_preferences` (
2+
`account_key` text NOT NULL,
3+
`cloud_region` text NOT NULL,
4+
`last_selected_project_id` integer,
5+
`created_at` text DEFAULT (CURRENT_TIMESTAMP) NOT NULL,
6+
`updated_at` text DEFAULT (CURRENT_TIMESTAMP) NOT NULL
7+
);
8+
--> statement-breakpoint
9+
CREATE INDEX `auth_preferences_account_region_idx` ON `auth_preferences` (`account_key`,`cloud_region`);

0 commit comments

Comments
 (0)