Implement retrieving dbms constraints

This commit is contained in:
Sergey Makinen
2017-05-03 17:23:30 +03:00
parent 625d554e3a
commit 73ac13e6d7
47 changed files with 5455 additions and 445 deletions

View File

@ -53,6 +53,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
*/
protected $likeEscapeCharacter = '\\';
/**
* Generates a batch INSERT SQL statement.
* For example,
@ -299,6 +300,60 @@ class QueryBuilder extends \yii\db\QueryBuilder
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.');
}
/**
* @inheritDoc
* @throws NotSupportedException this is not supported by SQLite.
*/
public function addUnique($name, $table, $columns)
{
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.');
}
/**
* @inheritDoc
* @throws NotSupportedException this is not supported by SQLite.
*/
public function dropUnique($name, $table)
{
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.');
}
/**
* @inheritDoc
* @throws NotSupportedException this is not supported by SQLite.
*/
public function addCheck($name, $table, $check)
{
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.');
}
/**
* @inheritDoc
* @throws NotSupportedException this is not supported by SQLite.
*/
public function dropCheck($name, $table)
{
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.');
}
/**
* @inheritDoc
* @throws NotSupportedException this is not supported by SQLite.
*/
public function addDefaultValue($name, $table, $column, $default)
{
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.');
}
/**
* @inheritDoc
* @throws NotSupportedException this is not supported by SQLite.
*/
public function dropDefaultValue($name, $table)
{
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.');
}
/**
* @inheritdoc
* @throws NotSupportedException