| Total Complexity | 2 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class AddOauth2AuthorizationCodesTable20230802152529 extends AbstractMigration |
||
| 11 | { |
||
| 12 | public function up(): void |
||
| 13 | { |
||
| 14 | //Action when migrate up |
||
| 15 | $this->create('oauth_authorization_codes', function (CreateTable $table) { |
||
| 16 | $table->string('authorization_code', 100) |
||
| 17 | ->notNull() |
||
| 18 | ->description('The authorization code') |
||
| 19 | ->primary(); |
||
| 20 | |||
| 21 | $table->string('redirect_uri', 2000) |
||
| 22 | ->description('The client redirect uri'); |
||
| 23 | |||
| 24 | $table->string('scope', 2000) |
||
| 25 | ->description('The authorization code scopes separated with space if many'); |
||
| 26 | |||
| 27 | $table->datetime('expires') |
||
| 28 | ->notNull() |
||
| 29 | ->description('The authorization code expire time'); |
||
| 30 | |||
| 31 | $table->integer('user_id') |
||
| 32 | ->description('The owner of authorization code'); |
||
| 33 | |||
| 34 | $table->string('client_id') |
||
| 35 | ->description('The authorization code client') |
||
| 36 | ->notNull(); |
||
| 37 | |||
| 38 | $table->timestamps(); |
||
| 39 | |||
| 40 | $table->foreign('client_id') |
||
| 41 | ->references('oauth_clients', 'id') |
||
| 42 | ->onDelete('NO ACTION') |
||
| 43 | ->onUpdate('CASCADE'); |
||
| 44 | |||
| 45 | $table->engine('INNODB'); |
||
| 46 | }); |
||
| 47 | } |
||
| 48 | |||
| 49 | public function down(): void |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths