From 0a3ad26ac919e71219b76a09fc4f5ed121ad84f9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 28 Mar 2019 20:09:07 +0100 Subject: [PATCH] Possible fix for initSchema --- pkg/migration/migration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/migration/migration.go b/pkg/migration/migration.go index 9b04be248..9e1d315e6 100644 --- a/pkg/migration/migration.go +++ b/pkg/migration/migration.go @@ -115,7 +115,7 @@ func dropTableColum(x *xorm.Engine, tableName, col string) error { } func initSchema(tx *xorm.Engine) error { - return tx.Sync2( - models.GetTables()..., //TODO: Why does it fail here with new dbs? + return tx.StoreEngine("InnoDB").Sync2( + models.GetTables()..., ) }