added db migrations for models changes (run syncdb after)

This commit is contained in:
Sanj 2012-07-27 03:17:32 +05:30
parent efab65b50f
commit 9c9ee607aa

View File

@ -0,0 +1,18 @@
drop table itfprofiles_production;
drop table itfprofiles_theatregroup;
drop table itfprofiles_play;
CREATE TABLE `itfprofiles_person_locations` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
`person_id` integer NOT NULL,
`location_id` integer NOT NULL,
UNIQUE (`person_id`, `location_id`)
)
;
CREATE TABLE `itfprofiles_person_languages` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
`person_id` integer NOT NULL,
`language_id` integer NOT NULL,
UNIQUE (`person_id`, `language_id`)
)
;