<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220531204524 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE AppSetting (id VARCHAR(128) NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ArtObject (id INT AUTO_INCREMENT NOT NULL, objectId INT NOT NULL, title VARCHAR(255) DEFAULT NULL, accessionNumber VARCHAR(64) DEFAULT NULL, geoAssoc VARCHAR(255) DEFAULT NULL, currLoc VARCHAR(255) DEFAULT NULL, objectDate VARCHAR(255) DEFAULT NULL, material VARCHAR(255) DEFAULT NULL, creditLine VARCHAR(1000) DEFAULT NULL, description LONGTEXT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE artobject_exhibition (artobject_id INT NOT NULL, exhibition_id INT NOT NULL, INDEX IDX_8949DFD754EA6A5D (artobject_id), INDEX IDX_8949DFD72A7D4494 (exhibition_id), PRIMARY KEY(artobject_id, exhibition_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE artobject_tour (artobject_id INT NOT NULL, tour_id INT NOT NULL, INDEX IDX_A1CE104A54EA6A5D (artobject_id), INDEX IDX_A1CE104A15ED8D43 (tour_id), PRIMARY KEY(artobject_id, tour_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE artobject_assignment (artobject_id INT NOT NULL, assignment_id INT NOT NULL, INDEX IDX_1B9A8E454EA6A5D (artobject_id), INDEX IDX_1B9A8E4D19302F8 (assignment_id), PRIMARY KEY(artobject_id, assignment_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ArtObjectDescription (id INT AUTO_INCREMENT NOT NULL, collectionType VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, formattedDescription LONGTEXT DEFAULT NULL, formattedDescriptionUpdated DATETIME DEFAULT NULL, descriptionId INT NOT NULL, collectionId INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject_id INT NOT NULL, INDEX IDX_8D10B126D61BE8FE (artObject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ArtObjectDimension (id INT AUTO_INCREMENT NOT NULL, dimensionId INT NOT NULL, dimension VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, weight INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject_id INT NOT NULL, INDEX IDX_66717EA8D61BE8FE (artObject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ArtObjectLink (id INT AUTO_INCREMENT NOT NULL, targetObjectTitle VARCHAR(255) DEFAULT NULL, linkId INT NOT NULL, sourceObjectId INT NOT NULL, targetObjectId INT NOT NULL, linkDesc LONGTEXT DEFAULT NULL, linkLimits LONGTEXT DEFAULT NULL, description LONGTEXT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, sourceObject_id INT NOT NULL, INDEX IDX_598CC8A0CC3CA73A (sourceObject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ArtObjectMedia (id INT AUTO_INCREMENT NOT NULL, linkId VARCHAR(64) DEFAULT NULL, name VARCHAR(64) DEFAULT NULL, path VARCHAR(255) DEFAULT NULL, ext VARCHAR(8) DEFAULT NULL, typeDesc VARCHAR(32) DEFAULT NULL, description LONGTEXT DEFAULT NULL, mediaId INT NOT NULL, transcript LONGTEXT DEFAULT NULL, formattedDescription LONGTEXT DEFAULT NULL, formattedDescriptionUpdated DATETIME NOT NULL, youtube LONGTEXT DEFAULT NULL, youtubeUpdated DATETIME DEFAULT NULL, tourMarker LONGTEXT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject_id INT NOT NULL, INDEX IDX_762FE03FD61BE8FE (artObject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE Artist (id INT AUTO_INCREMENT NOT NULL, firstName VARCHAR(255) DEFAULT NULL, lastName VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, lifeDates VARCHAR(255) DEFAULT NULL, activity LONGTEXT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject_id INT NOT NULL, INDEX IDX_6F593B1D61BE8FE (artObject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE Assignment (id INT AUTO_INCREMENT NOT NULL, assignmentId INT DEFAULT NULL, title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, formattedDescription LONGTEXT DEFAULT NULL, formattedDescriptionUpdated DATETIME DEFAULT NULL, priority INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE AssignmentLink (id INT AUTO_INCREMENT NOT NULL, assignment INT DEFAULT NULL, priority INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject INT DEFAULT NULL, INDEX IDX_CEF2D65230C544BA (assignment), INDEX IDX_CEF2D6524580ECE5 (artObject), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE AssignmentMedia (id INT AUTO_INCREMENT NOT NULL, assignment_id INT NOT NULL, linkId VARCHAR(64) DEFAULT NULL, name VARCHAR(64) DEFAULT NULL, path VARCHAR(255) DEFAULT NULL, ext VARCHAR(8) DEFAULT NULL, typeDesc VARCHAR(32) DEFAULT NULL, description LONGTEXT DEFAULT NULL, objectId INT NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, INDEX IDX_250B0D11D19302F8 (assignment_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE Beacon (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(128) NOT NULL, uuid VARCHAR(64) NOT NULL, major VARCHAR(16) NOT NULL, minor VARCHAR(16) NOT NULL, batteryLevel NUMERIC(3, 0) DEFAULT NULL, ownerName VARCHAR(128) NOT NULL, ownerEmail VARCHAR(128) DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE BeaconLink (id INT AUTO_INCREMENT NOT NULL, beacon_id INT NOT NULL, exhibition_id INT DEFAULT NULL, tour_id INT DEFAULT NULL, map_id INT DEFAULT NULL, enabled TINYINT(1) NOT NULL, detectRange INT NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject_id INT DEFAULT NULL, INDEX IDX_A154102DF6AD5578 (beacon_id), INDEX IDX_A154102D2A7D4494 (exhibition_id), INDEX IDX_A154102D15ED8D43 (tour_id), INDEX IDX_A154102DD61BE8FE (artObject_id), INDEX IDX_A154102D53C55F64 (map_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE DeletedItem (id INT AUTO_INCREMENT NOT NULL, itemType VARCHAR(255) DEFAULT NULL, itemId VARCHAR(255) DEFAULT NULL, itemDesc VARCHAR(255) DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE EventSubmission (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, status SMALLINT NOT NULL, updatedReason LONGTEXT DEFAULT NULL, title VARCHAR(255) NOT NULL, startDate DATE DEFAULT NULL, endDate DATE DEFAULT NULL, startTime TIME DEFAULT NULL, endTime TIME DEFAULT NULL, presentedBy LONGTEXT NOT NULL, location VARCHAR(64) NOT NULL, locationOther VARCHAR(64) DEFAULT NULL, exhibitionLink VARCHAR(255) DEFAULT NULL, eventStatus SMALLINT NOT NULL, eventType VARCHAR(64) NOT NULL, eventAudience VARCHAR(255) DEFAULT NULL, eventDescription LONGTEXT DEFAULT NULL, eventEnglishSubtitles SMALLINT DEFAULT NULL, eventFlags VARCHAR(255) DEFAULT NULL, eventInternet SMALLINT DEFAULT NULL, eventLanguage VARCHAR(255) DEFAULT NULL, eventNotes LONGTEXT DEFAULT NULL, eventRating VARCHAR(8) DEFAULT NULL, eventRights VARCHAR(255) DEFAULT NULL, eventRunTime INT DEFAULT NULL, eventSchedule VARCHAR(255) DEFAULT NULL, eventSchoolDistrict VARCHAR(255) DEFAULT NULL, eventSeriesTitle VARCHAR(255) DEFAULT NULL, eventSpecificLocation LONGTEXT DEFAULT NULL, eventNewSpecificLocation LONGTEXT DEFAULT NULL, eventTypeOfActivity VARCHAR(255) DEFAULT NULL, eventTypeOfClass VARCHAR(255) DEFAULT NULL, eventTypeOfPerformance VARCHAR(255) DEFAULT NULL, eventTypeOfSocial VARCHAR(255) DEFAULT NULL, eventTypeOfTalk VARCHAR(255) DEFAULT NULL, eventTypeOfVisit VARCHAR(255) DEFAULT NULL, eventYear INT DEFAULT NULL, eventReviewerName VARCHAR(255) DEFAULT NULL, eventComment LONGTEXT DEFAULT NULL, eventCommentDate DATE DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE Exhibition (id INT AUTO_INCREMENT NOT NULL, exhibitionId INT NOT NULL, title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, formattedDescription LONGTEXT DEFAULT NULL, formattedDescriptionUpdated DATETIME DEFAULT NULL, priority INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ExhibitionLink (id INT AUTO_INCREMENT NOT NULL, exhibition INT DEFAULT NULL, priority INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject INT DEFAULT NULL, INDEX IDX_8A0D1567B8353389 (exhibition), INDEX IDX_8A0D15674580ECE5 (artObject), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ExhibitionMedia (id INT AUTO_INCREMENT NOT NULL, exhibition_id INT NOT NULL, linkId VARCHAR(64) DEFAULT NULL, name VARCHAR(64) DEFAULT NULL, path VARCHAR(255) DEFAULT NULL, ext VARCHAR(8) DEFAULT NULL, typeDesc VARCHAR(32) DEFAULT NULL, description LONGTEXT DEFAULT NULL, objectId INT NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, INDEX IDX_73FC36F12A7D4494 (exhibition_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE GalleryAlias (id INT AUTO_INCREMENT NOT NULL, alias VARCHAR(256) NOT NULL, code VARCHAR(128) NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE LocationCode (id INT AUTO_INCREMENT NOT NULL, code VARCHAR(128) NOT NULL, enabled TINYINT(1) NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE Map (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(128) NOT NULL, description LONGTEXT DEFAULT NULL, priority INT DEFAULT NULL, path VARCHAR(255) NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE MapRoom (id INT AUTO_INCREMENT NOT NULL, map_id INT NOT NULL, points LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', name VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, enabled TINYINT(1) NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, INDEX IDX_7123D64E53C55F64 (map_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE SocialMedia (id INT AUTO_INCREMENT NOT NULL, linkId VARCHAR(64) DEFAULT NULL, name VARCHAR(64) DEFAULT NULL, path VARCHAR(255) DEFAULT NULL, ext VARCHAR(8) DEFAULT NULL, typeDesc VARCHAR(32) DEFAULT NULL, description LONGTEXT DEFAULT NULL, outlet VARCHAR(128) NOT NULL, url VARCHAR(128) NOT NULL, objectId INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE SurveyQuestion (id INT AUTO_INCREMENT NOT NULL, question VARCHAR(128) NOT NULL, priority INT NOT NULL, type VARCHAR(32) NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE SurveyQuestionResponse (id INT AUTO_INCREMENT NOT NULL, question_id INT NOT NULL, response LONGTEXT NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, INDEX IDX_F73681AB1E27F6BF (question_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE SyncHistory (id INT AUTO_INCREMENT NOT NULL, webToursTouched INT DEFAULT NULL, exhibitionsTouched INT NOT NULL, toursTouched INT NOT NULL, assignmentsTouched INT NOT NULL, objectsTouched INT NOT NULL, objectMediaTouched INT NOT NULL, objectDimensionsTouched INT NOT NULL, objectDescriptionsTouched INT NOT NULL, objectLinkTouched INT NOT NULL, artistsTouched INT NOT NULL, linksTouched INT NOT NULL, start DATETIME DEFAULT NULL, end DATETIME DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE Tour (id INT AUTO_INCREMENT NOT NULL, tourId INT NOT NULL, title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, formattedDescription LONGTEXT DEFAULT NULL, formattedDescriptionUpdated DATETIME DEFAULT NULL, priority INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE TourLink (id INT AUTO_INCREMENT NOT NULL, tour INT DEFAULT NULL, priority INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject INT DEFAULT NULL, INDEX IDX_A697D8576AD1F969 (tour), INDEX IDX_A697D8574580ECE5 (artObject), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE TourMedia (id INT AUTO_INCREMENT NOT NULL, tour_id INT NOT NULL, linkId VARCHAR(64) DEFAULT NULL, name VARCHAR(64) DEFAULT NULL, path VARCHAR(255) DEFAULT NULL, ext VARCHAR(8) DEFAULT NULL, typeDesc VARCHAR(32) DEFAULT NULL, description LONGTEXT DEFAULT NULL, objectId INT NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, INDEX IDX_55099C9015ED8D43 (tour_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE User (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', roles LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', uid VARCHAR(128) NOT NULL, email VARCHAR(128) NOT NULL, firstName VARCHAR(128) DEFAULT NULL, lastName VARCHAR(128) DEFAULT NULL, enabled TINYINT(1) NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, UNIQUE INDEX UNIQ_2DA17977539B0606 (uid), UNIQUE INDEX UNIQ_2DA17977E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE WebTour (id INT AUTO_INCREMENT NOT NULL, tourID INT DEFAULT NULL, title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, formattedDescription LONGTEXT DEFAULT NULL, formattedDescriptionUpdated DATETIME DEFAULT NULL, priority INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, UNIQUE INDEX UNIQ_2B723BC8618D93BD (tourID), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE WebTourLink (id INT AUTO_INCREMENT NOT NULL, tour INT DEFAULT NULL, priority INT DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject INT DEFAULT NULL, INDEX IDX_BCEC18636AD1F969 (tour), INDEX IDX_BCEC18634580ECE5 (artObject), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE WebTourMedia (id INT AUTO_INCREMENT NOT NULL, exhibition_id INT NOT NULL, linkId VARCHAR(64) DEFAULT NULL, name VARCHAR(64) DEFAULT NULL, path VARCHAR(255) DEFAULT NULL, ext VARCHAR(8) DEFAULT NULL, typeDesc VARCHAR(32) DEFAULT NULL, description LONGTEXT DEFAULT NULL, objectID INT NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, INDEX IDX_74A713E52A7D4494 (exhibition_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE WhatsNew (id INT AUTO_INCREMENT NOT NULL, exhibition_id INT DEFAULT NULL, tour_id INT DEFAULT NULL, assignment_id INT DEFAULT NULL, map_id INT DEFAULT NULL, description LONGTEXT DEFAULT NULL, start DATE DEFAULT NULL, end DATE DEFAULT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, artObject_id INT DEFAULT NULL, artObjectMedia_id INT DEFAULT NULL, INDEX IDX_980769012A7D4494 (exhibition_id), INDEX IDX_9807690115ED8D43 (tour_id), INDEX IDX_98076901D19302F8 (assignment_id), INDEX IDX_98076901D61BE8FE (artObject_id), INDEX IDX_98076901927A9BA4 (artObjectMedia_id), INDEX IDX_9807690153C55F64 (map_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE artobject_exhibition ADD CONSTRAINT FK_8949DFD754EA6A5D FOREIGN KEY (artobject_id) REFERENCES ArtObject (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE artobject_exhibition ADD CONSTRAINT FK_8949DFD72A7D4494 FOREIGN KEY (exhibition_id) REFERENCES Exhibition (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE artobject_tour ADD CONSTRAINT FK_A1CE104A54EA6A5D FOREIGN KEY (artobject_id) REFERENCES ArtObject (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE artobject_tour ADD CONSTRAINT FK_A1CE104A15ED8D43 FOREIGN KEY (tour_id) REFERENCES Tour (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE artobject_assignment ADD CONSTRAINT FK_1B9A8E454EA6A5D FOREIGN KEY (artobject_id) REFERENCES ArtObject (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE artobject_assignment ADD CONSTRAINT FK_1B9A8E4D19302F8 FOREIGN KEY (assignment_id) REFERENCES Assignment (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE ArtObjectDescription ADD CONSTRAINT FK_8D10B126D61BE8FE FOREIGN KEY (artObject_id) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE ArtObjectDimension ADD CONSTRAINT FK_66717EA8D61BE8FE FOREIGN KEY (artObject_id) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE ArtObjectLink ADD CONSTRAINT FK_598CC8A0CC3CA73A FOREIGN KEY (sourceObject_id) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE ArtObjectMedia ADD CONSTRAINT FK_762FE03FD61BE8FE FOREIGN KEY (artObject_id) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE Artist ADD CONSTRAINT FK_6F593B1D61BE8FE FOREIGN KEY (artObject_id) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE AssignmentLink ADD CONSTRAINT FK_CEF2D65230C544BA FOREIGN KEY (assignment) REFERENCES Assignment (id)');
$this->addSql('ALTER TABLE AssignmentLink ADD CONSTRAINT FK_CEF2D6524580ECE5 FOREIGN KEY (artObject) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE AssignmentMedia ADD CONSTRAINT FK_250B0D11D19302F8 FOREIGN KEY (assignment_id) REFERENCES Assignment (id)');
$this->addSql('ALTER TABLE BeaconLink ADD CONSTRAINT FK_A154102DF6AD5578 FOREIGN KEY (beacon_id) REFERENCES Beacon (id)');
$this->addSql('ALTER TABLE BeaconLink ADD CONSTRAINT FK_A154102D2A7D4494 FOREIGN KEY (exhibition_id) REFERENCES Exhibition (id)');
$this->addSql('ALTER TABLE BeaconLink ADD CONSTRAINT FK_A154102D15ED8D43 FOREIGN KEY (tour_id) REFERENCES Tour (id)');
$this->addSql('ALTER TABLE BeaconLink ADD CONSTRAINT FK_A154102DD61BE8FE FOREIGN KEY (artObject_id) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE BeaconLink ADD CONSTRAINT FK_A154102D53C55F64 FOREIGN KEY (map_id) REFERENCES Map (id)');
$this->addSql('ALTER TABLE ExhibitionLink ADD CONSTRAINT FK_8A0D1567B8353389 FOREIGN KEY (exhibition) REFERENCES Exhibition (id)');
$this->addSql('ALTER TABLE ExhibitionLink ADD CONSTRAINT FK_8A0D15674580ECE5 FOREIGN KEY (artObject) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE ExhibitionMedia ADD CONSTRAINT FK_73FC36F12A7D4494 FOREIGN KEY (exhibition_id) REFERENCES Exhibition (id)');
$this->addSql('ALTER TABLE MapRoom ADD CONSTRAINT FK_7123D64E53C55F64 FOREIGN KEY (map_id) REFERENCES Map (id)');
$this->addSql('ALTER TABLE SurveyQuestionResponse ADD CONSTRAINT FK_F73681AB1E27F6BF FOREIGN KEY (question_id) REFERENCES SurveyQuestion (id)');
$this->addSql('ALTER TABLE TourLink ADD CONSTRAINT FK_A697D8576AD1F969 FOREIGN KEY (tour) REFERENCES Tour (id)');
$this->addSql('ALTER TABLE TourLink ADD CONSTRAINT FK_A697D8574580ECE5 FOREIGN KEY (artObject) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE TourMedia ADD CONSTRAINT FK_55099C9015ED8D43 FOREIGN KEY (tour_id) REFERENCES Tour (id)');
$this->addSql('ALTER TABLE WebTourLink ADD CONSTRAINT FK_BCEC18636AD1F969 FOREIGN KEY (tour) REFERENCES WebTour (id)');
$this->addSql('ALTER TABLE WebTourLink ADD CONSTRAINT FK_BCEC18634580ECE5 FOREIGN KEY (artObject) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE WebTourMedia ADD CONSTRAINT FK_74A713E52A7D4494 FOREIGN KEY (exhibition_id) REFERENCES WebTour (id)');
$this->addSql('ALTER TABLE WhatsNew ADD CONSTRAINT FK_980769012A7D4494 FOREIGN KEY (exhibition_id) REFERENCES Exhibition (id)');
$this->addSql('ALTER TABLE WhatsNew ADD CONSTRAINT FK_9807690115ED8D43 FOREIGN KEY (tour_id) REFERENCES Tour (id)');
$this->addSql('ALTER TABLE WhatsNew ADD CONSTRAINT FK_98076901D19302F8 FOREIGN KEY (assignment_id) REFERENCES Assignment (id)');
$this->addSql('ALTER TABLE WhatsNew ADD CONSTRAINT FK_98076901D61BE8FE FOREIGN KEY (artObject_id) REFERENCES ArtObject (id)');
$this->addSql('ALTER TABLE WhatsNew ADD CONSTRAINT FK_98076901927A9BA4 FOREIGN KEY (artObjectMedia_id) REFERENCES ArtObjectMedia (id)');
$this->addSql('ALTER TABLE WhatsNew ADD CONSTRAINT FK_9807690153C55F64 FOREIGN KEY (map_id) REFERENCES Map (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE artobject_exhibition DROP FOREIGN KEY FK_8949DFD754EA6A5D');
$this->addSql('ALTER TABLE artobject_tour DROP FOREIGN KEY FK_A1CE104A54EA6A5D');
$this->addSql('ALTER TABLE artobject_assignment DROP FOREIGN KEY FK_1B9A8E454EA6A5D');
$this->addSql('ALTER TABLE ArtObjectDescription DROP FOREIGN KEY FK_8D10B126D61BE8FE');
$this->addSql('ALTER TABLE ArtObjectDimension DROP FOREIGN KEY FK_66717EA8D61BE8FE');
$this->addSql('ALTER TABLE ArtObjectLink DROP FOREIGN KEY FK_598CC8A0CC3CA73A');
$this->addSql('ALTER TABLE ArtObjectMedia DROP FOREIGN KEY FK_762FE03FD61BE8FE');
$this->addSql('ALTER TABLE Artist DROP FOREIGN KEY FK_6F593B1D61BE8FE');
$this->addSql('ALTER TABLE AssignmentLink DROP FOREIGN KEY FK_CEF2D6524580ECE5');
$this->addSql('ALTER TABLE BeaconLink DROP FOREIGN KEY FK_A154102DD61BE8FE');
$this->addSql('ALTER TABLE ExhibitionLink DROP FOREIGN KEY FK_8A0D15674580ECE5');
$this->addSql('ALTER TABLE TourLink DROP FOREIGN KEY FK_A697D8574580ECE5');
$this->addSql('ALTER TABLE WebTourLink DROP FOREIGN KEY FK_BCEC18634580ECE5');
$this->addSql('ALTER TABLE WhatsNew DROP FOREIGN KEY FK_98076901D61BE8FE');
$this->addSql('ALTER TABLE WhatsNew DROP FOREIGN KEY FK_98076901927A9BA4');
$this->addSql('ALTER TABLE artobject_assignment DROP FOREIGN KEY FK_1B9A8E4D19302F8');
$this->addSql('ALTER TABLE AssignmentLink DROP FOREIGN KEY FK_CEF2D65230C544BA');
$this->addSql('ALTER TABLE AssignmentMedia DROP FOREIGN KEY FK_250B0D11D19302F8');
$this->addSql('ALTER TABLE WhatsNew DROP FOREIGN KEY FK_98076901D19302F8');
$this->addSql('ALTER TABLE BeaconLink DROP FOREIGN KEY FK_A154102DF6AD5578');
$this->addSql('ALTER TABLE artobject_exhibition DROP FOREIGN KEY FK_8949DFD72A7D4494');
$this->addSql('ALTER TABLE BeaconLink DROP FOREIGN KEY FK_A154102D2A7D4494');
$this->addSql('ALTER TABLE ExhibitionLink DROP FOREIGN KEY FK_8A0D1567B8353389');
$this->addSql('ALTER TABLE ExhibitionMedia DROP FOREIGN KEY FK_73FC36F12A7D4494');
$this->addSql('ALTER TABLE WhatsNew DROP FOREIGN KEY FK_980769012A7D4494');
$this->addSql('ALTER TABLE BeaconLink DROP FOREIGN KEY FK_A154102D53C55F64');
$this->addSql('ALTER TABLE MapRoom DROP FOREIGN KEY FK_7123D64E53C55F64');
$this->addSql('ALTER TABLE WhatsNew DROP FOREIGN KEY FK_9807690153C55F64');
$this->addSql('ALTER TABLE SurveyQuestionResponse DROP FOREIGN KEY FK_F73681AB1E27F6BF');
$this->addSql('ALTER TABLE artobject_tour DROP FOREIGN KEY FK_A1CE104A15ED8D43');
$this->addSql('ALTER TABLE BeaconLink DROP FOREIGN KEY FK_A154102D15ED8D43');
$this->addSql('ALTER TABLE TourLink DROP FOREIGN KEY FK_A697D8576AD1F969');
$this->addSql('ALTER TABLE TourMedia DROP FOREIGN KEY FK_55099C9015ED8D43');
$this->addSql('ALTER TABLE WhatsNew DROP FOREIGN KEY FK_9807690115ED8D43');
$this->addSql('ALTER TABLE WebTourLink DROP FOREIGN KEY FK_BCEC18636AD1F969');
$this->addSql('ALTER TABLE WebTourMedia DROP FOREIGN KEY FK_74A713E52A7D4494');
$this->addSql('DROP TABLE AppSetting');
$this->addSql('DROP TABLE ArtObject');
$this->addSql('DROP TABLE artobject_exhibition');
$this->addSql('DROP TABLE artobject_tour');
$this->addSql('DROP TABLE artobject_assignment');
$this->addSql('DROP TABLE ArtObjectDescription');
$this->addSql('DROP TABLE ArtObjectDimension');
$this->addSql('DROP TABLE ArtObjectLink');
$this->addSql('DROP TABLE ArtObjectMedia');
$this->addSql('DROP TABLE Artist');
$this->addSql('DROP TABLE Assignment');
$this->addSql('DROP TABLE AssignmentLink');
$this->addSql('DROP TABLE AssignmentMedia');
$this->addSql('DROP TABLE Beacon');
$this->addSql('DROP TABLE BeaconLink');
$this->addSql('DROP TABLE DeletedItem');
$this->addSql('DROP TABLE EventSubmission');
$this->addSql('DROP TABLE Exhibition');
$this->addSql('DROP TABLE ExhibitionLink');
$this->addSql('DROP TABLE ExhibitionMedia');
$this->addSql('DROP TABLE GalleryAlias');
$this->addSql('DROP TABLE LocationCode');
$this->addSql('DROP TABLE Map');
$this->addSql('DROP TABLE MapRoom');
$this->addSql('DROP TABLE SocialMedia');
$this->addSql('DROP TABLE SurveyQuestion');
$this->addSql('DROP TABLE SurveyQuestionResponse');
$this->addSql('DROP TABLE SyncHistory');
$this->addSql('DROP TABLE Tour');
$this->addSql('DROP TABLE TourLink');
$this->addSql('DROP TABLE TourMedia');
$this->addSql('DROP TABLE User');
$this->addSql('DROP TABLE WebTour');
$this->addSql('DROP TABLE WebTourLink');
$this->addSql('DROP TABLE WebTourMedia');
$this->addSql('DROP TABLE WhatsNew');
}
}