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

Add migration for password algorithm change #12784

Merged
merged 13 commits into from
Sep 15, 2020

Commits on Sep 9, 2020

  1. Add migration for password algorithm change

    go-gitea#12688 changed the default for the user table leading to sync2 warnings
    
    Unfortunately changing defaults requires a complete table rewrite in general.
    
    However, just dropping columns could be bad - so this PR leverages the
    techniques used in recreate table to recreate from the inferred schema
    and recreates the user table.
    
    This is not necessarily the correct thing to do - but code sometimes speaks
    louder than words.
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Sep 9, 2020
    Configuration menu
    Copy the full SHA
    844edb6 View commit details
    Browse the repository at this point in the history
  2. oops

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Sep 9, 2020
    Configuration menu
    Copy the full SHA
    129fa5b View commit details
    Browse the repository at this point in the history
  3. ok lets use the shorter bits for other dbs

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Sep 9, 2020
    Configuration menu
    Copy the full SHA
    f4a27e4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fab0679 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1728077 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2020

  1. fix migration

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    0c8a732 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2020

  1. mv v150 to v151.go

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Sep 13, 2020
    Configuration menu
    Copy the full SHA
    d508df7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    459da9e View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2020

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

Commits on Sep 15, 2020

  1. Configuration menu
    Copy the full SHA
    795d951 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    96f591c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    85234fd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4d4635b View commit details
    Browse the repository at this point in the history