Permalink
Browse files

web backend: Fix for adding acl groups in Django Admin

   - added id field to ManyToMany tables

Signed-off-by: Frank Becker <Frank.Becker@amd.com>


git-svn-id: svn://test.kernel.org/autotest/trunk@5483 592f7852-d20e-0410-864c-8624ca9c26a4
  • Loading branch information...
1 parent f234c9d commit 9be1310fe64adae1f952dd2356da1366fbe55a6c lmr committed Jul 5, 2011
View
7 frontend/migrations/067_add_id_afe_acl_groups_hosts.py
@@ -0,0 +1,7 @@
+UP_SQL = """
+ALTER TABLE afe_acl_groups_hosts ADD COLUMN id integer AUTO_INCREMENT NOT NULL PRIMARY KEY FIRST;
+"""
+
+DOWN_SQL = """
+ALTER TABLE afe_acl_groups_hosts DROP COLUMN id;
+"""
View
7 frontend/migrations/068_add_id_afe_acl_groups_users.py
@@ -0,0 +1,7 @@
+UP_SQL = """
+ALTER TABLE afe_acl_groups_users ADD COLUMN id integer AUTO_INCREMENT NOT NULL PRIMARY KEY FIRST;
+"""
+
+DOWN_SQL = """
+ALTER TABLE afe_acl_groups_users DROP COLUMN id;
+"""

0 comments on commit 9be1310

Please sign in to comment.