David Schneiderbauer 74399f333f Backport of migration fixes (#2604) (#2677)
* Rewrite migrations to not depend on future code changes (#2604)

* v38 migration used an outdated version of RepoUnit model (#2602)

* change repoUnit model in migration

* fix v16 migration repo_unit table

* fix lint error

* move type definition inside function

* Fix migration from Gogs

* Refactor code

* add error check

* Additiomal fixes for migrations

* Add back nil check

* replace deprecated .Id with .ID

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* change string map to interface map

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-10-09 16:08:22 +03:00
..
2017-07-27 12:23:38 +03:00
2017-08-28 19:16:25 +02:00
2017-01-09 21:49:51 +01:00
2017-05-26 09:38:18 +08:00
2017-05-04 13:54:56 +08:00
2017-07-06 21:30:19 +08:00
2017-06-12 10:01:09 -05:00
2017-01-03 10:52:09 +08:00
2017-02-22 17:10:45 -05:00
2017-06-09 09:51:31 +08:00
2017-04-01 10:05:58 -03:00
2017-04-01 09:58:20 -03:00
2017-06-28 13:43:28 +08:00
2017-03-22 22:30:40 +08:00
2017-07-06 21:30:19 +08:00
2017-07-01 14:08:43 +03:00
2017-04-21 19:32:31 +08:00
2017-01-05 08:50:34 +08:00
2017-05-29 02:17:15 -05:00
2017-05-30 04:32:01 -05:00