fix migrations

This commit is contained in:
Lorenc Pekaj 2019-05-31 19:45:38 +10:00
parent 8535d120a4
commit a8db144383
2 changed files with 3 additions and 2 deletions

View File

@ -4,4 +4,5 @@ INSERT INTO `DB_MIGRATIONS` (`MIGRATION`) VALUES ('20190530_cnr_realestate_ask')
-- BEGIN
-- -- ALTER COLUMN TO BE INT INSTEAD OF FLOAT
ALTER TABLE `house_listings` CHANGE COLUMN `ASK` `ASK` INT NULL DEFAULT NULL AFTER `USER_ID`;
ALTER TABLE `HOUSE_LISTINGS` CHANGE COLUMN `ASK` `ASK` INT NULL DEFAULT NULL AFTER `USER_ID`;
TRUNCATE TABLE `HOUSE_LISTINGS`;