summaryrefslogtreecommitdiffstats
path: root/store/sql_post_store.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-08-27 16:01:17 -0700
committer=Corey Hulen <corey@hulen.com>2015-08-27 16:01:17 -0700
commite0bc27a3b4d77232ba2b7daa08ad91297361e26b (patch)
tree1e472a55e55b72bdb2cf6429859c474f25ddb045 /store/sql_post_store.go
parentbcde2adde7171146cb95264ded88d4bdbcf80e04 (diff)
downloadchat-e0bc27a3b4d77232ba2b7daa08ad91297361e26b.tar.gz
chat-e0bc27a3b4d77232ba2b7daa08ad91297361e26b.tar.bz2
chat-e0bc27a3b4d77232ba2b7daa08ad91297361e26b.zip
Adding ability to upgrade postgres schema
Diffstat (limited to 'store/sql_post_store.go')
-rw-r--r--store/sql_post_store.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go
index 4ea28507b..e7c3a59a0 100644
--- a/store/sql_post_store.go
+++ b/store/sql_post_store.go
@@ -35,11 +35,6 @@ func NewSqlPostStore(sqlStore *SqlStore) PostStore {
}
func (s SqlPostStore) UpgradeSchemaIfNeeded() {
-
- // These execs are for upgrading currently created databases to full utf8mb4 compliance
- // Will be removed as seen fit for upgrading
- s.GetMaster().Exec("ALTER TABLE Posts charset=utf8mb4")
- s.GetMaster().Exec("ALTER TABLE Posts MODIFY COLUMN Message varchar(4000) CHARACTER SET utf8mb4")
}
func (s SqlPostStore) CreateIndexesIfNotExists() {