<?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 Version20230328052755 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('ALTER TABLE campanias DROP FOREIGN KEY FK_F3A27D0CA08F3969');
$this->addSql('ALTER TABLE campos DROP FOREIGN KEY FK_2D2492CAA08F3969');
$this->addSql('ALTER TABLE mailing DROP FOREIGN KEY FK_3ED9315EDB38439E');
$this->addSql('ALTER TABLE mailing DROP FOREIGN KEY FK_3ED9315EC6F69FB');
$this->addSql('ALTER TABLE peru_map DROP FOREIGN KEY FK_98A6829398260155');
$this->addSql('ALTER TABLE peru_map DROP FOREIGN KEY FK_98A6829353C55F64');
$this->addSql('ALTER TABLE valores DROP FOREIGN KEY FK_680898D3C6F69FB');
$this->addSql('ALTER TABLE valores DROP FOREIGN KEY FK_680898D3A17A385C');
$this->addSql('DROP TABLE campanias');
$this->addSql('DROP TABLE campos');
$this->addSql('DROP TABLE mailing');
$this->addSql('DROP TABLE peru_map');
$this->addSql('DROP TABLE plantillas');
$this->addSql('DROP TABLE redirecciones');
$this->addSql('DROP TABLE valores');
$this->addSql('ALTER TABLE about CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE chiclayo_lot_list CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE chiclayo_lot_map CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE city CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE common_area CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE ext_translations CHANGE object_class object_class VARCHAR(191) NOT NULL');
$this->addSql('CREATE INDEX general_translations_lookup_idx ON ext_translations (object_class, foreign_key)');
$this->addSql('ALTER TABLE feature CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE flat CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE form_land_sale CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE form_quote CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE form_referred CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE form_subscription CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE home CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE ica_lot_map CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE info CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE info_contact CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE info_error CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE info_form CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE info_land_sale CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE info_map CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE info_property CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE info_quote_lead CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE info_referred CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE landing_schedule CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE legal_cookie_policy CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE legal_financing CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE legal_information CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE legal_privacy_policy CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE legal_term_condition CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE legal_use_condition CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE location CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE log_quote CHANGE form_full_name form_full_name LONGTEXT NOT NULL COMMENT \'Nombre completo de cliente\', CHANGE dynamics_response dynamics_response LONGTEXT DEFAULT NULL COMMENT \'Respuesta de Dynamics\', CHANGE crm_response crm_response LONGTEXT DEFAULT NULL COMMENT \'Respuesta de CRM Inmobiliario\', CHANGE observation observation LONGTEXT DEFAULT NULL COMMENT \'Observaciones en caso de error\', CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE log_quote_delete CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE pay_auto CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE pay_here CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE pay_online CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE piura_house_list CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE piura_house_map CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE piura_techo_map CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE property CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE property_map CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE property_type CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE region CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE related CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE sap_zone CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE stage CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE state CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE thanks_land_sale CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE thanks_quote CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE thanks_referred CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE thanks_subscription CHANGE created created DATETIME DEFAULT NULL, CHANGE modified modified DATETIME DEFAULT NULL, CHANGE created_user created_user INT DEFAULT NULL, CHANGE modified_user modified_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE zero_seo CHANGE social_descripcion social_descripcion VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE campanias (id INT AUTO_INCREMENT NOT NULL, plantilla_id INT DEFAULT NULL, titulo VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci` COMMENT \'Nombre de la campaña\', saludo_whatsapp VARCHAR(255) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'Texto de Mensaje para el whatsapp\', respuesta_asunto VARCHAR(255) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'Asunto de Mensaje de respuesta (predefinido)\', respuesta_cuerpo LONGTEXT CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'Cuerpo de mensaje de respuesta (predefinido)\', proyecto VARCHAR(255) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'Nombre del Proyecto\', slug VARCHAR(128) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`, orden INT DEFAULT 1 NOT NULL COMMENT \'Ordenamiento entre campañas\', activo TINYINT(1) DEFAULT 1 NOT NULL COMMENT \'1:Activo / 0: Inactivo\', created DATETIME NOT NULL, modified DATETIME NOT NULL, created_user INT NOT NULL, modified_user INT NOT NULL, UNIQUE INDEX UNIQ_F3A27D0C989D9B62 (slug), INDEX IDX_F3A27D0CA08F3969 (plantilla_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'Campañas de Correo\' ');
$this->addSql('CREATE TABLE campos (id INT AUTO_INCREMENT NOT NULL, plantilla_id INT DEFAULT NULL, titulo VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci` COMMENT \'Nombre del campo\', slug VARCHAR(128) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`, tipo VARCHAR(155) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci` COMMENT \'tipo de campo. ej: text, texarea\', `label` VARCHAR(155) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'Label del campo\', helptext VARCHAR(255) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'Texto de ayuda al momento de llenar el valor del campo\', orden INT DEFAULT 1 NOT NULL COMMENT \'Ordenamiento entre campos\', activo TINYINT(1) DEFAULT 1 NOT NULL COMMENT \'1:Activo / 0: Inactivo\', created DATETIME NOT NULL, modified DATETIME NOT NULL, created_user INT NOT NULL, modified_user INT NOT NULL, INDEX IDX_2D2492CAA08F3969 (plantilla_id), UNIQUE INDEX UNIQ_2D2492CA989D9B62 (slug), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'Campos de Formulario Generales\' ');
$this->addSql('CREATE TABLE mailing (id INT AUTO_INCREMENT NOT NULL, campania_id INT DEFAULT NULL, usuario_id INT DEFAULT NULL, nombre_cliente VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci` COMMENT \'Nombre del cliente\', email_cliente VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci` COMMENT \'Nombre del cliente\', nombre_proyecto VARCHAR(255) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'Nombre del Proyecto\', asunto VARCHAR(255) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'Asunto del mensaje\', fecha_enviado DATETIME DEFAULT NULL COMMENT \'Fecha de Mail Enviado\', fecha_leido DATETIME DEFAULT NULL COMMENT \'Fecha de Mail Leído\', created DATETIME NOT NULL, modified DATETIME NOT NULL, created_user INT NOT NULL, modified_user INT NOT NULL, INDEX IDX_3ED9315EC6F69FB (campania_id), INDEX IDX_3ED9315EDB38439E (usuario_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'Registro de envío de emails\' ');
$this->addSql('CREATE TABLE peru_map (id INT AUTO_INCREMENT NOT NULL, region_id INT DEFAULT NULL, map_id INT DEFAULT NULL, active TINYINT(1) DEFAULT 1 NOT NULL COMMENT \'Mostrar? 1: Sí, 0:No\', cities VARCHAR(155) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'imagen de item de mapa\', coorx VARCHAR(55) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'posición X de item de mapa\', coory VARCHAR(55) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'posición Y de item de mapa\', created DATETIME NOT NULL, modified DATETIME NOT NULL, created_user INT NOT NULL, modified_user INT NOT NULL, INDEX IDX_98A6829398260155 (region_id), INDEX IDX_98A6829353C55F64 (map_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'Tabla intermedia de puntos de mapa y regiones\' ');
$this->addSql('CREATE TABLE plantillas (id INT AUTO_INCREMENT NOT NULL, titulo VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci` COMMENT \'Nombre de la plantilla\', archivo VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci` COMMENT \'Url de ubicación de la plantilla\', imagen VARCHAR(255) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_unicode_ci` COMMENT \'Url de Imagen(foto) de la plantilla\', orden INT DEFAULT 1 NOT NULL COMMENT \'Ordenamiento entre plantillas\', activo TINYINT(1) DEFAULT 1 NOT NULL COMMENT \'1:Activa / 0: Inactiva\', created DATETIME NOT NULL, modified DATETIME NOT NULL, created_user INT NOT NULL, modified_user INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'Plantillas de mailing\' ');
$this->addSql('CREATE TABLE redirecciones (id INT AUTO_INCREMENT NOT NULL, desde VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`, para VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('CREATE TABLE valores (id INT AUTO_INCREMENT NOT NULL, campo_id INT DEFAULT NULL, campania_id INT DEFAULT NULL, valor LONGTEXT CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci` COMMENT \'Valor del campo en plantilla\', created DATETIME NOT NULL, modified DATETIME NOT NULL, created_user INT NOT NULL, modified_user INT NOT NULL, INDEX IDX_680898D3A17A385C (campo_id), INDEX IDX_680898D3C6F69FB (campania_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'Valores de los campos en plantilla\' ');
$this->addSql('ALTER TABLE campanias ADD CONSTRAINT FK_F3A27D0CA08F3969 FOREIGN KEY (plantilla_id) REFERENCES plantillas (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE campos ADD CONSTRAINT FK_2D2492CAA08F3969 FOREIGN KEY (plantilla_id) REFERENCES plantillas (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE mailing ADD CONSTRAINT FK_3ED9315EDB38439E FOREIGN KEY (usuario_id) REFERENCES usuarios (id) ON DELETE SET NULL');
$this->addSql('ALTER TABLE mailing ADD CONSTRAINT FK_3ED9315EC6F69FB FOREIGN KEY (campania_id) REFERENCES campanias (id) ON DELETE SET NULL');
$this->addSql('ALTER TABLE peru_map ADD CONSTRAINT FK_98A6829398260155 FOREIGN KEY (region_id) REFERENCES region (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE peru_map ADD CONSTRAINT FK_98A6829353C55F64 FOREIGN KEY (map_id) REFERENCES info_map (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE valores ADD CONSTRAINT FK_680898D3C6F69FB FOREIGN KEY (campania_id) REFERENCES campanias (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE valores ADD CONSTRAINT FK_680898D3A17A385C FOREIGN KEY (campo_id) REFERENCES campos (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE about CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE chiclayo_lot_list CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE chiclayo_lot_map CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE city CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE common_area CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('DROP INDEX general_translations_lookup_idx ON ext_translations');
$this->addSql('ALTER TABLE ext_translations CHANGE object_class object_class VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE feature CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE flat CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE form_land_sale CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE form_quote CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE form_referred CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE form_subscription CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE home CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE ica_lot_map CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE info CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE info_contact CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE info_error CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE info_form CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE info_land_sale CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE info_map CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE info_property CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE info_quote_lead CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE info_referred CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE landing_schedule CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE legal_cookie_policy CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE legal_financing CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE legal_information CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE legal_privacy_policy CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE legal_term_condition CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE legal_use_condition CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE location CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE log_quote CHANGE form_full_name form_full_name TEXT NOT NULL COMMENT \'Nombre completo de cliente\', CHANGE dynamics_response dynamics_response TEXT DEFAULT NULL COMMENT \'Respuesta de Dynamics\', CHANGE crm_response crm_response TEXT DEFAULT NULL COMMENT \'Respuesta de CRM Inmobiliario\', CHANGE observation observation TEXT DEFAULT NULL COMMENT \'Observaciones en caso de error\', CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE log_quote_delete CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE pay_auto CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE pay_here CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE pay_online CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE piura_house_list CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE piura_house_map CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE piura_techo_map CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE property CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE property_map CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE property_type CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE region CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE related CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE sap_zone CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE stage CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE state CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE thanks_land_sale CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE thanks_quote CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE thanks_referred CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE thanks_subscription CHANGE created created DATETIME NOT NULL, CHANGE modified modified DATETIME NOT NULL, CHANGE created_user created_user INT NOT NULL, CHANGE modified_user modified_user INT NOT NULL');
$this->addSql('ALTER TABLE zero_seo CHANGE social_descripcion social_descripcion LONGTEXT DEFAULT NULL');
}
}