Skip to content

Commit

Permalink
fixed schema
Browse files Browse the repository at this point in the history
  • Loading branch information
gisab committed Oct 3, 2016
1 parent 3e3066f commit 8297937
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/gmp-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ CREATE TABLE `files` (
`LAST_UPDATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`targetid` varchar(10) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ifunique` (`qid`,`filename`) USING BTREE,
KEY `qid` (`qid`),
KEY `qid_2` (`qid`,`targetid`),
KEY `if` (`filename`) USING BTREE,
CONSTRAINT `fk` FOREIGN KEY (`qid`, `targetid`) REFERENCES `queue` (`id`, `targetid`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
Expand Down

0 comments on commit 8297937

Please sign in to comment.