migrations/Version20220610134404.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 Version20220610134404 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('CREATE TABLE annotationobject (id INT AUTO_INCREMENT NOT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT NOT NULL, filter TINYINT(1) NOT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_C843B199896DBBDE (updated_by_id), INDEX IDX_C843B199B03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  19.         $this->addSql('CREATE TABLE annotationobject_entity_option_category (annotationobject_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_597321988688C954 (annotationobject_id), INDEX IDX_59732198D1BAA843 (entity_option_id), PRIMARY KEY(annotationobject_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  20.         $this->addSql('CREATE TABLE annotationobjects_images (annotationobject_id INT NOT NULL, image_id INT NOT NULL, INDEX IDX_25D9FF9B8688C954 (annotationobject_id), INDEX IDX_25D9FF9B3DA5256D (image_id), PRIMARY KEY(annotationobject_id, image_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  21.         $this->addSql('CREATE TABLE annotationobject_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_F335F3AC2C2AC5D3 (translatable_id), UNIQUE INDEX annotationobject_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  22.         $this->addSql('CREATE TABLE entity_option (id INT AUTO_INCREMENT NOT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, entity VARCHAR(255) NOT NULL, property VARCHAR(255) NOT NULL, auto TINYINT(1) NOT NULL, value VARCHAR(255) NOT NULL, entityproperty VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_9E4BBE3D896DBBDE (updated_by_id), INDEX IDX_9E4BBE3DB03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  23.         $this->addSql('CREATE TABLE entity_option_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, label VARCHAR(255) NOT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_9A2F0052C2AC5D3 (translatable_id), UNIQUE INDEX entity_option_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  24.         $this->addSql('CREATE TABLE image (id INT AUTO_INCREMENT NOT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, label VARCHAR(400) NOT NULL, doi VARCHAR(400) NOT NULL, caption LONGTEXT NOT NULL, image_presentday_caption LONGTEXT DEFAULT NULL, recording_timecode VARCHAR(255) DEFAULT NULL, recording_date DATE NOT NULL, recording_date_month INT NOT NULL, recording_date_year INT NOT NULL, recording_date_time TIME DEFAULT NULL, recording_location_latitude DOUBLE PRECISION NOT NULL, recording_location_longitude DOUBLE PRECISION NOT NULL, notes LONGTEXT DEFAULT NULL, series_position INT NOT NULL, owner_title VARCHAR(255) DEFAULT NULL, owner_signature LONGTEXT DEFAULT NULL, content_hasthirdparty_description TINYINT(1) NOT NULL, content_hasthirdparty_identification TINYINT(1) NOT NULL, content_notes LONGTEXT DEFAULT NULL, rights_hasusagerights TINYINT(1) NOT NULL, rights_notesusagerights LONGTEXT DEFAULT NULL, rights_hasbeenpublished TINYINT(1) NOT NULL, rights_hasbeenpublished_location VARCHAR(400) DEFAULT NULL, rights_hasbeenpublished_online TINYINT(1) NOT NULL, rights_isnew TINYINT(1) NOT NULL, rights_acknowledgement TEXT DEFAULT NULL, image VARCHAR(700) NOT NULL, image_back VARCHAR(700) DEFAULT NULL, image_context VARCHAR(700) DEFAULT NULL, image_presentday VARCHAR(700) DEFAULT NULL, viaproject LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json_document)\', viaprojectraw LONGTEXT DEFAULT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_C53D045F896DBBDE (updated_by_id), INDEX IDX_C53D045FB03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  25.         $this->addSql('CREATE TABLE image_series (image_id INT NOT NULL, series_id INT NOT NULL, INDEX IDX_950D5FE53DA5256D (image_id), INDEX IDX_950D5FE55278319C (series_id), PRIMARY KEY(image_id, series_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  26.         $this->addSql('CREATE TABLE image_owner (image_id INT NOT NULL, owner_id INT NOT NULL, INDEX IDX_D82562D53DA5256D (image_id), INDEX IDX_D82562D57E3C61F9 (owner_id), PRIMARY KEY(image_id, owner_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  27.         $this->addSql('CREATE TABLE image_entity_option_format (image_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_4E8C437C3DA5256D (image_id), INDEX IDX_4E8C437CD1BAA843 (entity_option_id), PRIMARY KEY(image_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  28.         $this->addSql('CREATE TABLE image_entity_option_color (image_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_EF7A7AE63DA5256D (image_id), INDEX IDX_EF7A7AE6D1BAA843 (entity_option_id), PRIMARY KEY(image_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  29.         $this->addSql('CREATE TABLE image_entity_option_transmission_type (image_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_7E64DF3C3DA5256D (image_id), INDEX IDX_7E64DF3CD1BAA843 (entity_option_id), PRIMARY KEY(image_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  30.         $this->addSql('CREATE TABLE image_entity_option_content_location (image_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_DB662AA13DA5256D (image_id), INDEX IDX_DB662AA1D1BAA843 (entity_option_id), PRIMARY KEY(image_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  31.         $this->addSql('CREATE TABLE image_entity_option_content_location_creator (image_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_E5EC28D13DA5256D (image_id), INDEX IDX_E5EC28D1D1BAA843 (entity_option_id), PRIMARY KEY(image_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  32.         $this->addSql('CREATE TABLE image_entity_option_content_storyline (image_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_95597DA33DA5256D (image_id), INDEX IDX_95597DA3D1BAA843 (entity_option_id), PRIMARY KEY(image_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  33.         $this->addSql('CREATE TABLE image_entity_option_content_person_count (image_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_E7FDB3E23DA5256D (image_id), INDEX IDX_E7FDB3E2D1BAA843 (entity_option_id), PRIMARY KEY(image_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  34.         $this->addSql('CREATE TABLE image_entity_option_rights_typeusagerights (image_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_534C66623DA5256D (image_id), INDEX IDX_534C6662D1BAA843 (entity_option_id), PRIMARY KEY(image_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  35.         $this->addSql('CREATE TABLE image_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_7BBF0EE12C2AC5D3 (translatable_id), UNIQUE INDEX image_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  36.         $this->addSql('CREATE TABLE incident (id INT AUTO_INCREMENT NOT NULL, location_id INT NOT NULL, country_id INT NOT NULL, parent_incident_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, label VARCHAR(400) NOT NULL, description LONGTEXT DEFAULT NULL, date_start DATE NOT NULL, date_end DATE DEFAULT NULL, date_month INT NOT NULL, date_year INT NOT NULL, notes LONGTEXT DEFAULT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_3D03A11A64D218E (location_id), INDEX IDX_3D03A11AF92F3E70 (country_id), INDEX IDX_3D03A11A32C92DC9 (parent_incident_id), INDEX IDX_3D03A11A896DBBDE (updated_by_id), INDEX IDX_3D03A11AB03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  37.         $this->addSql('CREATE TABLE incidents_entity_option_groups_persecuted (incident_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_38B34EEF59E53FB9 (incident_id), INDEX IDX_38B34EEFD1BAA843 (entity_option_id), PRIMARY KEY(incident_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  38.         $this->addSql('CREATE TABLE incident_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_8410B022C2AC5D3 (translatable_id), UNIQUE INDEX incident_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  39.         $this->addSql('CREATE TABLE owner (id INT AUTO_INCREMENT NOT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, name VARCHAR(700) NOT NULL, address LONGTEXT DEFAULT NULL, contact VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, phone VARCHAR(255) DEFAULT NULL, is_rights_owner TINYINT(1) NOT NULL, notes LONGTEXT DEFAULT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_CF60E67C896DBBDE (updated_by_id), INDEX IDX_CF60E67CB03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  40.         $this->addSql('CREATE TABLE owner_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_B28D9AE92C2AC5D3 (translatable_id), UNIQUE INDEX owner_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  41.         $this->addSql('CREATE TABLE person (id INT AUTO_INCREMENT NOT NULL, placeofbirth_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, firstname VARCHAR(255) NOT NULL, lastname VARCHAR(255) NOT NULL, birthname VARCHAR(255) DEFAULT NULL, birthday DATE DEFAULT NULL, notes LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, INDEX IDX_34DCD17674D2603E (placeofbirth_id), INDEX IDX_34DCD176896DBBDE (updated_by_id), INDEX IDX_34DCD176B03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  42.         $this->addSql('CREATE TABLE person_entity_option_roles (person_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_D8EF7517217BBB47 (person_id), INDEX IDX_D8EF7517D1BAA843 (entity_option_id), PRIMARY KEY(person_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  43.         $this->addSql('CREATE TABLE person_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, placeofbirthov VARCHAR(255) DEFAULT NULL, biography LONGTEXT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_D9821AE72C2AC5D3 (translatable_id), UNIQUE INDEX person_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  44.         $this->addSql('CREATE TABLE photographer (id INT AUTO_INCREMENT NOT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, firstname VARCHAR(255) NOT NULL, lastname VARCHAR(255) NOT NULL, birthday DATE DEFAULT NULL, notes LONGTEXT DEFAULT NULL, literature LONGTEXT DEFAULT NULL, sources LONGTEXT DEFAULT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_16337A7F896DBBDE (updated_by_id), INDEX IDX_16337A7FB03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  45.         $this->addSql('CREATE TABLE photographer_entity_option_profession (photographer_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_34D7D98153EC1A21 (photographer_id), INDEX IDX_34D7D981D1BAA843 (entity_option_id), PRIMARY KEY(photographer_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  46.         $this->addSql('CREATE TABLE photographer_entity_option_role (photographer_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_A2F9FCD253EC1A21 (photographer_id), INDEX IDX_A2F9FCD2D1BAA843 (entity_option_id), PRIMARY KEY(photographer_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  47.         $this->addSql('CREATE TABLE photographer_entity_option_validity (photographer_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_6C2CC1BD53EC1A21 (photographer_id), INDEX IDX_6C2CC1BDD1BAA843 (entity_option_id), PRIMARY KEY(photographer_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  48.         $this->addSql('CREATE TABLE photographer_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_FC99E1A32C2AC5D3 (translatable_id), UNIQUE INDEX photographer_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  49.         $this->addSql('CREATE TABLE place (id INT AUTO_INCREMENT NOT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, name VARCHAR(400) NOT NULL, latitude DOUBLE PRECISION DEFAULT NULL, longitude DOUBLE PRECISION DEFAULT NULL, geonameid VARCHAR(255) DEFAULT NULL, country VARCHAR(2) DEFAULT NULL, countrygeonameid VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, INDEX IDX_741D53CD896DBBDE (updated_by_id), INDEX IDX_741D53CDB03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  50.         $this->addSql('CREATE TABLE place_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, label VARCHAR(400) DEFAULT NULL, labelhistorical VARCHAR(400) DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_BA9C0DCB2C2AC5D3 (translatable_id), UNIQUE INDEX place_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  51.         $this->addSql('CREATE TABLE series (id INT AUTO_INCREMENT NOT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, label VARCHAR(400) NOT NULL, owner_title VARCHAR(255) DEFAULT NULL, owner_signature LONGTEXT DEFAULT NULL, description LONGTEXT NOT NULL, map_image VARCHAR(700) DEFAULT NULL, provenance LONGTEXT DEFAULT NULL, notes LONGTEXT DEFAULT NULL, literature LONGTEXT DEFAULT NULL, sources LONGTEXT DEFAULT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_3A10012D896DBBDE (updated_by_id), INDEX IDX_3A10012DB03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  52.         $this->addSql('CREATE TABLE series_photographer (series_id INT NOT NULL, photographer_id INT NOT NULL, INDEX IDX_F2B8A9085278319C (series_id), INDEX IDX_F2B8A90853EC1A21 (photographer_id), PRIMARY KEY(series_id, photographer_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  53.         $this->addSql('CREATE TABLE series_incident (series_id INT NOT NULL, incident_id INT NOT NULL, INDEX IDX_6EE839155278319C (series_id), INDEX IDX_6EE8391559E53FB9 (incident_id), PRIMARY KEY(series_id, incident_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  54.         $this->addSql('CREATE TABLE series_entity_option_media_type (series_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_868E3ADA5278319C (series_id), INDEX IDX_868E3ADAD1BAA843 (entity_option_id), PRIMARY KEY(series_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  55.         $this->addSql('CREATE TABLE series_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_317539E32C2AC5D3 (translatable_id), UNIQUE INDEX series_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  56.         $this->addSql('CREATE TABLE source (id INT AUTO_INCREMENT NOT NULL, updated_by_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, title VARCHAR(400) NOT NULL, citation LONGTEXT DEFAULT NULL, description LONGTEXT DEFAULT NULL, link VARCHAR(400) DEFAULT NULL, file VARCHAR(700) DEFAULT NULL, type VARCHAR(255) DEFAULT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_5F8A7F73896DBBDE (updated_by_id), INDEX IDX_5F8A7F73B03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  57.         $this->addSql('CREATE TABLE sources_entity_option_categories (source_id INT NOT NULL, entity_option_id INT NOT NULL, INDEX IDX_C4804B79953C1C61 (source_id), INDEX IDX_C4804B79D1BAA843 (entity_option_id), PRIMARY KEY(source_id, entity_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  58.         $this->addSql('CREATE TABLE source_incident (source_id INT NOT NULL, incident_id INT NOT NULL, INDEX IDX_7E2397C8953C1C61 (source_id), INDEX IDX_7E2397C859E53FB9 (incident_id), PRIMARY KEY(source_id, incident_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  59.         $this->addSql('CREATE TABLE source_person (source_id INT NOT NULL, person_id INT NOT NULL, INDEX IDX_8223F490953C1C61 (source_id), INDEX IDX_8223F490217BBB47 (person_id), PRIMARY KEY(source_id, person_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  60.         $this->addSql('CREATE TABLE source_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_881615CF2C2AC5D3 (translatable_id), UNIQUE INDEX source_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  61.         $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, avatar VARCHAR(255) DEFAULT NULL, lastlogin DATETIME NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  62.         $this->addSql('ALTER TABLE annotationobject ADD CONSTRAINT FK_C843B199896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  63.         $this->addSql('ALTER TABLE annotationobject ADD CONSTRAINT FK_C843B199B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  64.         $this->addSql('ALTER TABLE annotationobject_entity_option_category ADD CONSTRAINT FK_597321988688C954 FOREIGN KEY (annotationobject_id) REFERENCES annotationobject (id) ON DELETE CASCADE');
  65.         $this->addSql('ALTER TABLE annotationobject_entity_option_category ADD CONSTRAINT FK_59732198D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  66.         $this->addSql('ALTER TABLE annotationobjects_images ADD CONSTRAINT FK_25D9FF9B8688C954 FOREIGN KEY (annotationobject_id) REFERENCES annotationobject (id) ON DELETE CASCADE');
  67.         $this->addSql('ALTER TABLE annotationobjects_images ADD CONSTRAINT FK_25D9FF9B3DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  68.         $this->addSql('ALTER TABLE annotationobject_translation ADD CONSTRAINT FK_F335F3AC2C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES annotationobject (id) ON DELETE CASCADE');
  69.         $this->addSql('ALTER TABLE entity_option ADD CONSTRAINT FK_9E4BBE3D896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  70.         $this->addSql('ALTER TABLE entity_option ADD CONSTRAINT FK_9E4BBE3DB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  71.         $this->addSql('ALTER TABLE entity_option_translation ADD CONSTRAINT FK_9A2F0052C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  72.         $this->addSql('ALTER TABLE image ADD CONSTRAINT FK_C53D045F896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  73.         $this->addSql('ALTER TABLE image ADD CONSTRAINT FK_C53D045FB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  74.         $this->addSql('ALTER TABLE image_series ADD CONSTRAINT FK_950D5FE53DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  75.         $this->addSql('ALTER TABLE image_series ADD CONSTRAINT FK_950D5FE55278319C FOREIGN KEY (series_id) REFERENCES series (id) ON DELETE CASCADE');
  76.         $this->addSql('ALTER TABLE image_owner ADD CONSTRAINT FK_D82562D53DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  77.         $this->addSql('ALTER TABLE image_owner ADD CONSTRAINT FK_D82562D57E3C61F9 FOREIGN KEY (owner_id) REFERENCES owner (id) ON DELETE CASCADE');
  78.         $this->addSql('ALTER TABLE image_entity_option_format ADD CONSTRAINT FK_4E8C437C3DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  79.         $this->addSql('ALTER TABLE image_entity_option_format ADD CONSTRAINT FK_4E8C437CD1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  80.         $this->addSql('ALTER TABLE image_entity_option_color ADD CONSTRAINT FK_EF7A7AE63DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  81.         $this->addSql('ALTER TABLE image_entity_option_color ADD CONSTRAINT FK_EF7A7AE6D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  82.         $this->addSql('ALTER TABLE image_entity_option_transmission_type ADD CONSTRAINT FK_7E64DF3C3DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  83.         $this->addSql('ALTER TABLE image_entity_option_transmission_type ADD CONSTRAINT FK_7E64DF3CD1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  84.         $this->addSql('ALTER TABLE image_entity_option_content_location ADD CONSTRAINT FK_DB662AA13DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  85.         $this->addSql('ALTER TABLE image_entity_option_content_location ADD CONSTRAINT FK_DB662AA1D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  86.         $this->addSql('ALTER TABLE image_entity_option_content_location_creator ADD CONSTRAINT FK_E5EC28D13DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  87.         $this->addSql('ALTER TABLE image_entity_option_content_location_creator ADD CONSTRAINT FK_E5EC28D1D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  88.         $this->addSql('ALTER TABLE image_entity_option_content_storyline ADD CONSTRAINT FK_95597DA33DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  89.         $this->addSql('ALTER TABLE image_entity_option_content_storyline ADD CONSTRAINT FK_95597DA3D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  90.         $this->addSql('ALTER TABLE image_entity_option_content_person_count ADD CONSTRAINT FK_E7FDB3E23DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  91.         $this->addSql('ALTER TABLE image_entity_option_content_person_count ADD CONSTRAINT FK_E7FDB3E2D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  92.         $this->addSql('ALTER TABLE image_entity_option_rights_typeusagerights ADD CONSTRAINT FK_534C66623DA5256D FOREIGN KEY (image_id) REFERENCES image (id) ON DELETE CASCADE');
  93.         $this->addSql('ALTER TABLE image_entity_option_rights_typeusagerights ADD CONSTRAINT FK_534C6662D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  94.         $this->addSql('ALTER TABLE image_translation ADD CONSTRAINT FK_7BBF0EE12C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES image (id) ON DELETE CASCADE');
  95.         $this->addSql('ALTER TABLE incident ADD CONSTRAINT FK_3D03A11A64D218E FOREIGN KEY (location_id) REFERENCES place (id)');
  96.         $this->addSql('ALTER TABLE incident ADD CONSTRAINT FK_3D03A11AF92F3E70 FOREIGN KEY (country_id) REFERENCES entity_option (id)');
  97.         $this->addSql('ALTER TABLE incident ADD CONSTRAINT FK_3D03A11A32C92DC9 FOREIGN KEY (parent_incident_id) REFERENCES incident (id)');
  98.         $this->addSql('ALTER TABLE incident ADD CONSTRAINT FK_3D03A11A896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  99.         $this->addSql('ALTER TABLE incident ADD CONSTRAINT FK_3D03A11AB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  100.         $this->addSql('ALTER TABLE incidents_entity_option_groups_persecuted ADD CONSTRAINT FK_38B34EEF59E53FB9 FOREIGN KEY (incident_id) REFERENCES incident (id) ON DELETE CASCADE');
  101.         $this->addSql('ALTER TABLE incidents_entity_option_groups_persecuted ADD CONSTRAINT FK_38B34EEFD1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  102.         $this->addSql('ALTER TABLE incident_translation ADD CONSTRAINT FK_8410B022C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES incident (id) ON DELETE CASCADE');
  103.         $this->addSql('ALTER TABLE owner ADD CONSTRAINT FK_CF60E67C896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  104.         $this->addSql('ALTER TABLE owner ADD CONSTRAINT FK_CF60E67CB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  105.         $this->addSql('ALTER TABLE owner_translation ADD CONSTRAINT FK_B28D9AE92C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES owner (id) ON DELETE CASCADE');
  106.         $this->addSql('ALTER TABLE person ADD CONSTRAINT FK_34DCD17674D2603E FOREIGN KEY (placeofbirth_id) REFERENCES place (id)');
  107.         $this->addSql('ALTER TABLE person ADD CONSTRAINT FK_34DCD176896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  108.         $this->addSql('ALTER TABLE person ADD CONSTRAINT FK_34DCD176B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  109.         $this->addSql('ALTER TABLE person_entity_option_roles ADD CONSTRAINT FK_D8EF7517217BBB47 FOREIGN KEY (person_id) REFERENCES person (id) ON DELETE CASCADE');
  110.         $this->addSql('ALTER TABLE person_entity_option_roles ADD CONSTRAINT FK_D8EF7517D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  111.         $this->addSql('ALTER TABLE person_translation ADD CONSTRAINT FK_D9821AE72C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES person (id) ON DELETE CASCADE');
  112.         $this->addSql('ALTER TABLE photographer ADD CONSTRAINT FK_16337A7F896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  113.         $this->addSql('ALTER TABLE photographer ADD CONSTRAINT FK_16337A7FB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  114.         $this->addSql('ALTER TABLE photographer_entity_option_profession ADD CONSTRAINT FK_34D7D98153EC1A21 FOREIGN KEY (photographer_id) REFERENCES photographer (id) ON DELETE CASCADE');
  115.         $this->addSql('ALTER TABLE photographer_entity_option_profession ADD CONSTRAINT FK_34D7D981D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  116.         $this->addSql('ALTER TABLE photographer_entity_option_role ADD CONSTRAINT FK_A2F9FCD253EC1A21 FOREIGN KEY (photographer_id) REFERENCES photographer (id) ON DELETE CASCADE');
  117.         $this->addSql('ALTER TABLE photographer_entity_option_role ADD CONSTRAINT FK_A2F9FCD2D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  118.         $this->addSql('ALTER TABLE photographer_entity_option_validity ADD CONSTRAINT FK_6C2CC1BD53EC1A21 FOREIGN KEY (photographer_id) REFERENCES photographer (id) ON DELETE CASCADE');
  119.         $this->addSql('ALTER TABLE photographer_entity_option_validity ADD CONSTRAINT FK_6C2CC1BDD1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  120.         $this->addSql('ALTER TABLE photographer_translation ADD CONSTRAINT FK_FC99E1A32C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES photographer (id) ON DELETE CASCADE');
  121.         $this->addSql('ALTER TABLE place ADD CONSTRAINT FK_741D53CD896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  122.         $this->addSql('ALTER TABLE place ADD CONSTRAINT FK_741D53CDB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  123.         $this->addSql('ALTER TABLE place_translation ADD CONSTRAINT FK_BA9C0DCB2C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES place (id) ON DELETE CASCADE');
  124.         $this->addSql('ALTER TABLE series ADD CONSTRAINT FK_3A10012D896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  125.         $this->addSql('ALTER TABLE series ADD CONSTRAINT FK_3A10012DB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  126.         $this->addSql('ALTER TABLE series_photographer ADD CONSTRAINT FK_F2B8A9085278319C FOREIGN KEY (series_id) REFERENCES series (id) ON DELETE CASCADE');
  127.         $this->addSql('ALTER TABLE series_photographer ADD CONSTRAINT FK_F2B8A90853EC1A21 FOREIGN KEY (photographer_id) REFERENCES photographer (id) ON DELETE CASCADE');
  128.         $this->addSql('ALTER TABLE series_incident ADD CONSTRAINT FK_6EE839155278319C FOREIGN KEY (series_id) REFERENCES series (id) ON DELETE CASCADE');
  129.         $this->addSql('ALTER TABLE series_incident ADD CONSTRAINT FK_6EE8391559E53FB9 FOREIGN KEY (incident_id) REFERENCES incident (id) ON DELETE CASCADE');
  130.         $this->addSql('ALTER TABLE series_entity_option_media_type ADD CONSTRAINT FK_868E3ADA5278319C FOREIGN KEY (series_id) REFERENCES series (id) ON DELETE CASCADE');
  131.         $this->addSql('ALTER TABLE series_entity_option_media_type ADD CONSTRAINT FK_868E3ADAD1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  132.         $this->addSql('ALTER TABLE series_translation ADD CONSTRAINT FK_317539E32C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES series (id) ON DELETE CASCADE');
  133.         $this->addSql('ALTER TABLE source ADD CONSTRAINT FK_5F8A7F73896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
  134.         $this->addSql('ALTER TABLE source ADD CONSTRAINT FK_5F8A7F73B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
  135.         $this->addSql('ALTER TABLE sources_entity_option_categories ADD CONSTRAINT FK_C4804B79953C1C61 FOREIGN KEY (source_id) REFERENCES source (id) ON DELETE CASCADE');
  136.         $this->addSql('ALTER TABLE sources_entity_option_categories ADD CONSTRAINT FK_C4804B79D1BAA843 FOREIGN KEY (entity_option_id) REFERENCES entity_option (id) ON DELETE CASCADE');
  137.         $this->addSql('ALTER TABLE source_incident ADD CONSTRAINT FK_7E2397C8953C1C61 FOREIGN KEY (source_id) REFERENCES source (id) ON DELETE CASCADE');
  138.         $this->addSql('ALTER TABLE source_incident ADD CONSTRAINT FK_7E2397C859E53FB9 FOREIGN KEY (incident_id) REFERENCES incident (id) ON DELETE CASCADE');
  139.         $this->addSql('ALTER TABLE source_person ADD CONSTRAINT FK_8223F490953C1C61 FOREIGN KEY (source_id) REFERENCES source (id) ON DELETE CASCADE');
  140.         $this->addSql('ALTER TABLE source_person ADD CONSTRAINT FK_8223F490217BBB47 FOREIGN KEY (person_id) REFERENCES person (id) ON DELETE CASCADE');
  141.         $this->addSql('ALTER TABLE source_translation ADD CONSTRAINT FK_881615CF2C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES source (id) ON DELETE CASCADE');
  142.     }
  143.     public function down(Schema $schema): void
  144.     {
  145.         // this down() migration is auto-generated, please modify it to your needs
  146.         $this->addSql('ALTER TABLE annotationobject_entity_option_category DROP FOREIGN KEY FK_597321988688C954');
  147.         $this->addSql('ALTER TABLE annotationobjects_images DROP FOREIGN KEY FK_25D9FF9B8688C954');
  148.         $this->addSql('ALTER TABLE annotationobject_translation DROP FOREIGN KEY FK_F335F3AC2C2AC5D3');
  149.         $this->addSql('ALTER TABLE annotationobject_entity_option_category DROP FOREIGN KEY FK_59732198D1BAA843');
  150.         $this->addSql('ALTER TABLE entity_option_translation DROP FOREIGN KEY FK_9A2F0052C2AC5D3');
  151.         $this->addSql('ALTER TABLE image_entity_option_format DROP FOREIGN KEY FK_4E8C437CD1BAA843');
  152.         $this->addSql('ALTER TABLE image_entity_option_color DROP FOREIGN KEY FK_EF7A7AE6D1BAA843');
  153.         $this->addSql('ALTER TABLE image_entity_option_transmission_type DROP FOREIGN KEY FK_7E64DF3CD1BAA843');
  154.         $this->addSql('ALTER TABLE image_entity_option_content_location DROP FOREIGN KEY FK_DB662AA1D1BAA843');
  155.         $this->addSql('ALTER TABLE image_entity_option_content_location_creator DROP FOREIGN KEY FK_E5EC28D1D1BAA843');
  156.         $this->addSql('ALTER TABLE image_entity_option_content_storyline DROP FOREIGN KEY FK_95597DA3D1BAA843');
  157.         $this->addSql('ALTER TABLE image_entity_option_content_person_count DROP FOREIGN KEY FK_E7FDB3E2D1BAA843');
  158.         $this->addSql('ALTER TABLE image_entity_option_rights_typeusagerights DROP FOREIGN KEY FK_534C6662D1BAA843');
  159.         $this->addSql('ALTER TABLE incident DROP FOREIGN KEY FK_3D03A11AF92F3E70');
  160.         $this->addSql('ALTER TABLE incidents_entity_option_groups_persecuted DROP FOREIGN KEY FK_38B34EEFD1BAA843');
  161.         $this->addSql('ALTER TABLE person_entity_option_roles DROP FOREIGN KEY FK_D8EF7517D1BAA843');
  162.         $this->addSql('ALTER TABLE photographer_entity_option_profession DROP FOREIGN KEY FK_34D7D981D1BAA843');
  163.         $this->addSql('ALTER TABLE photographer_entity_option_role DROP FOREIGN KEY FK_A2F9FCD2D1BAA843');
  164.         $this->addSql('ALTER TABLE photographer_entity_option_validity DROP FOREIGN KEY FK_6C2CC1BDD1BAA843');
  165.         $this->addSql('ALTER TABLE series_entity_option_media_type DROP FOREIGN KEY FK_868E3ADAD1BAA843');
  166.         $this->addSql('ALTER TABLE sources_entity_option_categories DROP FOREIGN KEY FK_C4804B79D1BAA843');
  167.         $this->addSql('ALTER TABLE annotationobjects_images DROP FOREIGN KEY FK_25D9FF9B3DA5256D');
  168.         $this->addSql('ALTER TABLE image_series DROP FOREIGN KEY FK_950D5FE53DA5256D');
  169.         $this->addSql('ALTER TABLE image_owner DROP FOREIGN KEY FK_D82562D53DA5256D');
  170.         $this->addSql('ALTER TABLE image_entity_option_format DROP FOREIGN KEY FK_4E8C437C3DA5256D');
  171.         $this->addSql('ALTER TABLE image_entity_option_color DROP FOREIGN KEY FK_EF7A7AE63DA5256D');
  172.         $this->addSql('ALTER TABLE image_entity_option_transmission_type DROP FOREIGN KEY FK_7E64DF3C3DA5256D');
  173.         $this->addSql('ALTER TABLE image_entity_option_content_location DROP FOREIGN KEY FK_DB662AA13DA5256D');
  174.         $this->addSql('ALTER TABLE image_entity_option_content_location_creator DROP FOREIGN KEY FK_E5EC28D13DA5256D');
  175.         $this->addSql('ALTER TABLE image_entity_option_content_storyline DROP FOREIGN KEY FK_95597DA33DA5256D');
  176.         $this->addSql('ALTER TABLE image_entity_option_content_person_count DROP FOREIGN KEY FK_E7FDB3E23DA5256D');
  177.         $this->addSql('ALTER TABLE image_entity_option_rights_typeusagerights DROP FOREIGN KEY FK_534C66623DA5256D');
  178.         $this->addSql('ALTER TABLE image_translation DROP FOREIGN KEY FK_7BBF0EE12C2AC5D3');
  179.         $this->addSql('ALTER TABLE incident DROP FOREIGN KEY FK_3D03A11A32C92DC9');
  180.         $this->addSql('ALTER TABLE incidents_entity_option_groups_persecuted DROP FOREIGN KEY FK_38B34EEF59E53FB9');
  181.         $this->addSql('ALTER TABLE incident_translation DROP FOREIGN KEY FK_8410B022C2AC5D3');
  182.         $this->addSql('ALTER TABLE series_incident DROP FOREIGN KEY FK_6EE8391559E53FB9');
  183.         $this->addSql('ALTER TABLE source_incident DROP FOREIGN KEY FK_7E2397C859E53FB9');
  184.         $this->addSql('ALTER TABLE image_owner DROP FOREIGN KEY FK_D82562D57E3C61F9');
  185.         $this->addSql('ALTER TABLE owner_translation DROP FOREIGN KEY FK_B28D9AE92C2AC5D3');
  186.         $this->addSql('ALTER TABLE person_entity_option_roles DROP FOREIGN KEY FK_D8EF7517217BBB47');
  187.         $this->addSql('ALTER TABLE person_translation DROP FOREIGN KEY FK_D9821AE72C2AC5D3');
  188.         $this->addSql('ALTER TABLE source_person DROP FOREIGN KEY FK_8223F490217BBB47');
  189.         $this->addSql('ALTER TABLE photographer_entity_option_profession DROP FOREIGN KEY FK_34D7D98153EC1A21');
  190.         $this->addSql('ALTER TABLE photographer_entity_option_role DROP FOREIGN KEY FK_A2F9FCD253EC1A21');
  191.         $this->addSql('ALTER TABLE photographer_entity_option_validity DROP FOREIGN KEY FK_6C2CC1BD53EC1A21');
  192.         $this->addSql('ALTER TABLE photographer_translation DROP FOREIGN KEY FK_FC99E1A32C2AC5D3');
  193.         $this->addSql('ALTER TABLE series_photographer DROP FOREIGN KEY FK_F2B8A90853EC1A21');
  194.         $this->addSql('ALTER TABLE incident DROP FOREIGN KEY FK_3D03A11A64D218E');
  195.         $this->addSql('ALTER TABLE person DROP FOREIGN KEY FK_34DCD17674D2603E');
  196.         $this->addSql('ALTER TABLE place_translation DROP FOREIGN KEY FK_BA9C0DCB2C2AC5D3');
  197.         $this->addSql('ALTER TABLE image_series DROP FOREIGN KEY FK_950D5FE55278319C');
  198.         $this->addSql('ALTER TABLE series_photographer DROP FOREIGN KEY FK_F2B8A9085278319C');
  199.         $this->addSql('ALTER TABLE series_incident DROP FOREIGN KEY FK_6EE839155278319C');
  200.         $this->addSql('ALTER TABLE series_entity_option_media_type DROP FOREIGN KEY FK_868E3ADA5278319C');
  201.         $this->addSql('ALTER TABLE series_translation DROP FOREIGN KEY FK_317539E32C2AC5D3');
  202.         $this->addSql('ALTER TABLE sources_entity_option_categories DROP FOREIGN KEY FK_C4804B79953C1C61');
  203.         $this->addSql('ALTER TABLE source_incident DROP FOREIGN KEY FK_7E2397C8953C1C61');
  204.         $this->addSql('ALTER TABLE source_person DROP FOREIGN KEY FK_8223F490953C1C61');
  205.         $this->addSql('ALTER TABLE source_translation DROP FOREIGN KEY FK_881615CF2C2AC5D3');
  206.         $this->addSql('ALTER TABLE annotationobject DROP FOREIGN KEY FK_C843B199896DBBDE');
  207.         $this->addSql('ALTER TABLE annotationobject DROP FOREIGN KEY FK_C843B199B03A8386');
  208.         $this->addSql('ALTER TABLE entity_option DROP FOREIGN KEY FK_9E4BBE3D896DBBDE');
  209.         $this->addSql('ALTER TABLE entity_option DROP FOREIGN KEY FK_9E4BBE3DB03A8386');
  210.         $this->addSql('ALTER TABLE image DROP FOREIGN KEY FK_C53D045F896DBBDE');
  211.         $this->addSql('ALTER TABLE image DROP FOREIGN KEY FK_C53D045FB03A8386');
  212.         $this->addSql('ALTER TABLE incident DROP FOREIGN KEY FK_3D03A11A896DBBDE');
  213.         $this->addSql('ALTER TABLE incident DROP FOREIGN KEY FK_3D03A11AB03A8386');
  214.         $this->addSql('ALTER TABLE owner DROP FOREIGN KEY FK_CF60E67C896DBBDE');
  215.         $this->addSql('ALTER TABLE owner DROP FOREIGN KEY FK_CF60E67CB03A8386');
  216.         $this->addSql('ALTER TABLE person DROP FOREIGN KEY FK_34DCD176896DBBDE');
  217.         $this->addSql('ALTER TABLE person DROP FOREIGN KEY FK_34DCD176B03A8386');
  218.         $this->addSql('ALTER TABLE photographer DROP FOREIGN KEY FK_16337A7F896DBBDE');
  219.         $this->addSql('ALTER TABLE photographer DROP FOREIGN KEY FK_16337A7FB03A8386');
  220.         $this->addSql('ALTER TABLE place DROP FOREIGN KEY FK_741D53CD896DBBDE');
  221.         $this->addSql('ALTER TABLE place DROP FOREIGN KEY FK_741D53CDB03A8386');
  222.         $this->addSql('ALTER TABLE series DROP FOREIGN KEY FK_3A10012D896DBBDE');
  223.         $this->addSql('ALTER TABLE series DROP FOREIGN KEY FK_3A10012DB03A8386');
  224.         $this->addSql('ALTER TABLE source DROP FOREIGN KEY FK_5F8A7F73896DBBDE');
  225.         $this->addSql('ALTER TABLE source DROP FOREIGN KEY FK_5F8A7F73B03A8386');
  226.         $this->addSql('DROP TABLE annotationobject');
  227.         $this->addSql('DROP TABLE annotationobject_entity_option_category');
  228.         $this->addSql('DROP TABLE annotationobjects_images');
  229.         $this->addSql('DROP TABLE annotationobject_translation');
  230.         $this->addSql('DROP TABLE entity_option');
  231.         $this->addSql('DROP TABLE entity_option_translation');
  232.         $this->addSql('DROP TABLE image');
  233.         $this->addSql('DROP TABLE image_series');
  234.         $this->addSql('DROP TABLE image_owner');
  235.         $this->addSql('DROP TABLE image_entity_option_format');
  236.         $this->addSql('DROP TABLE image_entity_option_color');
  237.         $this->addSql('DROP TABLE image_entity_option_transmission_type');
  238.         $this->addSql('DROP TABLE image_entity_option_content_location');
  239.         $this->addSql('DROP TABLE image_entity_option_content_location_creator');
  240.         $this->addSql('DROP TABLE image_entity_option_content_storyline');
  241.         $this->addSql('DROP TABLE image_entity_option_content_person_count');
  242.         $this->addSql('DROP TABLE image_entity_option_rights_typeusagerights');
  243.         $this->addSql('DROP TABLE image_translation');
  244.         $this->addSql('DROP TABLE incident');
  245.         $this->addSql('DROP TABLE incidents_entity_option_groups_persecuted');
  246.         $this->addSql('DROP TABLE incident_translation');
  247.         $this->addSql('DROP TABLE owner');
  248.         $this->addSql('DROP TABLE owner_translation');
  249.         $this->addSql('DROP TABLE person');
  250.         $this->addSql('DROP TABLE person_entity_option_roles');
  251.         $this->addSql('DROP TABLE person_translation');
  252.         $this->addSql('DROP TABLE photographer');
  253.         $this->addSql('DROP TABLE photographer_entity_option_profession');
  254.         $this->addSql('DROP TABLE photographer_entity_option_role');
  255.         $this->addSql('DROP TABLE photographer_entity_option_validity');
  256.         $this->addSql('DROP TABLE photographer_translation');
  257.         $this->addSql('DROP TABLE place');
  258.         $this->addSql('DROP TABLE place_translation');
  259.         $this->addSql('DROP TABLE series');
  260.         $this->addSql('DROP TABLE series_photographer');
  261.         $this->addSql('DROP TABLE series_incident');
  262.         $this->addSql('DROP TABLE series_entity_option_media_type');
  263.         $this->addSql('DROP TABLE series_translation');
  264.         $this->addSql('DROP TABLE source');
  265.         $this->addSql('DROP TABLE sources_entity_option_categories');
  266.         $this->addSql('DROP TABLE source_incident');
  267.         $this->addSql('DROP TABLE source_person');
  268.         $this->addSql('DROP TABLE source_translation');
  269.         $this->addSql('DROP TABLE user');
  270.     }
  271. }