Team/User: UID migrations (#82298)
* Add user uid migration to run on every startup to protect against empty values in a upgrade downgrade scenario * Add team uid migration to run on every startup to protect against empty values in a upgrade downgrade scenario * Run team uid migration
This commit is contained in:
@@ -613,9 +613,10 @@ func TestIntegrationMergeUser(t *testing.T) {
|
||||
t.Run("should be able to merge user", func(t *testing.T) {
|
||||
// Restore after destructive operation
|
||||
sqlStore := db.InitTestDB(t)
|
||||
teamSvc := teamimpl.ProvideService(sqlStore, setting.NewCfg())
|
||||
teamSvc, err := teamimpl.ProvideService(sqlStore, setting.NewCfg())
|
||||
require.NoError(t, err)
|
||||
team1, err := teamSvc.CreateTeam("team1 name", "", 1)
|
||||
require.Nil(t, err)
|
||||
require.NoError(t, err)
|
||||
usrSvc := setupTestUserService(t, sqlStore)
|
||||
const testOrgID int64 = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user