Commit Graph

6 Commits (613139e7bef81d3573e7988a47eb6765f3de347a)

Author SHA1 Message Date
Unknwon 613139e7be
Enable Go modules (#5835)
* Remove vendor

* Enable Go modules

* ci: add command to fetch dependencies

* ci: update setting

* ci: update settings

* Require Go 1.11

* Rename module name to gogs.io/gogs
2019-10-23 23:03:17 -07:00
Unknwon 4a67bb5806
migrations.v17: skip if table not exist 2017-03-30 11:37:27 -04:00
Kyle McCullough 09723ec0e5 migration.v17: handle mysql error (#4361) 2017-03-29 19:02:07 -04:00
Unknwon abe7f7bc36
migration.v17: add nil error check 2017-03-28 16:38:16 -04:00
Unknwon 717bcc4ad8
migration/v17: skip if protect_branch_whitelist table not exist (#4355) 2017-03-28 11:20:58 -04:00
Unknwon 1038916460
models/protect_branch: fix whitelist with invalid 'protect_branch_id' (#4333)
If user creates a protect branch for the first time (which has ID=0),
it generates invalid whitelist records with 'protect_branch_id=0'.
This prevents future updates of protect branch whitelist.

Migration: remove existing invalid protect branch whitelist records.
2017-03-27 13:13:04 -04:00