Skip to content

Composite UNIQUE key #100

@SharkFourSix

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?

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