[MM-25673] Upgrades and migrations to start using master gorp (#14823)
Database changes needed to reflect gorp master changes
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0302e0f477
Коммит
f619de2c83
24
vendor/github.com/mattermost/gorp/Makefile
сгенерированный
поставляемый
Обычный файл
24
vendor/github.com/mattermost/gorp/Makefile
сгенерированный
поставляемый
Обычный файл
@@ -0,0 +1,24 @@
|
||||
GOTESTFLAGS ?= -test.count=1
|
||||
|
||||
test-all: test-unit test-mymysql test-gomysql test-postgres test-sqlite
|
||||
|
||||
test-unit:
|
||||
echo "Running unit tests"
|
||||
ginkgo -r -race -randomizeAllSpecs -keepGoing -- -test.run TestGorp
|
||||
|
||||
test-mymysql:
|
||||
echo "Testing against mymysql"
|
||||
go test . $(GOTESTFLAGS) -dsn="tcp:localhost:3306*gorptest/gorptest/gorptest" -dialect="mysql"
|
||||
|
||||
test-gomysql:
|
||||
echo "Testing against gomysql"
|
||||
go test . $(GOTESTFLAGS) -dsn="gorptest:gorptest@tcp(localhost:3306)/gorptest" -dialect="gomysql"
|
||||
|
||||
test-postgres:
|
||||
echo "Testing against postgres"
|
||||
go test . $(GOTESTFLAGS) -dsn="host=localhost user=gorptest password=gorptest dbname=gorptest sslmode=disable" -dialect="postgres"
|
||||
|
||||
test-sqlite:
|
||||
echo "Testing against sqlite"
|
||||
go test . $(GOTESTFLAGS) -dsn="/tmp/gorptest.bin" -dialect="sqlite"
|
||||
rm -f /tmp/gorptest.bin
|
||||
Ссылка в новой задаче
Block a user