You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models/migrations
Florian Eitel d9b51a781c Migration fixes for gogs (0.11.66) to gitea (1.6.0) #5318 (#5341)
* Remove field from migration to support upgrades from older version

That will ensure the field does not get queried in the Select if it does
not exist yet:

```
[I] [SQL] SELECT "id", "repo_id", "index", "poster_id", "name", "content", "milestone_id", "priority", "assignee_id", "is_closed", "is_pull", "num_comments", "ref", "deadline_unix", "created_unix", "updated_unix
[...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: pq: column "ref" does not exist
```

see #5318

* Skip remove stale watcher migration if not required

Otherwise the migration will fail if executed from a older database
version without multiple IssueWatch feature.

```
2018/11/11 23:51:14 [I] [SQL] SELECT DISTINCT "issue_watch"."user_id", "issue"."repo_id" FROM "issue_watch" INNER JOIN issue ON issue_watch.issue_id = issue.id WHERE (issue_watch.is_watching = $1) LIMIT 50 []int
[...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: pq: relation "issue_watch" does not exist
```

see #5318
6 years ago
..
migrations.go Force user to change password (#4489) 6 years ago
v13.go Refactor session close as xorm already does everything needed internally (#2020) 7 years ago
v14.go Fix typos in models/ and modules/ (#1248) 7 years ago
v15.go Rewrite migrations to not depend on future code changes (#2604) 7 years ago
v16.go Rewrite migrations to not depend on future code changes (#2604) 7 years ago
v17.go Protected branches system (#339) 7 years ago
v18.go Take back control of hooks (#1006) 7 years ago
v19.go Use buffersize to reduce database connection when iterate (#2724) 7 years ago
v20.go fix avatar update bug (#1729) 7 years ago
v21.go Fix lint errors (#2547) 7 years ago
v22.go Use buffersize to reduce database connection when iterate (#2724) 7 years ago
v23.go Run "make fmt" with go-1.6 (#1333) 7 years ago
v24.go fix gpg wrong column types 7 years ago
v25.go Show user OpenID URIs in their profile (#1314) 7 years ago
v26.go Use buffersize to reduce database connection when iterate (#2724) 7 years ago
v27.go Fix broken migration v27 (#1504) 7 years ago
v28.go Replace deprecated Id method with ID (#2655) 7 years ago
v29.go Status-API (#1332) 7 years ago
v30.go Add primary key and index to external login user table (#1656) 7 years ago
v31.go Add units to team (#947) 7 years ago
v32.go Add units to team (#947) 7 years ago
v33.go Rename misnamed migration (#1867) 7 years ago
v34.go Migration to fix existing owner team units (#1873) 7 years ago
v35.go Fix "Dashboard shows deleted comments" (#1995) 7 years ago
v36.go Fix git hooks update to receive required arguments. Fixes #2090 (#2095) 7 years ago
v37.go Rewrite migrations to not depend on future code changes (#2604) 7 years ago
v38.go hide issues from org private repos w/o team assignment (#4034) 6 years ago
v39.go Fix migration from older releases (#4495) 6 years ago
v40.go Reorder migrations, skip errors if running migration again (#3160) 7 years ago
v41.go Reorder migrations, skip errors if running migration again (#3160) 7 years ago
v45.go Reorder migrations, skip errors if running migration again (#3160) 7 years ago
v46.go Fix organization watch migration (#2703) 7 years ago
v47.go Add branch overiew page (#2108) 7 years ago
v48.go Code/repo search (#2582) 7 years ago
v49.go Reorder migrations, skip errors if running migration again (#3160) 7 years ago
v50.go Reorder migrations, skip errors if running migration again (#3160) 7 years ago
v51.go Reorder migrations, skip errors if running migration again (#3160) 7 years ago
v52.go Reorder migrations, skip errors if running migration again (#3160) 7 years ago
v53.go Reorder migrations, skip errors if running migration again (#3160) 7 years ago
v54.go Add Pull Request merge options - Ignore white-space for conflict checking, Rebase, Squash merge (#3188) 7 years ago
v55.go Writable deploy keys (closes #671) (#3225) 7 years ago
v56.go Multiple assignees (#3705) 6 years ago
v57.go Add issue closed time column to fix activity closed issues list (#3537) 6 years ago
v58.go Add label descriptions (#3662) 6 years ago
v59.go Add protected branch whitelists for merging (#3689) 6 years ago
v60.go Add repository setting to enable/disable health checks (#3607) 6 years ago
v61.go Add Size column to attachment (#3734) 6 years ago
v62.go Do not allow to reuse TOTP passcode (#3878) 6 years ago
v63.go Added user language setting (#3875) 6 years ago
v64.go Migration fixes for gogs (0.11.66) to gitea (1.6.0) #5318 (#5341) 6 years ago
v65.go Add support for FIDO U2F (#3971) 6 years ago
v66.go LDAP Public SSH Keys synchronization (#1844) 6 years ago
v67.go Migration fixes for gogs (0.11.66) to gitea (1.6.0) #5318 (#5341) 6 years ago
v68.go refactor: err != nil check, just return error instead (#5093) 6 years ago
v69.go Fix column droping for MSSQL that need new transaction for that (#4440) 6 years ago
v70.go Added dependencies for issues (#2196) (#2531) 6 years ago
v71.go Switch plaintext scratch tokens to use hash instead (#4331) 6 years ago
v72.go Pull request review/approval and comment on code (#3748) 6 years ago
v73.go Force user to change password (#4489) 6 years ago