Skip to content

Composite UNIQUE key #100

Description

@SharkFourSix
create table extra_data (
    id serial not null primary key, 
    code int not null, 
    data text not null,
    owner_id int not null,

    constraint ed_key unique(code, owner_id)
)

I need this very specific situation but the library doesn't seem to support it/throws errors. Any work around or I should look for something else?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions