Skip to content

Tighten the schema #11399

@joebon

Description

@joebon

Scope. Make the new role column non-null. Schema-only.

Acceptance criteria

  • Migration: ALTER TABLE user_organizations ALTER COLUMN role SET NOT NULL, shipped after Phase 1 has fully deployed and every row has a value.

Cross-table consistency between role and Account.admin_id continues to rest on the service-layer validation shipped in Phase 1 (Postgres CHECK can't span tables declaratively, and the column is being dropped in Phase 6 anyway, so a trigger isn't worth the trouble).

References. RFC §Phase 2, parent #6646. Depends on #11398.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions