correct migration after test with production data

This commit is contained in:
Claus-Peter Huebner 2023-05-09 20:06:50 +02:00
parent 864beb7914
commit bcb08fc0fb

View File

@ -74,7 +74,7 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
)
*/
await queryFn(
`UPDATE transactions t, users u SET t.linked_user_gradido_id = u.gradido_id, t.linked_user_name = concat(u.first_name, ' ', u.last_name) WHERE t.linked_user_id = u.id and t.linked_user_id is null and t.linked_user_gradido_id is null;`,
`UPDATE transactions t, users u SET t.linked_user_gradido_id = u.gradido_id, t.linked_user_name = concat(u.first_name, ' ', u.last_name) WHERE t.linked_user_id = u.id and t.linked_user_gradido_id is null;`,
)
}