migrations/Version20250519064647.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 Version20250519064647 extends AbstractMigration
  10. {
  11. public function getDescription(): string
  12. {
  13. return 'Add time frame tracking fields to tc_tcard table';
  14. }
  15. public function up(Schema $schema): void
  16. {
  17. // this up() migration is auto-generated, please modify it to your needs
  18. $this->addSql(<<<'SQL'
  19. ALTER TABLE tc_tcard ADD is_delayed_time_frame TINYINT(1) NOT NULL DEFAULT 0, ADD is_missed_time_frame TINYINT(1) NOT NULL DEFAULT 0, ADD missed_time_frame_duration INT DEFAULT 0
  20. SQL);
  21. }
  22. public function down(Schema $schema): void
  23. {
  24. // this down() migration is auto-generated, please modify it to your needs
  25. $this->addSql(<<<'SQL'
  26. ALTER TABLE tc_tcard DROP is_delayed_time_frame, DROP is_missed_time_frame, DROP missed_time_frame_duration
  27. SQL);
  28. }
  29. }