migrations/Version20220317111948.php line 1
<?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 Version20220317111948 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 SEQUENCE association_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE characteristic_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE lexicon_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE message_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE primitive_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE refresh_tokens_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE release_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE resource_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE text_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE translation_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE "user_id_seq" INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE TABLE agreement_release (id INT NOT NULL, agreement BOOLEAN NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE archive_content (id INT NOT NULL, resource_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_93E5D15689329D25 ON archive_content (resource_id)');
$this->addSql('CREATE TABLE association (id INT NOT NULL, reference_id INT DEFAULT NULL, primitive_id INT DEFAULT NULL, perspective_id INT DEFAULT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_FD8521CC1645DEA9 ON association (reference_id)');
$this->addSql('CREATE INDEX IDX_FD8521CC621DFAA6 ON association (primitive_id)');
$this->addSql('CREATE INDEX IDX_FD8521CCEDD6CAAB ON association (perspective_id)');
$this->addSql('CREATE TABLE characteristic (id INT NOT NULL, thumbnail_id INT DEFAULT NULL, included BOOLEAN NOT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, title VARCHAR(128) NOT NULL, description VARCHAR(512) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_522FA950FDFF2E92 ON characteristic (thumbnail_id)');
$this->addSql('CREATE TABLE chronological_reference (id INT NOT NULL, date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE component (id INT NOT NULL, synthesis_id INT DEFAULT NULL, index INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_49FEA157EC91FE48 ON component (synthesis_id)');
$this->addSql('CREATE TABLE component_element (component_id INT NOT NULL, element_id INT NOT NULL, PRIMARY KEY(component_id, element_id))');
$this->addSql('CREATE INDEX IDX_F14CDF10E2ABAFFF ON component_element (component_id)');
$this->addSql('CREATE INDEX IDX_F14CDF101F1F2A24 ON component_element (element_id)');
$this->addSql('CREATE TABLE conceptional_reference (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE content (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE document_content (id INT NOT NULL, resource_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_5AAA967589329D25 ON document_content (resource_id)');
$this->addSql('CREATE TABLE element (id INT NOT NULL, primitive_id INT DEFAULT NULL, component_id INT DEFAULT NULL, index INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_41405E39621DFAA6 ON element (primitive_id)');
$this->addSql('CREATE INDEX IDX_41405E39E2ABAFFF ON element (component_id)');
$this->addSql('CREATE TABLE encrypted_resource (id INT NOT NULL, key VARCHAR(512) NOT NULL, local_path VARCHAR(256) DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE genealogical_reference (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE group_user (id INT NOT NULL, thumbnail_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_A4C98D39FDFF2E92 ON group_user (thumbnail_id)');
$this->addSql('CREATE TABLE group_user_translation (group_user_id INT NOT NULL, translation_id INT NOT NULL, PRIMARY KEY(group_user_id, translation_id))');
$this->addSql('CREATE INDEX IDX_E2C37517216E8799 ON group_user_translation (group_user_id)');
$this->addSql('CREATE INDEX IDX_E2C375179CAA2B25 ON group_user_translation (translation_id)');
$this->addSql('CREATE TABLE human_user (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE human_user_group_user (human_user_id INT NOT NULL, group_user_id INT NOT NULL, PRIMARY KEY(human_user_id, group_user_id))');
$this->addSql('CREATE INDEX IDX_17A613B560ADBA93 ON human_user_group_user (human_user_id)');
$this->addSql('CREATE INDEX IDX_17A613B5216E8799 ON human_user_group_user (group_user_id)');
$this->addSql('CREATE TABLE human_user_organization_user (human_user_id INT NOT NULL, organization_user_id INT NOT NULL, PRIMARY KEY(human_user_id, organization_user_id))');
$this->addSql('CREATE INDEX IDX_C8E51E8960ADBA93 ON human_user_organization_user (human_user_id)');
$this->addSql('CREATE INDEX IDX_C8E51E896ABC5BD6 ON human_user_organization_user (organization_user_id)');
$this->addSql('CREATE TABLE image_content (id INT NOT NULL, resource_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_6BD5677589329D25 ON image_content (resource_id)');
$this->addSql('CREATE TABLE image_gallery_content (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE image_gallery_content_image_content (image_gallery_content_id INT NOT NULL, image_content_id INT NOT NULL, PRIMARY KEY(image_gallery_content_id, image_content_id))');
$this->addSql('CREATE INDEX IDX_BAB62DA17E614D42 ON image_gallery_content_image_content (image_gallery_content_id)');
$this->addSql('CREATE INDEX IDX_BAB62DA1E87EB4DB ON image_gallery_content_image_content (image_content_id)');
$this->addSql('CREATE TABLE lexicon (id INT NOT NULL, thumbnail_id INT DEFAULT NULL, included BOOLEAN NOT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, title VARCHAR(128) NOT NULL, description VARCHAR(512) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_4313ACFFDFF2E92 ON lexicon (thumbnail_id)');
$this->addSql('CREATE TABLE local_resource (id INT NOT NULL, local_path VARCHAR(256) DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE long_text (id INT NOT NULL, content TEXT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE medium_text (id INT NOT NULL, content VARCHAR(256) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE message (id INT NOT NULL, creator_id INT DEFAULT NULL, recipient_id INT DEFAULT NULL, value_id INT DEFAULT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_B6BD307F61220EA6 ON message (creator_id)');
$this->addSql('CREATE INDEX IDX_B6BD307FE92F8F78 ON message (recipient_id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_B6BD307FF920BBA2 ON message (value_id)');
$this->addSql('CREATE TABLE mtadatacenter_resource (id INT NOT NULL, local_path VARCHAR(256) DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE organization_user (id INT NOT NULL, thumbnail_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_B49AE8D4FDFF2E92 ON organization_user (thumbnail_id)');
$this->addSql('CREATE TABLE organization_user_translation (organization_user_id INT NOT NULL, translation_id INT NOT NULL, PRIMARY KEY(organization_user_id, translation_id))');
$this->addSql('CREATE INDEX IDX_EB9932516ABC5BD6 ON organization_user_translation (organization_user_id)');
$this->addSql('CREATE INDEX IDX_EB9932519CAA2B25 ON organization_user_translation (translation_id)');
$this->addSql('CREATE TABLE perspective (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE primitive (id INT NOT NULL, creator_id INT DEFAULT NULL, thumbnail_id INT DEFAULT NULL, public BOOLEAN NOT NULL, show BOOLEAN NOT NULL, releasable BOOLEAN NOT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, discriminator VARCHAR(255) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_215FCDDB61220EA6 ON primitive (creator_id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_215FCDDBFDFF2E92 ON primitive (thumbnail_id)');
$this->addSql('CREATE TABLE primitive_translation (primitive_id INT NOT NULL, translation_id INT NOT NULL, PRIMARY KEY(primitive_id, translation_id))');
$this->addSql('CREATE INDEX IDX_70524C21621DFAA6 ON primitive_translation (primitive_id)');
$this->addSql('CREATE INDEX IDX_70524C219CAA2B25 ON primitive_translation (translation_id)');
$this->addSql('CREATE TABLE reference (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE refresh_tokens (id INT NOT NULL, refresh_token VARCHAR(128) NOT NULL, username VARCHAR(255) NOT NULL, valid TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_9BACE7E1C74F2195 ON refresh_tokens (refresh_token)');
$this->addSql('CREATE TABLE release (id INT NOT NULL, creator_id INT DEFAULT NULL, recipient_id INT DEFAULT NULL, primitive_id INT DEFAULT NULL, terms_id INT DEFAULT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, discriminator VARCHAR(255) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_9E47031D61220EA6 ON release (creator_id)');
$this->addSql('CREATE INDEX IDX_9E47031DE92F8F78 ON release (recipient_id)');
$this->addSql('CREATE INDEX IDX_9E47031D621DFAA6 ON release (primitive_id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_9E47031D53742F27 ON release (terms_id)');
$this->addSql('CREATE TABLE remote_resource (id INT NOT NULL, url VARCHAR(256) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE resource (id INT NOT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, discriminator VARCHAR(255) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE shapefile_content (id INT NOT NULL, shapefile_resource_id INT DEFAULT NULL, style_resource_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_68937D7C157706BE ON shapefile_content (shapefile_resource_id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_68937D7C9C16C8EA ON shapefile_content (style_resource_id)');
$this->addSql('CREATE TABLE sharded_resource (id INT NOT NULL, local_path_one VARCHAR(256) DEFAULT NULL, local_path_two VARCHAR(256) DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE short_text (id INT NOT NULL, content VARCHAR(64) DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE spatial_reference (id INT NOT NULL, latitude DOUBLE PRECISION NOT NULL, longitude DOUBLE PRECISION DEFAULT NULL, projection_system VARCHAR(64) DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE standard_release (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE synthesis (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE synthesis_component (synthesis_id INT NOT NULL, component_id INT NOT NULL, PRIMARY KEY(synthesis_id, component_id))');
$this->addSql('CREATE INDEX IDX_BE49406EEC91FE48 ON synthesis_component (synthesis_id)');
$this->addSql('CREATE INDEX IDX_BE49406EE2ABAFFF ON synthesis_component (component_id)');
$this->addSql('CREATE TABLE text (id INT NOT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, discriminator VARCHAR(255) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE text_content (id INT NOT NULL, text_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_DA641F96698D3548 ON text_content (text_id)');
$this->addSql('CREATE TABLE translation (id INT NOT NULL, characteristic_id INT DEFAULT NULL, lexicon_id INT DEFAULT NULL, text_id INT DEFAULT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_B469456FDEE9D12B ON translation (characteristic_id)');
$this->addSql('CREATE INDEX IDX_B469456F88C5CA0A ON translation (lexicon_id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_B469456F698D3548 ON translation (text_id)');
$this->addSql('CREATE TABLE "user" (id INT NOT NULL, lexicon_id INT DEFAULT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, token VARCHAR(255) DEFAULT NULL, verification_token VARCHAR(255) DEFAULT NULL, reset_token VARCHAR(255) DEFAULT NULL, verified BOOLEAN NOT NULL, contact BOOLEAN NOT NULL, cache_access TEXT DEFAULT NULL, created_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, modified_date_time TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, discriminator VARCHAR(255) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_8D93D64988C5CA0A ON "user" (lexicon_id)');
$this->addSql('COMMENT ON COLUMN "user".cache_access IS \'(DC2Type:array)\'');
$this->addSql('CREATE TABLE user_primitive (user_id INT NOT NULL, primitive_id INT NOT NULL, PRIMARY KEY(user_id, primitive_id))');
$this->addSql('CREATE INDEX IDX_21BF403FA76ED395 ON user_primitive (user_id)');
$this->addSql('CREATE INDEX IDX_21BF403F621DFAA6 ON user_primitive (primitive_id)');
$this->addSql('CREATE TABLE video_content (id INT NOT NULL, resource_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_1B28D90489329D25 ON video_content (resource_id)');
$this->addSql('CREATE TABLE web_content (id INT NOT NULL, resource_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_166A9E3789329D25 ON web_content (resource_id)');
$this->addSql('CREATE TABLE workbook_content (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE workbook_content_worksheet_content (workbook_content_id INT NOT NULL, worksheet_content_id INT NOT NULL, PRIMARY KEY(workbook_content_id, worksheet_content_id))');
$this->addSql('CREATE INDEX IDX_261A3857E6809D1D ON workbook_content_worksheet_content (workbook_content_id)');
$this->addSql('CREATE INDEX IDX_261A3857C808887F ON workbook_content_worksheet_content (worksheet_content_id)');
$this->addSql('CREATE TABLE working_content (id INT NOT NULL, key VARCHAR(128) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE working_content_primitive (working_content_id INT NOT NULL, primitive_id INT NOT NULL, PRIMARY KEY(working_content_id, primitive_id))');
$this->addSql('CREATE INDEX IDX_12FCC19A380E81A4 ON working_content_primitive (working_content_id)');
$this->addSql('CREATE INDEX IDX_12FCC19A621DFAA6 ON working_content_primitive (primitive_id)');
$this->addSql('CREATE TABLE worksheet_content (id INT NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE worksheet_content_working_content (worksheet_content_id INT NOT NULL, working_content_id INT NOT NULL, PRIMARY KEY(worksheet_content_id, working_content_id))');
$this->addSql('CREATE INDEX IDX_73CB9A8DC808887F ON worksheet_content_working_content (worksheet_content_id)');
$this->addSql('CREATE INDEX IDX_73CB9A8D380E81A4 ON worksheet_content_working_content (working_content_id)');
$this->addSql('CREATE TABLE messenger_messages (id BIGSERIAL NOT NULL, body TEXT NOT NULL, headers TEXT NOT NULL, queue_name VARCHAR(255) NOT NULL, created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, available_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, delivered_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_75EA56E0FB7336F0 ON messenger_messages (queue_name)');
$this->addSql('CREATE INDEX IDX_75EA56E0E3BD61CE ON messenger_messages (available_at)');
$this->addSql('CREATE INDEX IDX_75EA56E016BA31DB ON messenger_messages (delivered_at)');
$this->addSql('CREATE OR REPLACE FUNCTION notify_messenger_messages() RETURNS TRIGGER AS $$
BEGIN
PERFORM pg_notify(\'messenger_messages\', NEW.queue_name::text);
RETURN NEW;
END;
$$ LANGUAGE plpgsql;');
$this->addSql('DROP TRIGGER IF EXISTS notify_trigger ON messenger_messages;');
$this->addSql('CREATE TRIGGER notify_trigger AFTER INSERT OR UPDATE ON messenger_messages FOR EACH ROW EXECUTE PROCEDURE notify_messenger_messages();');
$this->addSql('ALTER TABLE agreement_release ADD CONSTRAINT FK_365E37B9BF396750 FOREIGN KEY (id) REFERENCES release (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE archive_content ADD CONSTRAINT FK_93E5D15689329D25 FOREIGN KEY (resource_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE archive_content ADD CONSTRAINT FK_93E5D156BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE association ADD CONSTRAINT FK_FD8521CC1645DEA9 FOREIGN KEY (reference_id) REFERENCES reference (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE association ADD CONSTRAINT FK_FD8521CC621DFAA6 FOREIGN KEY (primitive_id) REFERENCES primitive (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE association ADD CONSTRAINT FK_FD8521CCEDD6CAAB FOREIGN KEY (perspective_id) REFERENCES perspective (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE characteristic ADD CONSTRAINT FK_522FA950FDFF2E92 FOREIGN KEY (thumbnail_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chronological_reference ADD CONSTRAINT FK_797879C1BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE component ADD CONSTRAINT FK_49FEA157EC91FE48 FOREIGN KEY (synthesis_id) REFERENCES synthesis (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE component ADD CONSTRAINT FK_49FEA157BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE component_element ADD CONSTRAINT FK_F14CDF10E2ABAFFF FOREIGN KEY (component_id) REFERENCES component (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE component_element ADD CONSTRAINT FK_F14CDF101F1F2A24 FOREIGN KEY (element_id) REFERENCES element (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE conceptional_reference ADD CONSTRAINT FK_9DD46E4BBF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE content ADD CONSTRAINT FK_FEC530A9BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE document_content ADD CONSTRAINT FK_5AAA967589329D25 FOREIGN KEY (resource_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE document_content ADD CONSTRAINT FK_5AAA9675BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE element ADD CONSTRAINT FK_41405E39621DFAA6 FOREIGN KEY (primitive_id) REFERENCES primitive (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE element ADD CONSTRAINT FK_41405E39E2ABAFFF FOREIGN KEY (component_id) REFERENCES component (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE element ADD CONSTRAINT FK_41405E39BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE encrypted_resource ADD CONSTRAINT FK_BCEE2A88BF396750 FOREIGN KEY (id) REFERENCES resource (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE genealogical_reference ADD CONSTRAINT FK_FA1FFEE7BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE group_user ADD CONSTRAINT FK_A4C98D39FDFF2E92 FOREIGN KEY (thumbnail_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE group_user ADD CONSTRAINT FK_A4C98D39BF396750 FOREIGN KEY (id) REFERENCES "user" (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE group_user_translation ADD CONSTRAINT FK_E2C37517216E8799 FOREIGN KEY (group_user_id) REFERENCES group_user (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE group_user_translation ADD CONSTRAINT FK_E2C375179CAA2B25 FOREIGN KEY (translation_id) REFERENCES translation (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE human_user ADD CONSTRAINT FK_D9CB6736BF396750 FOREIGN KEY (id) REFERENCES "user" (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE human_user_group_user ADD CONSTRAINT FK_17A613B560ADBA93 FOREIGN KEY (human_user_id) REFERENCES human_user (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE human_user_group_user ADD CONSTRAINT FK_17A613B5216E8799 FOREIGN KEY (group_user_id) REFERENCES group_user (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE human_user_organization_user ADD CONSTRAINT FK_C8E51E8960ADBA93 FOREIGN KEY (human_user_id) REFERENCES human_user (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE human_user_organization_user ADD CONSTRAINT FK_C8E51E896ABC5BD6 FOREIGN KEY (organization_user_id) REFERENCES organization_user (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE image_content ADD CONSTRAINT FK_6BD5677589329D25 FOREIGN KEY (resource_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE image_content ADD CONSTRAINT FK_6BD56775BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE image_gallery_content ADD CONSTRAINT FK_6B4F6F10BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE image_gallery_content_image_content ADD CONSTRAINT FK_BAB62DA17E614D42 FOREIGN KEY (image_gallery_content_id) REFERENCES image_gallery_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE image_gallery_content_image_content ADD CONSTRAINT FK_BAB62DA1E87EB4DB FOREIGN KEY (image_content_id) REFERENCES image_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE lexicon ADD CONSTRAINT FK_4313ACFFDFF2E92 FOREIGN KEY (thumbnail_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE local_resource ADD CONSTRAINT FK_2F05DE8EBF396750 FOREIGN KEY (id) REFERENCES resource (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE long_text ADD CONSTRAINT FK_3B61FC92BF396750 FOREIGN KEY (id) REFERENCES text (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE medium_text ADD CONSTRAINT FK_A3940D16BF396750 FOREIGN KEY (id) REFERENCES text (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE message ADD CONSTRAINT FK_B6BD307F61220EA6 FOREIGN KEY (creator_id) REFERENCES "user" (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE message ADD CONSTRAINT FK_B6BD307FE92F8F78 FOREIGN KEY (recipient_id) REFERENCES "user" (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE message ADD CONSTRAINT FK_B6BD307FF920BBA2 FOREIGN KEY (value_id) REFERENCES text (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE mtadatacenter_resource ADD CONSTRAINT FK_4D8E1078BF396750 FOREIGN KEY (id) REFERENCES resource (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE organization_user ADD CONSTRAINT FK_B49AE8D4FDFF2E92 FOREIGN KEY (thumbnail_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE organization_user ADD CONSTRAINT FK_B49AE8D4BF396750 FOREIGN KEY (id) REFERENCES "user" (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE organization_user_translation ADD CONSTRAINT FK_EB9932516ABC5BD6 FOREIGN KEY (organization_user_id) REFERENCES organization_user (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE organization_user_translation ADD CONSTRAINT FK_EB9932519CAA2B25 FOREIGN KEY (translation_id) REFERENCES translation (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE perspective ADD CONSTRAINT FK_D3C49E97BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE primitive ADD CONSTRAINT FK_215FCDDB61220EA6 FOREIGN KEY (creator_id) REFERENCES "user" (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE primitive ADD CONSTRAINT FK_215FCDDBFDFF2E92 FOREIGN KEY (thumbnail_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE primitive_translation ADD CONSTRAINT FK_70524C21621DFAA6 FOREIGN KEY (primitive_id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE primitive_translation ADD CONSTRAINT FK_70524C219CAA2B25 FOREIGN KEY (translation_id) REFERENCES translation (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE reference ADD CONSTRAINT FK_AEA34913BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE release ADD CONSTRAINT FK_9E47031D61220EA6 FOREIGN KEY (creator_id) REFERENCES "user" (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE release ADD CONSTRAINT FK_9E47031DE92F8F78 FOREIGN KEY (recipient_id) REFERENCES "user" (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE release ADD CONSTRAINT FK_9E47031D621DFAA6 FOREIGN KEY (primitive_id) REFERENCES primitive (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE release ADD CONSTRAINT FK_9E47031D53742F27 FOREIGN KEY (terms_id) REFERENCES text (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE remote_resource ADD CONSTRAINT FK_6F038B5ABF396750 FOREIGN KEY (id) REFERENCES resource (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE shapefile_content ADD CONSTRAINT FK_68937D7C157706BE FOREIGN KEY (shapefile_resource_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE shapefile_content ADD CONSTRAINT FK_68937D7C9C16C8EA FOREIGN KEY (style_resource_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE shapefile_content ADD CONSTRAINT FK_68937D7CBF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE sharded_resource ADD CONSTRAINT FK_FA5B0E95BF396750 FOREIGN KEY (id) REFERENCES resource (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE short_text ADD CONSTRAINT FK_5B4C6952BF396750 FOREIGN KEY (id) REFERENCES text (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE spatial_reference ADD CONSTRAINT FK_494B0150BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE standard_release ADD CONSTRAINT FK_B5E2ED4BBF396750 FOREIGN KEY (id) REFERENCES release (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE synthesis ADD CONSTRAINT FK_593C04B6BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE synthesis_component ADD CONSTRAINT FK_BE49406EEC91FE48 FOREIGN KEY (synthesis_id) REFERENCES synthesis (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE synthesis_component ADD CONSTRAINT FK_BE49406EE2ABAFFF FOREIGN KEY (component_id) REFERENCES component (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE text_content ADD CONSTRAINT FK_DA641F96698D3548 FOREIGN KEY (text_id) REFERENCES text (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE text_content ADD CONSTRAINT FK_DA641F96BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE translation ADD CONSTRAINT FK_B469456FDEE9D12B FOREIGN KEY (characteristic_id) REFERENCES characteristic (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE translation ADD CONSTRAINT FK_B469456F88C5CA0A FOREIGN KEY (lexicon_id) REFERENCES lexicon (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE translation ADD CONSTRAINT FK_B469456F698D3548 FOREIGN KEY (text_id) REFERENCES text (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE "user" ADD CONSTRAINT FK_8D93D64988C5CA0A FOREIGN KEY (lexicon_id) REFERENCES lexicon (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE user_primitive ADD CONSTRAINT FK_21BF403FA76ED395 FOREIGN KEY (user_id) REFERENCES "user" (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE user_primitive ADD CONSTRAINT FK_21BF403F621DFAA6 FOREIGN KEY (primitive_id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE video_content ADD CONSTRAINT FK_1B28D90489329D25 FOREIGN KEY (resource_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE video_content ADD CONSTRAINT FK_1B28D904BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE web_content ADD CONSTRAINT FK_166A9E3789329D25 FOREIGN KEY (resource_id) REFERENCES resource (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE web_content ADD CONSTRAINT FK_166A9E37BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE workbook_content ADD CONSTRAINT FK_2C994A02BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE workbook_content_worksheet_content ADD CONSTRAINT FK_261A3857E6809D1D FOREIGN KEY (workbook_content_id) REFERENCES workbook_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE workbook_content_worksheet_content ADD CONSTRAINT FK_261A3857C808887F FOREIGN KEY (worksheet_content_id) REFERENCES worksheet_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE working_content ADD CONSTRAINT FK_20B592E9BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE working_content_primitive ADD CONSTRAINT FK_12FCC19A380E81A4 FOREIGN KEY (working_content_id) REFERENCES working_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE working_content_primitive ADD CONSTRAINT FK_12FCC19A621DFAA6 FOREIGN KEY (primitive_id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE worksheet_content ADD CONSTRAINT FK_2A901557BF396750 FOREIGN KEY (id) REFERENCES primitive (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE worksheet_content_working_content ADD CONSTRAINT FK_73CB9A8DC808887F FOREIGN KEY (worksheet_content_id) REFERENCES worksheet_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE worksheet_content_working_content ADD CONSTRAINT FK_73CB9A8D380E81A4 FOREIGN KEY (working_content_id) REFERENCES working_content (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('CREATE TABLE sessions (sess_id VARCHAR(128) NOT NULL PRIMARY KEY, sess_data BYTEA NOT NULL, sess_lifetime INTEGER NOT NULL, sess_time INTEGER NOT NULL)');
$this->addSql('CREATE INDEX sessions_sess_lifetime_idx ON sessions (sess_lifetime)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE translation DROP CONSTRAINT FK_B469456FDEE9D12B');
$this->addSql('ALTER TABLE component_element DROP CONSTRAINT FK_F14CDF10E2ABAFFF');
$this->addSql('ALTER TABLE element DROP CONSTRAINT FK_41405E39E2ABAFFF');
$this->addSql('ALTER TABLE synthesis_component DROP CONSTRAINT FK_BE49406EE2ABAFFF');
$this->addSql('ALTER TABLE component_element DROP CONSTRAINT FK_F14CDF101F1F2A24');
$this->addSql('ALTER TABLE group_user_translation DROP CONSTRAINT FK_E2C37517216E8799');
$this->addSql('ALTER TABLE human_user_group_user DROP CONSTRAINT FK_17A613B5216E8799');
$this->addSql('ALTER TABLE human_user_group_user DROP CONSTRAINT FK_17A613B560ADBA93');
$this->addSql('ALTER TABLE human_user_organization_user DROP CONSTRAINT FK_C8E51E8960ADBA93');
$this->addSql('ALTER TABLE image_gallery_content_image_content DROP CONSTRAINT FK_BAB62DA1E87EB4DB');
$this->addSql('ALTER TABLE image_gallery_content_image_content DROP CONSTRAINT FK_BAB62DA17E614D42');
$this->addSql('ALTER TABLE translation DROP CONSTRAINT FK_B469456F88C5CA0A');
$this->addSql('ALTER TABLE "user" DROP CONSTRAINT FK_8D93D64988C5CA0A');
$this->addSql('ALTER TABLE human_user_organization_user DROP CONSTRAINT FK_C8E51E896ABC5BD6');
$this->addSql('ALTER TABLE organization_user_translation DROP CONSTRAINT FK_EB9932516ABC5BD6');
$this->addSql('ALTER TABLE association DROP CONSTRAINT FK_FD8521CCEDD6CAAB');
$this->addSql('ALTER TABLE archive_content DROP CONSTRAINT FK_93E5D156BF396750');
$this->addSql('ALTER TABLE association DROP CONSTRAINT FK_FD8521CC621DFAA6');
$this->addSql('ALTER TABLE chronological_reference DROP CONSTRAINT FK_797879C1BF396750');
$this->addSql('ALTER TABLE component DROP CONSTRAINT FK_49FEA157BF396750');
$this->addSql('ALTER TABLE conceptional_reference DROP CONSTRAINT FK_9DD46E4BBF396750');
$this->addSql('ALTER TABLE content DROP CONSTRAINT FK_FEC530A9BF396750');
$this->addSql('ALTER TABLE document_content DROP CONSTRAINT FK_5AAA9675BF396750');
$this->addSql('ALTER TABLE element DROP CONSTRAINT FK_41405E39621DFAA6');
$this->addSql('ALTER TABLE element DROP CONSTRAINT FK_41405E39BF396750');
$this->addSql('ALTER TABLE genealogical_reference DROP CONSTRAINT FK_FA1FFEE7BF396750');
$this->addSql('ALTER TABLE image_content DROP CONSTRAINT FK_6BD56775BF396750');
$this->addSql('ALTER TABLE image_gallery_content DROP CONSTRAINT FK_6B4F6F10BF396750');
$this->addSql('ALTER TABLE perspective DROP CONSTRAINT FK_D3C49E97BF396750');
$this->addSql('ALTER TABLE primitive_translation DROP CONSTRAINT FK_70524C21621DFAA6');
$this->addSql('ALTER TABLE reference DROP CONSTRAINT FK_AEA34913BF396750');
$this->addSql('ALTER TABLE release DROP CONSTRAINT FK_9E47031D621DFAA6');
$this->addSql('ALTER TABLE shapefile_content DROP CONSTRAINT FK_68937D7CBF396750');
$this->addSql('ALTER TABLE spatial_reference DROP CONSTRAINT FK_494B0150BF396750');
$this->addSql('ALTER TABLE synthesis DROP CONSTRAINT FK_593C04B6BF396750');
$this->addSql('ALTER TABLE text_content DROP CONSTRAINT FK_DA641F96BF396750');
$this->addSql('ALTER TABLE user_primitive DROP CONSTRAINT FK_21BF403F621DFAA6');
$this->addSql('ALTER TABLE video_content DROP CONSTRAINT FK_1B28D904BF396750');
$this->addSql('ALTER TABLE web_content DROP CONSTRAINT FK_166A9E37BF396750');
$this->addSql('ALTER TABLE workbook_content DROP CONSTRAINT FK_2C994A02BF396750');
$this->addSql('ALTER TABLE working_content DROP CONSTRAINT FK_20B592E9BF396750');
$this->addSql('ALTER TABLE working_content_primitive DROP CONSTRAINT FK_12FCC19A621DFAA6');
$this->addSql('ALTER TABLE worksheet_content DROP CONSTRAINT FK_2A901557BF396750');
$this->addSql('ALTER TABLE association DROP CONSTRAINT FK_FD8521CC1645DEA9');
$this->addSql('ALTER TABLE agreement_release DROP CONSTRAINT FK_365E37B9BF396750');
$this->addSql('ALTER TABLE standard_release DROP CONSTRAINT FK_B5E2ED4BBF396750');
$this->addSql('ALTER TABLE archive_content DROP CONSTRAINT FK_93E5D15689329D25');
$this->addSql('ALTER TABLE characteristic DROP CONSTRAINT FK_522FA950FDFF2E92');
$this->addSql('ALTER TABLE document_content DROP CONSTRAINT FK_5AAA967589329D25');
$this->addSql('ALTER TABLE encrypted_resource DROP CONSTRAINT FK_BCEE2A88BF396750');
$this->addSql('ALTER TABLE group_user DROP CONSTRAINT FK_A4C98D39FDFF2E92');
$this->addSql('ALTER TABLE image_content DROP CONSTRAINT FK_6BD5677589329D25');
$this->addSql('ALTER TABLE lexicon DROP CONSTRAINT FK_4313ACFFDFF2E92');
$this->addSql('ALTER TABLE local_resource DROP CONSTRAINT FK_2F05DE8EBF396750');
$this->addSql('ALTER TABLE mtadatacenter_resource DROP CONSTRAINT FK_4D8E1078BF396750');
$this->addSql('ALTER TABLE organization_user DROP CONSTRAINT FK_B49AE8D4FDFF2E92');
$this->addSql('ALTER TABLE primitive DROP CONSTRAINT FK_215FCDDBFDFF2E92');
$this->addSql('ALTER TABLE remote_resource DROP CONSTRAINT FK_6F038B5ABF396750');
$this->addSql('ALTER TABLE shapefile_content DROP CONSTRAINT FK_68937D7C157706BE');
$this->addSql('ALTER TABLE shapefile_content DROP CONSTRAINT FK_68937D7C9C16C8EA');
$this->addSql('ALTER TABLE sharded_resource DROP CONSTRAINT FK_FA5B0E95BF396750');
$this->addSql('ALTER TABLE video_content DROP CONSTRAINT FK_1B28D90489329D25');
$this->addSql('ALTER TABLE web_content DROP CONSTRAINT FK_166A9E3789329D25');
$this->addSql('ALTER TABLE component DROP CONSTRAINT FK_49FEA157EC91FE48');
$this->addSql('ALTER TABLE synthesis_component DROP CONSTRAINT FK_BE49406EEC91FE48');
$this->addSql('ALTER TABLE long_text DROP CONSTRAINT FK_3B61FC92BF396750');
$this->addSql('ALTER TABLE medium_text DROP CONSTRAINT FK_A3940D16BF396750');
$this->addSql('ALTER TABLE message DROP CONSTRAINT FK_B6BD307FF920BBA2');
$this->addSql('ALTER TABLE release DROP CONSTRAINT FK_9E47031D53742F27');
$this->addSql('ALTER TABLE short_text DROP CONSTRAINT FK_5B4C6952BF396750');
$this->addSql('ALTER TABLE text_content DROP CONSTRAINT FK_DA641F96698D3548');
$this->addSql('ALTER TABLE translation DROP CONSTRAINT FK_B469456F698D3548');
$this->addSql('ALTER TABLE group_user_translation DROP CONSTRAINT FK_E2C375179CAA2B25');
$this->addSql('ALTER TABLE organization_user_translation DROP CONSTRAINT FK_EB9932519CAA2B25');
$this->addSql('ALTER TABLE primitive_translation DROP CONSTRAINT FK_70524C219CAA2B25');
$this->addSql('ALTER TABLE group_user DROP CONSTRAINT FK_A4C98D39BF396750');
$this->addSql('ALTER TABLE human_user DROP CONSTRAINT FK_D9CB6736BF396750');
$this->addSql('ALTER TABLE message DROP CONSTRAINT FK_B6BD307F61220EA6');
$this->addSql('ALTER TABLE message DROP CONSTRAINT FK_B6BD307FE92F8F78');
$this->addSql('ALTER TABLE organization_user DROP CONSTRAINT FK_B49AE8D4BF396750');
$this->addSql('ALTER TABLE primitive DROP CONSTRAINT FK_215FCDDB61220EA6');
$this->addSql('ALTER TABLE release DROP CONSTRAINT FK_9E47031D61220EA6');
$this->addSql('ALTER TABLE release DROP CONSTRAINT FK_9E47031DE92F8F78');
$this->addSql('ALTER TABLE user_primitive DROP CONSTRAINT FK_21BF403FA76ED395');
$this->addSql('ALTER TABLE workbook_content_worksheet_content DROP CONSTRAINT FK_261A3857E6809D1D');
$this->addSql('ALTER TABLE working_content_primitive DROP CONSTRAINT FK_12FCC19A380E81A4');
$this->addSql('ALTER TABLE worksheet_content_working_content DROP CONSTRAINT FK_73CB9A8D380E81A4');
$this->addSql('ALTER TABLE workbook_content_worksheet_content DROP CONSTRAINT FK_261A3857C808887F');
$this->addSql('ALTER TABLE worksheet_content_working_content DROP CONSTRAINT FK_73CB9A8DC808887F');
$this->addSql('DROP SEQUENCE association_id_seq CASCADE');
$this->addSql('DROP SEQUENCE characteristic_id_seq CASCADE');
$this->addSql('DROP SEQUENCE lexicon_id_seq CASCADE');
$this->addSql('DROP SEQUENCE message_id_seq CASCADE');
$this->addSql('DROP SEQUENCE primitive_id_seq CASCADE');
$this->addSql('DROP SEQUENCE refresh_tokens_id_seq CASCADE');
$this->addSql('DROP SEQUENCE release_id_seq CASCADE');
$this->addSql('DROP SEQUENCE resource_id_seq CASCADE');
$this->addSql('DROP SEQUENCE text_id_seq CASCADE');
$this->addSql('DROP SEQUENCE translation_id_seq CASCADE');
$this->addSql('DROP SEQUENCE "user_id_seq" CASCADE');
$this->addSql('DROP TABLE agreement_release');
$this->addSql('DROP TABLE archive_content');
$this->addSql('DROP TABLE association');
$this->addSql('DROP TABLE characteristic');
$this->addSql('DROP TABLE chronological_reference');
$this->addSql('DROP TABLE component');
$this->addSql('DROP TABLE component_element');
$this->addSql('DROP TABLE conceptional_reference');
$this->addSql('DROP TABLE content');
$this->addSql('DROP TABLE document_content');
$this->addSql('DROP TABLE element');
$this->addSql('DROP TABLE encrypted_resource');
$this->addSql('DROP TABLE genealogical_reference');
$this->addSql('DROP TABLE group_user');
$this->addSql('DROP TABLE group_user_translation');
$this->addSql('DROP TABLE human_user');
$this->addSql('DROP TABLE human_user_group_user');
$this->addSql('DROP TABLE human_user_organization_user');
$this->addSql('DROP TABLE image_content');
$this->addSql('DROP TABLE image_gallery_content');
$this->addSql('DROP TABLE image_gallery_content_image_content');
$this->addSql('DROP TABLE lexicon');
$this->addSql('DROP TABLE local_resource');
$this->addSql('DROP TABLE long_text');
$this->addSql('DROP TABLE medium_text');
$this->addSql('DROP TABLE message');
$this->addSql('DROP TABLE mtadatacenter_resource');
$this->addSql('DROP TABLE organization_user');
$this->addSql('DROP TABLE organization_user_translation');
$this->addSql('DROP TABLE perspective');
$this->addSql('DROP TABLE primitive');
$this->addSql('DROP TABLE primitive_translation');
$this->addSql('DROP TABLE reference');
$this->addSql('DROP TABLE refresh_tokens');
$this->addSql('DROP TABLE release');
$this->addSql('DROP TABLE remote_resource');
$this->addSql('DROP TABLE resource');
$this->addSql('DROP TABLE shapefile_content');
$this->addSql('DROP TABLE sharded_resource');
$this->addSql('DROP TABLE short_text');
$this->addSql('DROP TABLE spatial_reference');
$this->addSql('DROP TABLE standard_release');
$this->addSql('DROP TABLE synthesis');
$this->addSql('DROP TABLE synthesis_component');
$this->addSql('DROP TABLE text');
$this->addSql('DROP TABLE text_content');
$this->addSql('DROP TABLE translation');
$this->addSql('DROP TABLE "user"');
$this->addSql('DROP TABLE user_primitive');
$this->addSql('DROP TABLE video_content');
$this->addSql('DROP TABLE web_content');
$this->addSql('DROP TABLE workbook_content');
$this->addSql('DROP TABLE workbook_content_worksheet_content');
$this->addSql('DROP TABLE working_content');
$this->addSql('DROP TABLE working_content_primitive');
$this->addSql('DROP TABLE worksheet_content');
$this->addSql('DROP TABLE worksheet_content_working_content');
$this->addSql('DROP TABLE messenger_messages');
$this->addSql('DROP TABLE sessions');
$this->addSql('DROP TABLE cache_items');
$this->addSql('DROP TABLE doctrine_migration_versions');
}
}