Skip to content

[Coder] Schema update - #517

Open
ariga-bot wants to merge 1 commit into
masterfrom
f/coder-593972
Open

[Coder] Schema update#517
ariga-bot wants to merge 1 commit into
masterfrom
f/coder-593972

Conversation

@ariga-bot

Copy link
Copy Markdown
Collaborator

Backward-incompatible change: renamed column time to logged_at in public.audit_logs. Applications querying audit_logs.time will break until updated.

…t in public.audit_logs. Applications querying audit_logs.time will break until updated.
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

atlas migrate lint on dirs/coder/migrations

Status Step Result
1 new migration file detected 20260805154732.sql
ERD and visual diff generated View Visualization
Analyze 20260805154732.sql
3 reports were found in analysis
Destructive changes detected
Dropping non-virtual column "time" (DS103)
Data dependent changes detected
Adding a non-nullable "timestamptz" column "logged_at" will fail in case table "audit_logs" is not empty (MF103)
Concurrent index violations detected
Dropping the index "idx_audit_logs_org_resource_time_desc" non-concurrently acquires an ACCESS EXCLUSIVE lock on table "audit_logs", blocking both reads and writes during the operation (PG102)
Dropping the index "idx_audit_logs_org_time_desc" non-concurrently acquires an ACCESS EXCLUSIVE lock on table "audit_logs", blocking both reads and writes during the operation (PG102)
Dropping the index "idx_audit_logs_organization_time_desc" non-concurrently acquires an ACCESS EXCLUSIVE lock on table "audit_logs", blocking both reads and writes during the operation (PG102)
Dropping the index "idx_audit_logs_time_desc" non-concurrently acquires an ACCESS EXCLUSIVE lock on table "audit_logs", blocking both reads and writes during the operation (PG102)
Dropping the index "idx_audit_logs_user_time_desc" non-concurrently acquires an ACCESS EXCLUSIVE lock on table "audit_logs", blocking both reads and writes during the operation (PG102)
Creating the index "idx_audit_logs_org_resource_time_desc" non-concurrently acquires a SHARE lock on table "audit_logs", blocking writes but allowing reads during the operation (PG101)
Creating the index "idx_audit_logs_org_time_desc" non-concurrently acquires a SHARE lock on table "audit_logs", blocking writes but allowing reads during the operation (PG101)
Creating the index "idx_audit_logs_organization_time_desc" non-concurrently acquires a SHARE lock on table "audit_logs", blocking writes but allowing reads during the operation (PG101)
Creating the index "idx_audit_logs_time_desc" non-concurrently acquires a SHARE lock on table "audit_logs", blocking writes but allowing reads during the operation (PG101)
Creating the index "idx_audit_logs_user_time_desc" non-concurrently acquires a SHARE lock on table "audit_logs", blocking writes but allowing reads during the operation (PG101)
Read the full linting report on Atlas Cloud

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.

1 participant