Spanner-related fixes (#102376)
* Fix UNION syntax in resourcepermissions package. * Fix migrations in usermig package to work with Spanner. * Fix health query. * Use more connections for integration tests. * Add test-go-integration-spanner target to run integration tests against Spanner emulator. * Add test for enterprise. * Don't delete sequence number for migration_log.id column. * Only bump max open connections to 20 for Spanner. Lower integration test timeout.
This commit is contained in:
@@ -147,6 +147,9 @@ func (s *SpannerDialect) TruncateDBTables(engine *xorm.Engine) error {
|
||||
switch table.Name {
|
||||
case "":
|
||||
continue
|
||||
case "autoincrement_sequences":
|
||||
// Don't delete sequence number for migration_log.id column.
|
||||
statements = append(statements, fmt.Sprintf("DELETE FROM %v WHERE name <> 'migration_log:id'", s.Quote(table.Name)))
|
||||
case "migration_log":
|
||||
continue
|
||||
case "dashboard_acl":
|
||||
|
||||
Reference in New Issue
Block a user