Skip to content

Commit fe85255

Browse files
move a DB migration from project-base to the framework package (#4388)
2 parents 988c84e + 014b58e commit fe85255

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Shopsys\FrameworkBundle\Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Override;
9+
use Shopsys\MigrationBundle\Component\Doctrine\Migrations\AbstractMigration;
10+
11+
class Version20251217100000 extends AbstractMigration
12+
{
13+
/**
14+
* @param \Doctrine\DBAL\Schema\Schema $schema
15+
*/
16+
#[Override]
17+
public function up(Schema $schema): void
18+
{
19+
if ($this->isAppMigrationNotInstalledRemoveIfExists('Version20251217100000')) {
20+
$this->sql('ALTER TABLE slider_items ADD route_name VARCHAR(255) DEFAULT NULL');
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)