Skip to content

audit_logs: entity/migration disagree on http_method type, version, and timestamp #1203

Description

@RUKAYAT-CODER

Migration 1762000000000-create-audit-log-table.ts creates http_method as varchar and includes a version column; the entity AuditLog declares http_method as an enum (audit_logs_http_method_enum) and has no version column. The timestamp column is also declared as timestamptz in the migration but mapped via @CreateDateColumn({ name: 'timestamp' }) (timestamp without tz).

Result: schema drift wants to change http_method type, drop version, and change timestamp (all part of the #1194 snapshot).

Fix: pick canonical definitions — enum vs varchar for http_method, keep or drop version — and align the migration with the entity (or add a follow-up migration that reconciles them).

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions