migrations/Version20240622102952.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 Version20240622102952 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql('INSERT INTO service (id, name, "position", content, icon, url, is_active) VALUES (\'1d6094d8-4088-4a35-816f-f914fa7913c4\', \'Usługa 1\', 1, \'Tekst\', \'ikona-1\', \'www.usluga1.pl\', true);');
  18.         $this->addSql('INSERT INTO service (id, name, "position", content, icon, url, is_active) VALUES (\'28bad3f6-de13-411d-befd-da03b61572e9\', \'Usługa 2\', 2, \'Tekst\', \'ikona-2\', \'www.usluga2.pl\', false);');
  19.         $this->addSql('INSERT INTO service (id, name, "position", content, icon, url, is_active) VALUES (\'485c703f-d81f-4ebf-8bad-d5bdcd0abbcc\', \'Usługa 3\', 3, \'Tekst\', \'ikona-3\', \'www.usluga3.pl\', true);');
  20.         $this->addSql('INSERT INTO subpages (id, title_subpage, url, created_at, content, is_active) VALUES (\'89b85498-74f1-4fb1-8f07-efbf5aea2da1\', \'subpage1\', \'http://www.supgage1.pl\', \'2024-06-21 17:51:31\', \'test\', true);');
  21.         $this->addSql('INSERT INTO subpages (id, title_subpage, url, created_at, content, is_active) VALUES (\'92714f18-f335-4fbc-88dc-570424352152\', \'subpage2\', \'http://www.supgage2.pl\', \'2024-06-21 17:51:34\', \'test2\', false);');
  22.         $this->addSql('INSERT INTO subpages (id, title_subpage, url, created_at, content, is_active) VALUES (\'485c703f-d81f-4ebf-8bad-d5bdcd0abbcc\', \'subpage3\', \'http://www.supgage3.pl\', \'2024-06-21 17:51:36\', \'test3\', true);');
  23.     }
  24.     public function down(Schema $schema): void
  25.     {
  26.         // this down() migration is auto-generated, please modify it to your needs
  27.     }
  28. }