Skip to content

Commit

Permalink
add alter_table_event_log_fields_to_mediumtext.migration
Browse files Browse the repository at this point in the history
  • Loading branch information
edersonbrilhante committed Apr 8, 2016
1 parent 8cd2157 commit 6c9527a
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 '' ;
"""

0 comments on commit 6c9527a

Please sign in to comment.