From c68f224f2168f0330e61d470926a64bd16c9ef1d Mon Sep 17 00:00:00 2001 From: Aminejv Date: Thu, 22 Sep 2022 16:51:37 +0100 Subject: [PATCH] feat(database): add isBookmarkSyncActivated --- scripts/adjust.js | 6 +----- scripts/seed-database.js | 8 ++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/adjust.js b/scripts/adjust.js index 2ade4ea5..6504249d 100644 --- a/scripts/adjust.js +++ b/scripts/adjust.js @@ -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([ diff --git a/scripts/seed-database.js b/scripts/seed-database.js index f81ad5de..a2f976d5 100644 --- a/scripts/seed-database.js +++ b/scripts/seed-database.js @@ -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) {