mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Implement retrieving dbms constraints
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user