Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implemnet getListTableConstraintsSQL function.

  • Loading branch information...
commit 3277021beeeb7d64bb1735d2eeb0b3ef5700f2cf 1 parent 1736d59
@posulliv authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
View
6 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
@@ -180,7 +180,11 @@ public function getDropViewSQL($name)
public function getListTableConstraintsSQL($table)
{
- // TODO
+ // TODO - do we only want unique and primary key indexes here?
+ return "SELECT index_name " .
+ "FROM information_schema.indexes " .
+ "WHERE schema_name != 'information_schema' AND " .
+ "table_name = '" . $table . "'";
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.