increase query description length (#1055)

Closes #1053
This commit is contained in:
Victor Vrantchan 2017-01-20 08:56:41 -05:00 committed by GitHub
parent 3c6b59197d
commit 02a6fe6870

View File

@ -0,0 +1,21 @@
package tables
import "database/sql"
func init() {
MigrationClient.AddMigration(Up_20170119234632, Down_20170119234632)
}
func Up_20170119234632(tx *sql.Tx) error {
_, err := tx.Exec(
"ALTER TABLE `queries` MODIFY `description` TEXT NOT NULL;",
)
return err
}
func Down_20170119234632(tx *sql.Tx) error {
_, err := tx.Exec(
"ALTER TABLE `queries` MODIFY `description` VARCHAR(255) NOT NULL;",
)
return err
}