feat: migrate audit log ids to bigints (blocking migration for EE)

This commit is contained in:
Ruben Fiszel
2025-07-28 08:52:39 +00:00
parent d09d90589d
commit 6e8f5a5b00
3 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1 @@
-- Add down migration script here

View File

@@ -0,0 +1,2 @@
ALTER TABLE audit ALTER COLUMN id TYPE bigint;
ALTER SEQUENCE audit_id_seq AS bigint;

View File

@@ -17,7 +17,7 @@ pub enum ActionKind {
#[derive(FromRow, Serialize, Deserialize)]
pub struct AuditLog {
pub workspace_id: String,
pub id: i32,
pub id: i64,
pub timestamp: chrono::DateTime<chrono::Utc>,
pub username: String,
pub operation: String,