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

Migration1688644407ThemeAddThemeConfig::update()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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