IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24386


Ignore:
Timestamp:
Jun 12, 2009, 1:27:33 PM (17 years ago)
Author:
jhoblitt
Message:

don't allow duplicate dirname entries in the directory table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm

    r23947 r24386  
    455455    FOREIGN KEY(parent_id) REFERENCES directory(dir_id),
    456456    PRIMARY KEY(dir_id),
    457     KEY(parent_id)
     457    KEY(parent_id),
     458    KEY(dirname),
     459    UNIQUE(dirname, parent_id)
    458460) ENGINE=innodb DEFAULT CHARSET=latin1;
    459461
Note: See TracChangeset for help on using the changeset viewer.