make org unit name and shortname unique, to avoid mistakes
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Mar 2009 21:44:25 +0000 (21:44 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Mar 2009 21:44:25 +0000 (21:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12455 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/005.schema.actors.sql

index 12e39d4..d8eb74d 100644 (file)
@@ -332,8 +332,8 @@ CREATE TABLE actor.org_unit (
        holds_address   INT,
        mailing_address INT,
        billing_address INT,
-       shortname       TEXT    NOT NULL,
-       name            TEXT    NOT NULL,
+       shortname       TEXT    NOT NULL UNIQUE,
+       name            TEXT    NOT NULL UNIQUE,
        email           TEXT,
        phone           TEXT,
        opac_visible    BOOL    NOT NULL DEFAULT TRUE