[PLT-7794] Add user access token enable/disable endpoints (#7630)

* Add column to UserAccessTokens table

* PLT-7794 Add user access token enable/disable endpoints

* replaced eliminated global variable

* updates to user_access_token_store and upgrade.go

* style fix and cleanup
Этот коммит содержится в:
Nick Frazier
2017-10-19 08:10:29 -04:00
коммит произвёл Joram Wilander
родитель 8e19ba029f
Коммит 7fa4913f90
9 изменённых файлов: 348 добавлений и 5 удалений

Просмотреть файл

@@ -312,8 +312,12 @@ func UpgradeDatabaseToVersion43(sqlStore SqlStore) {
}
func UpgradeDatabaseToVersion44(sqlStore SqlStore) {
// TODO: Uncomment following when version 4.4.0 is released
//if shouldPerformUpgrade(sqlStore, VERSION_4_3_0, VERSION_4_4_0) {
// saveSchemaVersion(sqlStore, VERSION_4_4_0)
//}
// TODO: Uncomment following condition when version 4.4.0 is released
// if shouldPerformUpgrade(sqlStore, VERSION_4_3_0, VERSION_4_4_0) {
// Add the IsActive column to UserAccessToken.
sqlStore.CreateColumnIfNotExists("UserAccessTokens", "IsActive", "boolean", "boolean", "1")
// saveSchemaVersion(sqlStore, VERSION_4_4_0)
// }
}