Browse Source
Merge pull request #7525 from ViacheslavKlimov/fix/audit-logs-migration-script
[3.4.2] Fix audit logs migration script
pull/7546/head
Andrew Shvayka
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
application/src/main/data/upgrade/3.4.1/schema_update.sql
|
|
|
@ -68,7 +68,8 @@ BEGIN |
|
|
|
END LOOP; |
|
|
|
|
|
|
|
INSERT INTO audit_log |
|
|
|
SELECT * FROM old_audit_log |
|
|
|
SELECT id, created_time, tenant_id, customer_id, entity_id, entity_type, entity_name, user_id, user_name, action_type, action_data, action_status, action_failure_details |
|
|
|
FROM old_audit_log |
|
|
|
WHERE created_time >= start_time_ms AND created_time < end_time_ms; |
|
|
|
END; |
|
|
|
$$; |
|
|
|
|