aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/migration-test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/migration-test')
-rw-r--r--tests/integration/migration-test/migration_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/integration/migration-test/migration_test.go b/tests/integration/migration-test/migration_test.go
index b631168340..0159fb4f3c 100644
--- a/tests/integration/migration-test/migration_test.go
+++ b/tests/integration/migration-test/migration_test.go
@@ -20,6 +20,7 @@ import (
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/models/migrations"
+ migrate_base "code.gitea.io/gitea/models/migrations/base"
"code.gitea.io/gitea/models/unittest"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/charset"
@@ -302,7 +303,7 @@ func doMigrationTest(t *testing.T, version string) {
err = db.InitEngineWithMigration(context.Background(), func(x *xorm.Engine) error {
currentEngine = x
- return migrations.RecreateTables(beans...)(x)
+ return migrate_base.RecreateTables(beans...)(x)
})
assert.NoError(t, err)
currentEngine.Close()
@@ -310,7 +311,7 @@ func doMigrationTest(t *testing.T, version string) {
// We do this a second time to ensure that there is not a problem with retained indices
err = db.InitEngineWithMigration(context.Background(), func(x *xorm.Engine) error {
currentEngine = x
- return migrations.RecreateTables(beans...)(x)
+ return migrate_base.RecreateTables(beans...)(x)
})
assert.NoError(t, err)