diff --git a/dbmigrate/migrations/20160408010912_alter_table_event_log_fields_to_mediumtext.migration b/dbmigrate/migrations/20160408010912_alter_table_event_log_fields_to_mediumtext.migration new file mode 100644 index 000000000..ab3e4a03b --- /dev/null +++ b/dbmigrate/migrations/20160408010912_alter_table_event_log_fields_to_mediumtext.migration @@ -0,0 +1,20 @@ +#-*- coding:utf-8 -*- +SQL_UP = u""" +ALTER TABLE `event_log` +CHANGE COLUMN `evento` `evento` MEDIUMTEXT NOT NULL COMMENT '' , +CHANGE COLUMN `acao` `acao` MEDIUMTEXT NULL DEFAULT NULL COMMENT '' , +CHANGE COLUMN `funcionalidade` `funcionalidade` MEDIUMTEXT NULL DEFAULT NULL COMMENT '' , +CHANGE COLUMN `parametro_anterior` `parametro_anterior` MEDIUMTEXT NULL DEFAULT NULL COMMENT '' , +CHANGE COLUMN `parametro_atual` `parametro_atual` MEDIUMTEXT NULL DEFAULT NULL COMMENT '' ; + +""" + +SQL_DOWN = u""" + +ALTER TABLE `event_log` +CHANGE COLUMN `evento` `evento` TEXT NOT NULL COMMENT '' , +CHANGE COLUMN `acao` `acao` TEXT NULL DEFAULT NULL COMMENT '' , +CHANGE COLUMN `funcionalidade` `funcionalidade` TEXT NULL DEFAULT NULL COMMENT '' , +CHANGE COLUMN `parametro_anterior` `parametro_anterior` TEXT NULL DEFAULT NULL COMMENT '' , +CHANGE COLUMN `parametro_atual` `parametro_atual` TEXT NULL DEFAULT NULL COMMENT '' ; +"""