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

V20251002194212::change()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 9
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
use Phinx\Migration\AbstractMigration;
0 ignored issues
show
Bug introduced by
The type Phinx\Migration\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...
6
7
final class V20251002194212 extends AbstractMigration
8
{
9
    public function change(): void
10
    {
11
        $this->table('saga_store', ['id' => false, 'primary_key' => ['saga_id', 'saga_name']])
12
            ->addColumn('saga_id', 'string', ['limit' => 50, 'null' => false])
13
            ->addColumn('saga_name', 'string', ['null' => false])
14
            ->addColumn('payload', 'json', ['null' => false])
15
            ->addColumn('created_at', 'timestamp', ['limit' => 6, 'null' => false])
16
            ->addColumn('updated_at', 'timestamp', ['limit' => 6, 'null' => true])
17
            ->create();
18
    }
19
}
20