-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add alter_table_event_log_fields_to_mediumtext.migration
- Loading branch information
edersonbrilhante
committed
Apr 8, 2016
1 parent
8cd2157
commit 6c9527a
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
dbmigrate/migrations/20160408010912_alter_table_event_log_fields_to_mediumtext.migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 '' ; | ||
""" |