Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration fixes for gogs (0.11.66) to gitea (1.6.0) #5318 #5341

Merged
merged 3 commits into from
Nov 18, 2018

Commits on Nov 15, 2018

  1. 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 go-gitea#5318
    nougad committed Nov 15, 2018
    Configuration menu
    Copy the full SHA
    0f803f7 View commit details
    Browse the repository at this point in the history
  2. 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 go-gitea#5318
    nougad committed Nov 15, 2018
    Configuration menu
    Copy the full SHA
    8001783 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2018

  1. Configuration menu
    Copy the full SHA
    75e5ef5 View commit details
    Browse the repository at this point in the history