vendor/bluue/inventories-bundle/migrations/Version20231206123655.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace InventoriesBundleMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. final class Version20231206123655 extends AbstractMigration
  7. {
  8.     public function up(Schema $schema): void
  9.     {
  10.         $this->addSql('CREATE INDEX reference ON inventories_bundle__inventory (reference)');
  11.         $this->addSql('CREATE INDEX name ON inventories_bundle__inventory (name)');
  12.         $this->addSql('CREATE INDEX deleted_at ON inventories_bundle__inventory (deleted_at)');
  13.         $this->addSql('CREATE INDEX created_at ON inventories_bundle__inventory (created_at)');
  14.         $this->addSql('CREATE INDEX updated_at ON inventories_bundle__inventory (updated_at)');
  15.         $this->addSql('CREATE INDEX deleted_at ON inventories_bundle__inventory_original_product (deleted_at)');
  16.         $this->addSql('CREATE INDEX created_at ON inventories_bundle__inventory_original_product (created_at)');
  17.         $this->addSql('CREATE INDEX updated_at ON inventories_bundle__inventory_original_product (updated_at)');
  18.         $this->addSql('CREATE INDEX deleted_at ON inventories_bundle__inventory_original_product_quantity (deleted_at)');
  19.         $this->addSql('CREATE INDEX created_at ON inventories_bundle__inventory_original_product_quantity (created_at)');
  20.         $this->addSql('CREATE INDEX updated_at ON inventories_bundle__inventory_original_product_quantity (updated_at)');
  21.         $this->addSql('CREATE INDEX deleted_at ON inventories_bundle__inventory_product (deleted_at)');
  22.         $this->addSql('CREATE INDEX created_at ON inventories_bundle__inventory_product (created_at)');
  23.         $this->addSql('CREATE INDEX updated_at ON inventories_bundle__inventory_product (updated_at)');
  24.         $this->addSql('CREATE INDEX deleted_at ON inventories_bundle__inventory_product_quantity (deleted_at)');
  25.         $this->addSql('CREATE INDEX created_at ON inventories_bundle__inventory_product_quantity (created_at)');
  26.         $this->addSql('CREATE INDEX updated_at ON inventories_bundle__inventory_product_quantity (updated_at)');
  27.     }
  28.     public function down(Schema $schema): void
  29.     {
  30.         $this->addSql('DROP INDEX reference ON inventories_bundle__inventory');
  31.         $this->addSql('DROP INDEX name ON inventories_bundle__inventory');
  32.         $this->addSql('DROP INDEX deleted_at ON inventories_bundle__inventory');
  33.         $this->addSql('DROP INDEX created_at ON inventories_bundle__inventory');
  34.         $this->addSql('DROP INDEX updated_at ON inventories_bundle__inventory');
  35.         $this->addSql('DROP INDEX deleted_at ON inventories_bundle__inventory_original_product');
  36.         $this->addSql('DROP INDEX created_at ON inventories_bundle__inventory_original_product');
  37.         $this->addSql('DROP INDEX updated_at ON inventories_bundle__inventory_original_product');
  38.         $this->addSql('DROP INDEX deleted_at ON inventories_bundle__inventory_original_product_quantity');
  39.         $this->addSql('DROP INDEX created_at ON inventories_bundle__inventory_original_product_quantity');
  40.         $this->addSql('DROP INDEX updated_at ON inventories_bundle__inventory_original_product_quantity');
  41.         $this->addSql('DROP INDEX deleted_at ON inventories_bundle__inventory_product');
  42.         $this->addSql('DROP INDEX created_at ON inventories_bundle__inventory_product');
  43.         $this->addSql('DROP INDEX updated_at ON inventories_bundle__inventory_product');
  44.         $this->addSql('DROP INDEX deleted_at ON inventories_bundle__inventory_product_quantity');
  45.         $this->addSql('DROP INDEX created_at ON inventories_bundle__inventory_product_quantity');
  46.         $this->addSql('DROP INDEX updated_at ON inventories_bundle__inventory_product_quantity');
  47.     }
  48. }