itf/migrations/sqldiff270712.sql
2012-07-27 23:22:50 +05:30

21 lines
518 B
PL/PgSQL

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;