summaryrefslogtreecommitdiffstats
path: root/store/sqlstore
diff options
context:
space:
mode:
Diffstat (limited to 'store/sqlstore')
-rw-r--r--store/sqlstore/upgrade.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go
index a6c1ecc43..edcae1244 100644
--- a/store/sqlstore/upgrade.go
+++ b/store/sqlstore/upgrade.go
@@ -312,12 +312,10 @@ func UpgradeDatabaseToVersion43(sqlStore SqlStore) {
}
func UpgradeDatabaseToVersion44(sqlStore SqlStore) {
- // TODO: Uncomment following condition when version 4.4.0 is released
- // if shouldPerformUpgrade(sqlStore, VERSION_4_3_0, VERSION_4_4_0) {
+ if shouldPerformUpgrade(sqlStore, VERSION_4_3_0, VERSION_4_4_0) {
+ // Add the IsActive column to UserAccessToken.
+ sqlStore.CreateColumnIfNotExists("UserAccessTokens", "IsActive", "boolean", "boolean", "1")
- // Add the IsActive column to UserAccessToken.
- sqlStore.CreateColumnIfNotExists("UserAccessTokens", "IsActive", "boolean", "boolean", "1")
-
- // saveSchemaVersion(sqlStore, VERSION_4_4_0)
- // }
+ saveSchemaVersion(sqlStore, VERSION_4_4_0)
+ }
}