From 9c9ee607aaca58d3df1e5d534e332ae36b3c70da Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 27 Jul 2012 03:17:32 +0530 Subject: [PATCH] added db migrations for models changes (run syncdb after) --- migrations/sqldiff250712.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 migrations/sqldiff250712.sql diff --git a/migrations/sqldiff250712.sql b/migrations/sqldiff250712.sql new file mode 100644 index 0000000..7db8bcf --- /dev/null +++ b/migrations/sqldiff250712.sql @@ -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`) +) +; +