Skip to content

Commit

Permalink
altered migrations, added port in docker compose for lunchroulette go…
Browse files Browse the repository at this point in the history
… project
  • Loading branch information
IrisOlfermann committed Jan 14, 2025
1 parent 47000a0 commit c09c68f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 34 deletions.
5 changes: 4 additions & 1 deletion .ddev/docker-compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ services:
ports:
- "1337:1337"
- "2122:22"
# - "127.0.0.1:5173:5173"
# - "127.0.0.1:5173:5173"
db:
ports:
- "5000:3306"
31 changes: 0 additions & 31 deletions migrations/Version20241203140635.php

This file was deleted.

2 changes: 0 additions & 2 deletions migrations/Version20241203141233.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit c09c68f

Please sign in to comment.