-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixed non-named inherited indexes
- Loading branch information
1 parent
c153550
commit a43439c
Showing
6 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace RZ\Roadiz\Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
*/ | ||
final class Version20230828092821 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Fixed inherited indexes.'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
// this up() migration is auto-generated, please modify it to your needs | ||
$this->addSql('CREATE INDEX custom_form_created_at ON custom_forms (created_at)'); | ||
$this->addSql('CREATE INDEX custom_form_updated_at ON custom_forms (updated_at)'); | ||
$this->addSql('CREATE INDEX redirection_created_at ON redirections (created_at)'); | ||
$this->addSql('CREATE INDEX redirection_updated_at ON redirections (updated_at)'); | ||
$this->addSql('CREATE INDEX idx_user_created_at ON users (created_at)'); | ||
$this->addSql('CREATE INDEX idx_user_updated_at ON users (updated_at)'); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
// this down() migration is auto-generated, please modify it to your needs | ||
$this->addSql('DROP INDEX custom_form_created_at ON custom_forms'); | ||
$this->addSql('DROP INDEX custom_form_updated_at ON custom_forms'); | ||
$this->addSql('DROP INDEX redirection_created_at ON redirections'); | ||
$this->addSql('DROP INDEX redirection_updated_at ON redirections'); | ||
$this->addSql('DROP INDEX idx_user_created_at ON users'); | ||
$this->addSql('DROP INDEX idx_user_updated_at ON users'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace RZ\Roadiz\FontBundle\Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
*/ | ||
final class Version20230828092912 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Fixed Font inherited indexes.'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
// this up() migration is auto-generated, please modify it to your needs | ||
$this->addSql('CREATE INDEX font_created_at ON fonts (created_at)'); | ||
$this->addSql('CREATE INDEX font_updated_at ON fonts (updated_at)'); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
// this down() migration is auto-generated, please modify it to your needs | ||
$this->addSql('DROP INDEX font_created_at ON fonts'); | ||
$this->addSql('DROP INDEX font_updated_at ON fonts'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters