migrations/Version20220530201254.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 Version20220530201254 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         /**
  18.          * Initialize createdAt and UpdatedAt fields
  19.          */
  20.         $this->addSql('
  21.             UPDATE broker SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  22.             UPDATE broker_user SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  23.             UPDATE demand SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  24.             UPDATE demand_upload SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  25.             UPDATE endorsement SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  26.             UPDATE insured SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  27.             UPDATE insured_insurer SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  28.             UPDATE insured_insurer_global SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  29.             UPDATE insured_insurer_global_ccg SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  30.             UPDATE insured_upload SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  31.             UPDATE insured_user SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  32.             UPDATE insurer SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  33.             UPDATE insurer_modality SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  34.             UPDATE insurer_submodality SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  35.             UPDATE insurer_user SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  36.             UPDATE media SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  37.             UPDATE modality SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  38.             UPDATE policy SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  39.             UPDATE policy_upload SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  40.             UPDATE submodality SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  41.             UPDATE user SET created_at = "2022-05-30 00:00:00", updated_at = "2022-05-30 00:00:00";
  42.         ');
  43.     }
  44.     public function down(Schema $schema): void
  45.     {
  46.     }
  47. }