diff --git a/backend/migrations/20250728084742_migrate_audit_log_to_bigint.down.sql b/backend/migrations/20250728084742_migrate_audit_log_to_bigint.down.sql new file mode 100644 index 0000000000..d2f607c5b8 --- /dev/null +++ b/backend/migrations/20250728084742_migrate_audit_log_to_bigint.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/backend/migrations/20250728084742_migrate_audit_log_to_bigint.up.sql b/backend/migrations/20250728084742_migrate_audit_log_to_bigint.up.sql new file mode 100644 index 0000000000..8e5db2d648 --- /dev/null +++ b/backend/migrations/20250728084742_migrate_audit_log_to_bigint.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE audit ALTER COLUMN id TYPE bigint; +ALTER SEQUENCE audit_id_seq AS bigint; \ No newline at end of file diff --git a/backend/windmill-audit/src/lib.rs b/backend/windmill-audit/src/lib.rs index 1c19890c37..8e74edfbf0 100644 --- a/backend/windmill-audit/src/lib.rs +++ b/backend/windmill-audit/src/lib.rs @@ -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, pub username: String, pub operation: String,