~egtann/migrate

09e2d6a5133af96c27774b295be52b494b50dc2c — Evan Tann 11 months ago 6c78f33
fix mysql syntax for 5.7
1 files changed, 1 insertions(+), 1 deletions(-)

M mysql/mysql.go
M mysql/mysql.go => mysql/mysql.go +1 -1
@@ 156,7 156,7 @@ func (db *DB) UpgradeToV1(migrations []migrate.Migration) (err error) {
	}()

	// Remove the uniqueness constraint from md5
	q := `ALTER TABLE meta DROP CONSTRAINT md5`
	q := `ALTER TABLE meta DROP INDEX md5`
	if _, err = tx.Exec(q); err != nil {
		err = errors.Wrap(err, "remove md5 unique")
		return