add sql migrations

This commit is contained in:
Sanj 2012-07-27 23:22:50 +05:30
parent 1dd9ea2b6f
commit b48887e449

View File

@ -0,0 +1,20 @@
drop table itfprofiles_groupbuzzitem;
drop table itfprofiles_personbuzzitem;
BEGIN;
-- Application: itfprofiles
-- Model: BuzzItem
-- Table missing: itfprofiles_buzzitem
-- Model: Location
ALTER TABLE `itfprofiles_location`
MODIFY `object_id` integer UNSIGNED;
-- Model: Award
ALTER TABLE `itfprofiles_award`
ADD `content_type_id` integer;
ALTER TABLE `itfprofiles_award`
ADD `object_id` integer UNSIGNED;
CREATE INDEX `itfprofiles_award_content_type_id_idx`
ON `itfprofiles_award` (`content_type_id`);
COMMIT;