1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/resources/sql/autopatches/20140512.dparents.1.sql

8 lines
324 B
MySQL
Raw Normal View History

CREATE TABLE {$NAMESPACE}_repository.repository_parents (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
childCommitID INT UNSIGNED NOT NULL,
parentCommitID INT UNSIGNED NOT NULL,
UNIQUE `key_child` (childCommitID, parentCommitID),
KEY `key_parent` (parentCommitID)
) ENGINE=InnoDB, COLLATE utf8_general_ci;