You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result:=dbClient.Raw("SELECT * FROM etainvoicing.migration_records WHERE id IN (SELECT MAX(id) FROM etainvoicing.migration_records GROUP BY version_id) AND is_applied = TRUE ORDER BY version_id DESC LIMIT 1;").Scan(&gm)
137
+
result:=dbClient.Raw(fmt.Sprintf("SELECT * FROM %s.migration_records WHERE id IN (SELECT MAX(id) FROM %s.migration_records GROUP BY version_id) AND is_applied = TRUE ORDER BY version_id DESC LIMIT 1;", schemaname, schemaname)).Scan(&gm)
result:=dbClient.Raw("SELECT * FROM etainvoicing.migration_records WHERE id IN (SELECT MAX(id) FROM etainvoicing.migration_records GROUP BY version_id) AND is_applied = FALSE ORDER BY version_id LIMIT 1;").Scan(&gm)
150
+
result:=dbClient.Raw(fmt.Sprintf("SELECT * FROM %s.migration_records WHERE id IN (SELECT MAX(id) FROM %s.migration_records GROUP BY version_id) AND is_applied = FALSE ORDER BY version_id LIMIT 1;", schemaname, schemaname)).Scan(&gm)
0 commit comments