File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 99use Symfony \Component \Serializer \Annotation \Ignore ;
1010
1111#[ORM \Entity(repositoryClass: InteractiveSlideRepository::class)]
12- #[ORM \Table(name: 'interactive_slide ' )]
1312class InteractiveSlideConfig extends AbstractTenantScopedEntity
1413{
1514 #[Ignore]
You can’t perform that action at this time.
0 commit comments