aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjloup <jeanloup.jamet@gmail.com>2018-05-06 16:34:58 +0200
committerjloup <jeanloup.jamet@gmail.com>2018-05-06 16:34:58 +0200
commitbc06de9b83959e2dbccbbe15960f5fc07093c3de (patch)
tree5761ad38e558397b00928cf0c4fd0207a10b2481
parent87b6d05e5b289f3e9d1554fe455296ba09655c3a (diff)
downloadFront-bc06de9b83959e2dbccbbe15960f5fc07093c3de.tar.gz
Front-bc06de9b83959e2dbccbbe15960f5fc07093c3de.tar.zst
Front-bc06de9b83959e2dbccbbe15960f5fc07093c3de.zip
Remove code skipping migration version1.
-rw-r--r--db/db.go10
1 files changed, 0 insertions, 10 deletions
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) {
56} 56}
57 57
58func migratedb() error { 58func 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