Skip to content

audit_logs: entity/migration disagree on http_method type, version, a… - #1214

Merged
RUKAYAT-CODER merged 2 commits into
rinafcode:mainfrom
MaryammAli:audit_logs-entity/migration-disagree-on-http_method-type-versionp
Aug 21, 2026
Merged

audit_logs: entity/migration disagree on http_method type, version, a…#1214
RUKAYAT-CODER merged 2 commits into
rinafcode:mainfrom
MaryammAli:audit_logs-entity/migration-disagree-on-http_method-type-versionp

Conversation

@MaryammAli

Copy link
Copy Markdown
Contributor

Summary

This PR resolves the schema mismatch between the AuditLog entity and the create-audit-log-table migration.

Changes Made

  • Aligned the http_method definition between the entity and database migration.
  • Reconciled the version column so the entity and migration use the same schema.
  • Aligned the timestamp column to use the same timezone-aware definition across the entity and migration.
  • Ensured the migration and entity represent a consistent canonical schema to prevent unnecessary schema drift.

Problem

The migration defined http_method as varchar and included a version column, while the AuditLog entity defined http_method as an enum and did not include version.

Additionally, the migration defined timestamp as timestamptz, while the entity mapping did not explicitly use the timezone-aware type.

These differences caused schema synchronization to attempt changes to the existing audit log table.

Result

The AuditLog entity and database migration are now consistent, preventing schema drift and ensuring the audit log table is created and maintained with the expected column types and definitions.

Closes #1203

…nd timestamp

audit_logs: entity/migration disagree on http_method type, version, and timestamp
fixes
@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit 71d63b5 into rinafcode:main Aug 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants