From e0bc27a3b4d77232ba2b7daa08ad91297361e26b Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Thu, 27 Aug 2015 16:01:17 -0700 Subject: Adding ability to upgrade postgres schema --- store/sql_post_store.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'store/sql_post_store.go') 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() { -- cgit v1.2.3-1-g7c22