mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
parent
3c6b59197d
commit
02a6fe6870
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user