feat(database): add isBookmarkSyncActivated

This commit is contained in:
Aminejv 2022-09-22 16:51:37 +01:00
parent b9376bad0f
commit 2965ce4696
2 changed files with 9 additions and 5 deletions

View File

@ -125,11 +125,7 @@ const addIsFilterSidebarCollapsedToUsersTable = db.schema.table("users", functio
});
const addExtensionColumnsToUsersTable = db.schema.table("users", function (table) {
table.boolean("isRecentViewActivated").defaultTo(false);
table.boolean("isFilesViewActivated").defaultTo(false);
table.boolean("hasCompletedExtensionOBFirstStep").defaultTo(false);
table.boolean("hasCompletedExtensionOBSecondStep").defaultTo(false);
table.boolean("hasCompletedExtensionOBThirdStep").defaultTo(false);
table.boolean("isBookmarkSyncActivated").defaultTo(false);
});
// Promise.all([

View File

@ -52,10 +52,18 @@ const createUsersTable = createTableIfNotExists("users", function (table) {
table.integer("followerCount").notNullable().defaultTo(0);
table.integer("slateCount").notNullable().defaultTo(0);
table.integer("authVersion").notNullable().defaultTo(2);
table.boolean("hasCompletedSurvey").defaultTo(false);
table.boolean("hasCompletedUploadOnboarding").defaultTo(false);
table.boolean("hasCompletedSlatesOnboarding").defaultTo(false);
table.boolean("isFilterSidebarCollapsed").defaultTo(false);
table.boolean("isRecentViewActivated").defaultTo(false);
table.boolean("isFilesViewActivated").defaultTo(false);
table.boolean("isBookmarkSyncActivated").defaultTo(false);
table.boolean("hasCompletedExtensionOBFirstStep").defaultTo(false);
table.boolean("hasCompletedExtensionOBSecondStep").defaultTo(false);
table.boolean("hasCompletedExtensionOBThirdStep").defaultTo(false);
});
const createSlatesTable = createTableIfNotExists("slates", function (table) {