Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
5 | class m140501_075316_oauth_public_keys extends CreateTable |
||
6 | { |
||
7 | /** |
||
8 | * @inheritdoc |
||
9 | */ |
||
10 | public function getTableName(): string |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | public function columns(): array |
||
19 | { |
||
20 | return [ |
||
21 | 'client_id' => $this->string(32)->notNull(), |
||
22 | 'public_key' => $this->string(200)->notNUll(), |
||
23 | 'private_key' => $this->string(200)->notNUll(), |
||
24 | 'encription_algorithm' => $this->string(100)->notNull() |
||
25 | ->defaultValue('RS256'), |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | */ |
||
32 | public function foreignKeys(): array |
||
38 | ], |
||
39 | ]; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | public function compositePrimaryKeys(): array |
||
48 | } |
||
49 | } |
||
50 |