From c09c68f5b7aa14761634964e45d5392205ffab84 Mon Sep 17 00:00:00 2001 From: Iris Olfermann Date: Tue, 14 Jan 2025 10:16:03 +0100 Subject: [PATCH] altered migrations, added port in docker compose for lunchroulette go project --- .ddev/docker-compose.override.yaml | 5 ++++- migrations/Version20241203140635.php | 31 ---------------------------- migrations/Version20241203141233.php | 2 -- 3 files changed, 4 insertions(+), 34 deletions(-) delete mode 100644 migrations/Version20241203140635.php diff --git a/.ddev/docker-compose.override.yaml b/.ddev/docker-compose.override.yaml index 5c8d635e3..25b848545 100644 --- a/.ddev/docker-compose.override.yaml +++ b/.ddev/docker-compose.override.yaml @@ -3,4 +3,7 @@ services: ports: - "1337:1337" - "2122:22" - # - "127.0.0.1:5173:5173" \ No newline at end of file + # - "127.0.0.1:5173:5173" + db: + ports: + - "5000:3306" \ No newline at end of file diff --git a/migrations/Version20241203140635.php b/migrations/Version20241203140635.php deleted file mode 100644 index ad4a17fae..000000000 --- a/migrations/Version20241203140635.php +++ /dev/null @@ -1,31 +0,0 @@ -addSql('ALTER TABLE session RENAME INDEX session_sess_lifetime_idx TO sess_lifetime_idx'); - } - - public function down(Schema $schema): void - { - // this down() migration is auto-generated, please modify it to your needs - $this->addSql('ALTER TABLE session RENAME INDEX sess_lifetime_idx TO session_sess_lifetime_idx'); - } -} diff --git a/migrations/Version20241203141233.php b/migrations/Version20241203141233.php index f62b23e34..05e77d440 100644 --- a/migrations/Version20241203141233.php +++ b/migrations/Version20241203141233.php @@ -25,13 +25,11 @@ public function up(Schema $schema): void $this->addSql('ALTER TABLE participant CHANGE event event_participation INT DEFAULT NULL'); $this->addSql('ALTER TABLE participant ADD CONSTRAINT FK_D79F6B118F0C52E3 FOREIGN KEY (event_participation) REFERENCES event_participation (id)'); $this->addSql('CREATE INDEX IDX_D79F6B118F0C52E3 ON participant (event_participation)'); - $this->addSql('ALTER TABLE session RENAME INDEX session_sess_lifetime_idx TO sess_lifetime_idx'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs - $this->addSql('ALTER TABLE session RENAME INDEX sess_lifetime_idx TO session_sess_lifetime_idx'); $this->addSql('ALTER TABLE participant DROP FOREIGN KEY FK_D79F6B118F0C52E3'); $this->addSql('DROP INDEX IDX_D79F6B118F0C52E3 ON participant'); $this->addSql('ALTER TABLE participant CHANGE event_participation event INT DEFAULT NULL');