IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24740


Ignore:
Timestamp:
Jul 9, 2009, 2:47:21 PM (17 years ago)
Author:
bills
Message:

add a constraint to insure that targets are unique

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r24730 r24740  
    12841284    PRIMARY KEY(int_id),
    12851285    FOREIGN KEY(dest_id) REFERENCES rcDestination(dest_id),
    1286     FOREIGN KEY(target_id) REFERENCES distTarget(target_id)
     1286    FOREIGN KEY(target_id) REFERENCES distTarget(target_id),
     1287    CONSTRAINT UNIQUE (dest_id, target_id)
    12871288)  ENGINE=innodb DEFAULT CHARSET=latin1;
    12881289
Note: See TracChangeset for help on using the changeset viewer.