Permalink
Browse files

Akiban does not support foreign key constraints. Explicitly specify t…

…hat in platform implementation.
  • Loading branch information...
1 parent 4cf1dee commit 2044afbd0890b66d3a8255185f461482e2b63bdf @posulliv committed Aug 23, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
@@ -185,6 +185,26 @@ public function supportsReleaseSavepoints()
return $this->supportsSavepoints();
}
+ /**
+ * Does the platform supports foreign key constraints?
+ *
+ * @return boolean
+ */
+ public function supportsForeignKeyConstraints()
+ {
+ return false;
+ }
+
+ /**
+ * Does this platform supports onUpdate in foreign key constraints?
+ *
+ * @return bool
+ */
+ public function supportsForeignKeyOnUpdate()
+ {
+ return ($this->supportsForeignKeyConstraints() && true);
+ }
+
public function getListDatabasesSQL()
{

0 comments on commit 2044afb

Please sign in to comment.