diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-05-06 16:34:58 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-05-06 16:34:58 +0200 |
commit | bc06de9b83959e2dbccbbe15960f5fc07093c3de (patch) | |
tree | 5761ad38e558397b00928cf0c4fd0207a10b2481 | |
parent | 87b6d05e5b289f3e9d1554fe455296ba09655c3a (diff) | |
download | Front-bc06de9b83959e2dbccbbe15960f5fc07093c3de.tar.gz Front-bc06de9b83959e2dbccbbe15960f5fc07093c3de.tar.zst Front-bc06de9b83959e2dbccbbe15960f5fc07093c3de.zip |
Remove code skipping migration version1.
-rw-r--r-- | db/db.go | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -56,16 +56,6 @@ func Init(config DBConfig, redisConfig RedisConfig) { | |||
56 | } | 56 | } |
57 | 57 | ||
58 | func migratedb() error { | 58 | func migratedb() error { |
59 | /* Remove after first MEP */ | ||
60 | version, err := migrate.Version(DB) | ||
61 | if err != nil { | ||
62 | return err | ||
63 | } | ||
64 | |||
65 | if version == 0 { | ||
66 | return migrate.SetVersion(DB, 1) | ||
67 | } | ||
68 | /***/ | ||
69 | 59 | ||
70 | mig := make([]migrate.Migration, 0) | 60 | mig := make([]migrate.Migration, 0) |
71 | 61 | ||