Skip to content

Commit d07526c

Browse files
committed
4992: Fixed table name. Renamed index
1 parent acc47c4 commit d07526c

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace DoctrineMigrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
final class Version20250828084617 extends AbstractMigration
11+
{
12+
public function getDescription(): string
13+
{
14+
return 'Rename interactive_slide to interactive_slide_config';
15+
}
16+
17+
public function up(Schema $schema): void
18+
{
19+
$this->addSql('RENAME TABLE interactive_slide TO interactive_slide_config;');
20+
$this->addSql('ALTER TABLE interactive_slide_config RENAME INDEX idx_138e544d9033212a TO IDX_D30060259033212A');
21+
}
22+
23+
public function down(Schema $schema): void
24+
{
25+
$this->addSql('ALTER TABLE interactive_slide_config RENAME INDEX idx_d30060259033212a TO IDX_138E544D9033212A');
26+
$this->addSql('RENAME TABLE interactive_slide_config TO interactive_slide;');
27+
}
28+
}

src/Entity/Tenant/InteractiveSlideConfig.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Symfony\Component\Serializer\Annotation\Ignore;
1010

1111
#[ORM\Entity(repositoryClass: InteractiveSlideRepository::class)]
12-
#[ORM\Table(name: 'interactive_slide')]
1312
class InteractiveSlideConfig extends AbstractTenantScopedEntity
1413
{
1514
#[Ignore]

0 commit comments

Comments
 (0)