|
@@ -41,7 +41,11 @@ func DestroyInstance(clientVersion string, databaseID string) error {
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func AutoMigrate(items []client.AutoMigrateItem) error {
|
|
|
|
|
|
|
+func AutoMigrate(items ...client.AutoMigrateItem) error {
|
|
|
|
|
+ if items == nil || len(items) == 0 {
|
|
|
|
|
+ return nil
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
dpsClientMutex.Lock()
|
|
dpsClientMutex.Lock()
|
|
|
defer dpsClientMutex.Unlock()
|
|
defer dpsClientMutex.Unlock()
|
|
|
|
|
|