]> source.dussan.org Git - gitea.git/commit
Fix migration v141 (#14387)
author6543 <6543@obermui.de>
Thu, 28 Jan 2021 22:58:33 +0000 (23:58 +0100)
committerGitHub <noreply@github.com>
Thu, 28 Jan 2021 22:58:33 +0000 (23:58 +0100)
commit2ebe609d65f16b67ee54fe123f226bcd737be79e
treef02d2ac08078204f8584f9b4e1797523e66d991c
parent3599d44399cf49685a3eee6ef74f75ecde4736fe
Fix migration v141 (#14387)

* Fix mig 141

* Add Migration to fix it

* update null values to false first

* Alter Table if posible

* use dropTableColumns instead of recreateTable

* MySQL use Alter

* Postgres use Alter

* Update models/migrations/v167.go

* Apply suggestions from code review

* use 2x add col & 2x update & 2x drop col

* let sqlite be the only issue

* use recreate since it just WORKS
models/migrations/migrations.go
models/migrations/v141.go
models/migrations/v168.go [new file with mode: 0644]