|
|
@ -7,6 +7,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
namespace yii\db\pgsql; |
|
|
|
namespace yii\db\pgsql; |
|
|
|
|
|
|
|
|
|
|
|
use yii\base\InvalidParamException; |
|
|
|
use yii\base\InvalidParamException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -111,8 +112,7 @@ class QueryBuilder extends \yii\db\QueryBuilder |
|
|
|
$tableNames = $table ? [$table] : $this->db->schema->findTableNames($schema); |
|
|
|
$tableNames = $table ? [$table] : $this->db->schema->findTableNames($schema); |
|
|
|
$command = ''; |
|
|
|
$command = ''; |
|
|
|
|
|
|
|
|
|
|
|
foreach($tableNames as $tableName) |
|
|
|
foreach ($tableNames as $tableName) { |
|
|
|
{ |
|
|
|
|
|
|
|
$tableName = '"' . $schema . '"."' . $tableName . '"'; |
|
|
|
$tableName = '"' . $schema . '"."' . $tableName . '"'; |
|
|
|
$command .= "ALTER TABLE $tableName $enable TRIGGER ALL; "; |
|
|
|
$command .= "ALTER TABLE $tableName $enable TRIGGER ALL; "; |
|
|
|
} |
|
|
|
} |
|
|
|