Skip to content

PostgreSQL UNIQUE constraint as table constraints #1026

Description

@opya

Is there any support for this:

http://www.w3resource.com/PostgreSQL/unique.php

CREATE TABLE orders(
ord_no integer,
ord_date date,
item_name character(35),
item_grade character(1),
ord_qty numeric,
ord_amount numeric,
UNIQUE (ord_no)
);

this don't do what i expected:
->addIndex(array("ord_no"), array('unique' => true))

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions