@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace zacksleo\yii2\oauth2\common\behaviors; |
4 | 4 | |
5 | 5 | use zacksleo\yii2\oauth2\common\predis\Predis; |
6 | -use yii; |
|
7 | 6 | use yii\base\Behavior; |
8 | 7 | use yii\web\Controller; |
9 | 8 | use common\models\storage\AccessToken; |
@@ -5,6 +5,9 @@ discard block |
||
5 | 5 | class m160501_075311_add_oauth2_server extends \yii\db\Migration |
6 | 6 | { |
7 | 7 | |
8 | + /** |
|
9 | + * @return string|null |
|
10 | + */ |
|
8 | 11 | public function mysql($yes, $no = '') |
9 | 12 | { |
10 | 13 | return $this->db->driverName === 'mysql' ? $yes : $no; |
@@ -15,6 +18,13 @@ discard block |
||
15 | 18 | return 'PRIMARY KEY (' . $this->db->getQueryBuilder()->buildColumns($columns) . ')'; |
16 | 19 | } |
17 | 20 | |
21 | + /** |
|
22 | + * @param string $columns |
|
23 | + * @param string $refTable |
|
24 | + * @param string $refColumns |
|
25 | + * @param string $onDelete |
|
26 | + * @param string $onUpdate |
|
27 | + */ |
|
18 | 28 | public function foreignKey($columns, $refTable, $refColumns, $onDelete = null, $onUpdate = null) |
19 | 29 | { |
20 | 30 | $builder = $this->db->getQueryBuilder(); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Yii; |
6 | 6 | use yii\helpers\ArrayHelper; |
7 | 7 | use yii\helpers\FileHelper; |
8 | -use yii\db\Schema; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * This is the base class for all yii framework unit tests. |