migrations/Version20211023155842.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 Version20211023155842 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     /**
  16.      * First up with main api
  17.      * @param Schema $schema
  18.      */
  19.     public function up(Schema $schema): void
  20.     {
  21.         $file __DIR__ "/sql/base_public.sql";
  22.         $this->connection->exec(file_get_contents($file));
  23.         $file __DIR__ "/sql/base_building.sql";
  24.         $this->connection->exec(file_get_contents($file));
  25.         $file __DIR__ "/sql/base_security.sql";
  26.         $this->connection->exec(file_get_contents($file));
  27.         $file __DIR__ "/sql/base_intervention.sql";
  28.         $this->connection->exec(file_get_contents($file));
  29.         $file __DIR__ "/sql/base_geolocation.sql";
  30.         $this->connection->exec(file_get_contents($file));
  31.         $file __DIR__ "/sql/base_notification.sql";
  32.         $this->connection->exec(file_get_contents($file));
  33.         $file __DIR__ "/sql/base_contract.sql";
  34.         $this->connection->exec(file_get_contents($file));
  35.         $file __DIR__ "/sql/base_log.sql";
  36.         $this->connection->exec(file_get_contents($file));
  37.     }
  38.     public function down(Schema $schema): void
  39.     {
  40.     }
  41. }