Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Version20211008103800.php 4.6KB

vor 3 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 Version20211008103800 extends AbstractMigration
  10. {
  11. public function getDescription(): string
  12. {
  13. return '';
  14. }
  15. public function up(Schema $schema): void
  16. {
  17. // this up() migration is auto-generated, please modify it to your needs
  18. $this->addSql('ALTER TABLE dream ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL');
  19. $this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004F2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
  20. $this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004F6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
  21. $this->addSql('CREATE INDEX IDX_6A5F004F2395FCED ON dream (thematic_id)');
  22. $this->addSql('CREATE INDEX IDX_6A5F004F6C159F58 ON dream (subthematic_id)');
  23. $this->addSql('ALTER TABLE project_boost ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL');
  24. $this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF62395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
  25. $this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF66C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
  26. $this->addSql('CREATE INDEX IDX_45312EF62395FCED ON project_boost (thematic_id)');
  27. $this->addSql('CREATE INDEX IDX_45312EF66C159F58 ON project_boost (subthematic_id)');
  28. $this->addSql('ALTER TABLE project_inspiring ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL');
  29. $this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2E2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
  30. $this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2E6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
  31. $this->addSql('CREATE INDEX IDX_2E8C2C2E2395FCED ON project_inspiring (thematic_id)');
  32. $this->addSql('CREATE INDEX IDX_2E8C2C2E6C159F58 ON project_inspiring (subthematic_id)');
  33. $this->addSql('ALTER TABLE revolt ADD thematic_id INT DEFAULT NULL, ADD subthematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL');
  34. $this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_350517872395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
  35. $this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_350517876C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)');
  36. $this->addSql('CREATE INDEX IDX_350517872395FCED ON revolt (thematic_id)');
  37. $this->addSql('CREATE INDEX IDX_350517876C159F58 ON revolt (subthematic_id)');
  38. }
  39. public function down(Schema $schema): void
  40. {
  41. // this down() migration is auto-generated, please modify it to your needs
  42. $this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004F2395FCED');
  43. $this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004F6C159F58');
  44. $this->addSql('DROP INDEX IDX_6A5F004F2395FCED ON dream');
  45. $this->addSql('DROP INDEX IDX_6A5F004F6C159F58 ON dream');
  46. $this->addSql('ALTER TABLE dream DROP thematic_id, DROP subthematic_id, DROP description');
  47. $this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF62395FCED');
  48. $this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF66C159F58');
  49. $this->addSql('DROP INDEX IDX_45312EF62395FCED ON project_boost');
  50. $this->addSql('DROP INDEX IDX_45312EF66C159F58 ON project_boost');
  51. $this->addSql('ALTER TABLE project_boost DROP thematic_id, DROP subthematic_id, DROP description');
  52. $this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2E2395FCED');
  53. $this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2E6C159F58');
  54. $this->addSql('DROP INDEX IDX_2E8C2C2E2395FCED ON project_inspiring');
  55. $this->addSql('DROP INDEX IDX_2E8C2C2E6C159F58 ON project_inspiring');
  56. $this->addSql('ALTER TABLE project_inspiring DROP thematic_id, DROP subthematic_id, DROP description');
  57. $this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_350517872395FCED');
  58. $this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_350517876C159F58');
  59. $this->addSql('DROP INDEX IDX_350517872395FCED ON revolt');
  60. $this->addSql('DROP INDEX IDX_350517876C159F58 ON revolt');
  61. $this->addSql('ALTER TABLE revolt DROP thematic_id, DROP subthematic_id, DROP description');
  62. }
  63. }