]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/commitdiff
Remove code skipping migration version1.
authorjloup <jeanloup.jamet@gmail.com>
Sun, 6 May 2018 14:34:58 +0000 (16:34 +0200)
committerjloup <jeanloup.jamet@gmail.com>
Sun, 6 May 2018 14:34:58 +0000 (16:34 +0200)
db/db.go

index 25d404f2781ebb48ed34d2ca11f3b8f65a99ae14..63de87cee27d049e420b95733156c48b94dcf12f 100644 (file)
--- 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)