From b48887e4498d6b82dd1b54ceb311d24c36a77f8c Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 27 Jul 2012 23:22:50 +0530 Subject: [PATCH] add sql migrations --- migrations/sqldiff270712.sql | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 migrations/sqldiff270712.sql diff --git a/migrations/sqldiff270712.sql b/migrations/sqldiff270712.sql new file mode 100644 index 0000000..eeaf46e --- /dev/null +++ b/migrations/sqldiff270712.sql @@ -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;