Commit 4a8271b
feat(migration): add organization_id column to audit_log (#2789)
Adds an organization_id column and (organization_id, timestamp DESC)
index to the audit_log table on both MySQL and Postgres, so
organization-level events can be stored there with an empty
environment_id and read by organization admins.
Step 1 of #1982.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 27448d8 commit 4a8271b
4 files changed
Lines changed: 14 additions & 2 deletions
File tree
- migration
- mysql
- postgres
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
0 commit comments