summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-09-15 23:02:41 +0100
committerGitHub <noreply@github.com>2020-09-15 18:02:41 -0400
commit772b5e0f548548d5633b99fb40f59e5075f1c6db (patch)
treee9071952fda509af176dab0da2d5e375d86aef68 /Makefile
parent88823f3e29385922cffab697d8d9f5a9a2ad3e42 (diff)
downloadgitea-772b5e0f548548d5633b99fb40f59e5075f1c6db.tar.gz
gitea-772b5e0f548548d5633b99fb40f59e5075f1c6db.zip
Add migration for password algorithm change (#12784)
* Add migration for password algorithm change #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> * oops Signed-off-by: Andrew Thornton <art27@cantab.net> * ok lets use the shorter bits for other dbs Signed-off-by: Andrew Thornton <art27@cantab.net> * Update models/migrations/v150.go * Update models/migrations/v150.go * fix migration Signed-off-by: Andrew Thornton <art27@cantab.net> * mv v150 to v151.go Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a394846200..3e992f15e1 100644
--- a/Makefile
+++ b/Makefile
@@ -469,7 +469,7 @@ test-mssql\#%: integrations.mssql.test generate-ini-mssql
.PHONY: test-mssql-migration
test-mssql-migration: migrations.mssql.test generate-ini-mssql
- GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mssql.ini ./migrations.mssql.test
+ GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mssql.ini ./migrations.mssql.test -test.failfast
.PHONY: bench-sqlite
bench-sqlite: integrations.sqlite.test generate-ini-sqlite