Passed
Push — trunk ( 94905f...91596f )
by Christian
09:50 queued 14s
created

Migration1688644407ThemeAddThemeConfig   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 1
b 1
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A updateDestructive() 0 2 1
A update() 0 3 1
A getCreationTimestamp() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Storefront\Migration\V6_5;
4
5
use Doctrine\DBAL\Connection;
6
use Shopware\Core\Framework\Log\Package;
7
use Shopware\Core\Framework\Migration\MigrationStep;
8
9
/**
10
 * @internal
11
 */
12
#[Package('core')]
13
class Migration1688644407ThemeAddThemeConfig extends MigrationStep
14
{
15
    public function getCreationTimestamp(): int
16
    {
17
        return 1688644407;
18
    }
19
20
    public function update(Connection $connection): void
21
    {
22
        $connection->executeStatement('ALTER TABLE `theme` ADD `theme_json` JSON NULL;');
23
    }
24
25
    public function updateDestructive(Connection $connection): void
26
    {
27
    }
28
}
29