Version20210706193204.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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 Version20210706193204 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 commentaire CHANGE note note INT DEFAULT NULL, CHANGE date_submitted date_submitted DATETIME DEFAULT NULL');
  19. $this->addSql('ALTER TABLE film ADD information LONGTEXT DEFAULT NULL, CHANGE media_video_id media_video_id INT DEFAULT NULL, CHANGE authered_id authered_id INT DEFAULT NULL, CHANGE annee annee DATE DEFAULT NULL, CHANGE date_submited date_submited DATETIME DEFAULT NULL, CHANGE lien lien VARCHAR(191) DEFAULT NULL, CHANGE note note DOUBLE PRECISION DEFAULT NULL, CHANGE nb_coms nb_coms INT DEFAULT NULL');
  20. $this->addSql('ALTER TABLE user CHANGE prenom prenom VARCHAR(191) DEFAULT NULL, CHANGE nom nom VARCHAR(191) DEFAULT NULL, CHANGE salt salt VARCHAR(191) DEFAULT NULL');
  21. }
  22. public function down(Schema $schema): void
  23. {
  24. // this down() migration is auto-generated, please modify it to your needs
  25. $this->addSql('ALTER TABLE commentaire CHANGE note note INT DEFAULT NULL, CHANGE date_submitted date_submitted DATETIME DEFAULT \'NULL\'');
  26. $this->addSql('ALTER TABLE film DROP information, CHANGE media_video_id media_video_id INT DEFAULT NULL, CHANGE authered_id authered_id INT DEFAULT NULL, CHANGE annee annee DATE DEFAULT \'NULL\', CHANGE date_submited date_submited DATETIME DEFAULT \'NULL\', CHANGE lien lien VARCHAR(191) CHARACTER SET utf8mb4 DEFAULT \'NULL\' COLLATE `utf8mb4_unicode_ci`, CHANGE note note DOUBLE PRECISION DEFAULT \'NULL\', CHANGE nb_coms nb_coms INT DEFAULT NULL');
  27. $this->addSql('ALTER TABLE user CHANGE prenom prenom VARCHAR(191) CHARACTER SET utf8mb4 DEFAULT \'NULL\' COLLATE `utf8mb4_unicode_ci`, CHANGE nom nom VARCHAR(191) CHARACTER SET utf8mb4 DEFAULT \'NULL\' COLLATE `utf8mb4_unicode_ci`, CHANGE salt salt VARCHAR(191) CHARACTER SET utf8mb4 DEFAULT \'NULL\' COLLATE `utf8mb4_unicode_ci`');
  28. }
  29. }