summaryrefslogtreecommitdiff
path: root/app/Schema
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-11 19:22:41 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-11 19:22:41 -0400
commitb520868941daf69b8a1d76df809c85243dcfb64a (patch)
tree5bde79038813a724eafa162b2de8eb2767e4c3eb /app/Schema
parentc84df535b6bdc7260144872fc4e0c241a5a5ad61 (diff)
Add missing primary key in Mysql schema
Diffstat (limited to 'app/Schema')
-rw-r--r--app/Schema/Mysql.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index 0da54597..398b963e 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -18,7 +18,8 @@ function version_114(PDO $pdo)
rule VARCHAR(255) NOT NULL,
UNIQUE(role_id, rule),
FOREIGN KEY(project_id) REFERENCES projects(id) ON DELETE CASCADE,
- FOREIGN KEY(role_id) REFERENCES project_has_roles(role_id) ON DELETE CASCADE
+ FOREIGN KEY(role_id) REFERENCES project_has_roles(role_id) ON DELETE CASCADE,
+ PRIMARY KEY(restriction_id)
) ENGINE=InnoDB CHARSET=utf8
");
}