migrations/Version20210913100803.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7. * Auto-generated Migration: Please modify to your needs!
  8. */
  9. final class Version20210913100803 extends AbstractMigration
  10. {
  11. public function getDescription(): string
  12. {
  13. return '';
  14. }
  15. public function up(Schema $schema): void
  16. {
  17. $this->addSql('ALTER TABLE pck_packagetypes CHANGE displayName display_name VARCHAR(45) NOT NULL,
  18. CHANGE numberOfCredits number_of_credits SMALLINT NOT NULL,
  19. CHANGE purchasePrice purchase_price NUMERIC(8, 2) NOT NULL,
  20. CHANGE internalComment internal_comment VARCHAR(45) DEFAULT NULL,
  21. CHANGE toDisplay to_display TINYINT(1) NOT NULL');
  22. }
  23. public function down(Schema $schema): void
  24. {
  25. $this->addSql('ALTER TABLE pck_packagetypes CHANGE display_name displayName VARCHAR(45) NOT NULL,
  26. CHANGE number_of_credits numberOfCredits SMALLINT NOT NULL,
  27. CHANGE purchase_price purchasePrice NUMERIC(8, 2) NOT NULL,
  28. CHANGE internal_comment internalComment VARCHAR(45) DEFAULT NULL,
  29. CHANGE to_display toDisplay TINYINT(1) NOT NULL');
  30. }
  31. }