Passed
Pull Request — main (#86)
by Jeroen
02:09
created

Version20251002195234::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 4
rs 10
c 1
b 0
f 0
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