From: jloup Date: Sun, 6 May 2018 14:34:58 +0000 (+0200) Subject: Remove code skipping migration version1. X-Git-Tag: v0.0.8~11 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=bc06de9b83959e2dbccbbe15960f5fc07093c3de;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git Remove code skipping migration version1. --- diff --git a/db/db.go b/db/db.go index 25d404f..63de87c 100644 --- a/db/db.go +++ b/db/db.go @@ -56,16 +56,6 @@ func Init(config DBConfig, redisConfig RedisConfig) { } func migratedb() error { - /* Remove after first MEP */ - version, err := migrate.Version(DB) - if err != nil { - return err - } - - if version == 0 { - return migrate.SetVersion(DB, 1) - } - /***/ mig := make([]migrate.Migration, 0)