migrations/Version20260210000000.php line 1

Open in your IDE?
  1. <?php
  2. /**
  3.  *
  4.  * User: ilijastojkovic
  5.  * Date: 10. 2. 2026.
  6.  * Time: 11:18
  7.  */
  8. declare(strict_types=1);
  9. namespace DoctrineMigrations;
  10. use Doctrine\DBAL\Schema\Schema;
  11. use Doctrine\Migrations\AbstractMigration;
  12. /**
  13.  * Auto-generated Migration: Please modify to your needs!
  14.  */
  15. final class Version20260210000000 extends AbstractMigration
  16. {
  17.     public function getDescription(): string
  18.     {
  19.         return 'Add paid_bill field to fos_user table';
  20.     }
  21.     public function up(Schema $schema): void
  22.     {
  23.         // this up() migration is auto-generated, please modify it to your needs
  24.         $this->addSql('ALTER TABLE fos_user ADD paid_bill INT DEFAULT 1 NOT NULL, CHANGE enabled enabled TINYINT(1) NOT NULL');
  25.     }
  26.     public function down(Schema $schema): void
  27.     {
  28.         // this down() migration is auto-generated, please modify it to your needs
  29.         $this->addSql('ALTER TABLE fos_user DROP paid_bill, CHANGE enabled enabled TINYINT(1) NOT NULL');
  30.     }
  31. }