migrations/Version20240220071615.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 Version20240220071615 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql('CREATE TABLE `schedule_notifications` (
  18.             `id` INT NOT NULL AUTO_INCREMENT,
  19.             `type` INT NULL DEFAULT NULL COMMENT "1 = Post Liked, 2 = User Followed, 3 = Comment / Reply on Post",
  20.             `reference_id` INT NULL DEFAULT NULL COMMENT "This will be post id for now.",
  21.             `owner_id` INT NULL DEFAULT NULL,
  22.             `from_user_id` INT NULL DEFAULT NULL,
  23.             `flag_sent` INT NOT NULL DEFAULT "0" COMMENT "0 = Not Sent (default 0), 1 = Sent",
  24.             `created_on` DATETIME NULL,
  25.             PRIMARY KEY (`id`)
  26.         ) ENGINE = InnoDB;
  27.         ');  
  28.     }
  29.     public function down(Schema $schema): void
  30.     {
  31.         // this down() migration is auto-generated, please modify it to your needs
  32.     }
  33. }