summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMantavya Gajjar <mga@tinyerp.com>2007-03-29 07:20:07 +0000
committerMantavya Gajjar <mga@tinyerp.com>2007-03-29 07:20:07 +0000
commit867fae5dd749d7452464fdac59fdcd4bc75f999a (patch)
tree386ab1ed6b65d6b43e22ffd438aa787191d6f5c0 /doc
parent3e2e9ae6d39f6cf99402fa84849f9d3755395f3e (diff)
BASE: add perm_id to ir_model and ir_model_fields
bzr revid: mga@tinyerp.com-1e1ec255e5683c4d29674d7332b4cde24b37500d
Diffstat (limited to 'doc')
-rw-r--r--doc/migrate/4.0.0-4.1.0/pre.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/migrate/4.0.0-4.1.0/pre.py b/doc/migrate/4.0.0-4.1.0/pre.py
index a7934bb8b91..1d325a617be 100644
--- a/doc/migrate/4.0.0-4.1.0/pre.py
+++ b/doc/migrate/4.0.0-4.1.0/pre.py
@@ -102,4 +102,12 @@ cr.commit()
cr.execute("ALTER TABLE res_partner_bank RENAME iban TO number")
cr.commit()
+# ------------------------------------------- #
+# Add perm_id to ir_model and ir_model_fields #
+# ------------------------------------------- #
+
+cr.execute("ALTER TABLE ir_model ADD perm_id int references perm on delete set null")
+cr.execute("ALTER TABLE ir_model_fields ADD perm_id int references perm on delete set null")
+cr.commit()
+
cr.close