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

Backport of migration fixes (#2604) #2677

Merged
merged 3 commits into from
Oct 9, 2017

Commits on Oct 9, 2017

  1. Rewrite migrations to not depend on future code changes (go-gitea#2604)

    * v38 migration used an outdated version of RepoUnit model (go-gitea#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
    daviian committed Oct 9, 2017
    Configuration menu
    Copy the full SHA
    33685d4 View commit details
    Browse the repository at this point in the history
  2. replace deprecated .Id with .ID

    Signed-off-by: David Schneiderbauer <[email protected]>
    daviian committed Oct 9, 2017
    Configuration menu
    Copy the full SHA
    2fb3ef8 View commit details
    Browse the repository at this point in the history
  3. change string map to interface map

    Signed-off-by: David Schneiderbauer <[email protected]>
    daviian committed Oct 9, 2017
    Configuration menu
    Copy the full SHA
    3559d28 View commit details
    Browse the repository at this point in the history