diff options
author | JoramWilander <jwawilander@gmail.com> | 2018-07-10 12:51:07 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2018-07-10 12:51:07 -0400 |
commit | 1e1a5e5e85240f25c4faddcb24c5a29a915fe6e4 (patch) | |
tree | d4c64bbd826259e494c05b829e228930f143489a /store/sqlstore/upgrade.go | |
parent | 6daf82073de808a9c7f22fe8f75be815835362cc (diff) | |
parent | 9470564d355c201155f6fcb123152b8ac954f812 (diff) | |
download | chat-1e1a5e5e85240f25c4faddcb24c5a29a915fe6e4.tar.gz chat-1e1a5e5e85240f25c4faddcb24c5a29a915fe6e4.tar.bz2 chat-1e1a5e5e85240f25c4faddcb24c5a29a915fe6e4.zip |
Merge branch 'master' into plugins-2
Diffstat (limited to 'store/sqlstore/upgrade.go')
-rw-r--r-- | store/sqlstore/upgrade.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go index 868575522..8ea44371c 100644 --- a/store/sqlstore/upgrade.go +++ b/store/sqlstore/upgrade.go @@ -15,6 +15,7 @@ import ( ) const ( + VERSION_5_2_0 = "5.2.0" VERSION_5_1_0 = "5.1.0" VERSION_5_0_0 = "5.0.0" VERSION_4_10_0 = "4.10.0" @@ -80,6 +81,7 @@ func UpgradeDatabase(sqlStore SqlStore) { UpgradeDatabaseToVersion410(sqlStore) UpgradeDatabaseToVersion50(sqlStore) UpgradeDatabaseToVersion51(sqlStore) + UpgradeDatabaseToVersion52(sqlStore) // If the SchemaVersion is empty this this is the first time it has ran // so lets set it to the current version. @@ -470,3 +472,11 @@ func UpgradeDatabaseToVersion51(sqlStore SqlStore) { saveSchemaVersion(sqlStore, VERSION_5_1_0) } } + +func UpgradeDatabaseToVersion52(sqlStore SqlStore) { + // TODO: Uncomment following condition when version 5.2.0 is released + // if shouldPerformUpgrade(sqlStore, VERSION_5_1_0, VERSION_5_2_0) { + + // saveSchemaVersion(sqlStore, VERSION_5_2_0) + // } +} |