Passed
Push — main ( f72faa...047ba3 )
by Jeroen
07:10 queued 05:07
created

Version20251002195234   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 6
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
use Doctrine\DBAL\Schema\Schema;
6
use Doctrine\Migrations\AbstractMigration;
0 ignored issues
show
Bug introduced by
The type Doctrine\Migrations\AbstractMigration was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
final class Version20251002195234 extends AbstractMigration
9
{
10
    public function up(Schema $schema): void
11
    {
12
        $this->addSql(
13
            <<<'SQL'
14
            CREATE TABLE `saga_store` (
15
              `saga_id` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
16
              `saga_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
17
              `payload` json NOT NULL,
18
              `created_at` timestamp(6) NOT NULL,
19
              `updated_at` timestamp(6) NULL DEFAULT NULL,
20
              PRIMARY KEY (`saga_id`, `saga_name`)
21
            ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
22
            SQL
23
        );
24
    }
25
}
26