fix(outbound): align user FK with users(user_id) TEXT schema
V11 migration referenced users(id) as uuid, but V1 users table has user_id as TEXT primary key. Amending V11 and the OutboundConnection record before Task 7's integration tests catch this at Flyway startup. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,9 +21,9 @@ CREATE TABLE outbound_connections (
|
||||
auth_config jsonb NOT NULL DEFAULT '{}',
|
||||
allowed_environment_ids uuid[] NOT NULL DEFAULT '{}',
|
||||
created_at timestamptz NOT NULL DEFAULT now(),
|
||||
created_by uuid NOT NULL REFERENCES users(id),
|
||||
created_by text NOT NULL REFERENCES users(user_id),
|
||||
updated_at timestamptz NOT NULL DEFAULT now(),
|
||||
updated_by uuid NOT NULL REFERENCES users(id),
|
||||
updated_by text NOT NULL REFERENCES users(user_id),
|
||||
CONSTRAINT outbound_connections_name_unique_per_tenant UNIQUE (tenant_id, name)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user