Fixed wrong method name in RBAC migration

This commit is contained in:
SilverFire - Dmitry Naumenko
2017-02-15 15:27:02 +02:00
parent 2504ab72f2
commit 04eb836aa1

View File

@ -37,7 +37,7 @@ class m140506_102106_rbac_init extends \yii\db\Migration
return $this->db->driverName === 'mssql' || $this->db->driverName === 'sqlsrv' || $this->db->driverName === 'dblib'; return $this->db->driverName === 'mssql' || $this->db->driverName === 'sqlsrv' || $this->db->driverName === 'dblib';
} }
protected function isPgSQL() protected function isOracle()
{ {
return $this->db->driverName === 'oci'; return $this->db->driverName === 'oci';
} }
@ -159,7 +159,7 @@ class m140506_102106_rbac_init extends \yii\db\Migration
return ''; return '';
} }
if ($this->isPgSQL()) { if ($this->isOracle()) {
return ' ON DELETE SET NULL'; return ' ON DELETE SET NULL';
} }