fix migrations
This commit is contained in:
parent
8535d120a4
commit
a8db144383
@ -1,7 +1,7 @@
|
|||||||
-- CREATE A MIGRATION ENTRY
|
-- CREATE A MIGRATION ENTRY
|
||||||
INSERT INTO `DB_MIGRATIONS` (`MIGRATION`) VALUES ('20190405_cnr_chat_ban_creation');
|
INSERT INTO `DB_MIGRATIONS` (`MIGRATION`) VALUES ('20190405_cnr_chat_ban_creation');
|
||||||
|
|
||||||
--BEGIN
|
-- BEGIN
|
||||||
|
|
||||||
-- CREATE TABLE
|
-- CREATE TABLE
|
||||||
CREATE TABLE IF NOT EXISTS `CHAT_BANS` (
|
CREATE TABLE IF NOT EXISTS `CHAT_BANS` (
|
||||||
|
@ -4,4 +4,5 @@ INSERT INTO `DB_MIGRATIONS` (`MIGRATION`) VALUES ('20190530_cnr_realestate_ask')
|
|||||||
-- BEGIN
|
-- BEGIN
|
||||||
|
|
||||||
-- -- ALTER COLUMN TO BE INT INSTEAD OF FLOAT
|
-- -- 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`;
|
Loading…
Reference in New Issue
Block a user