From 217c31249b8219cc9786cb8f9205702d5d5e039a Mon Sep 17 00:00:00 2001 From: ced <> Date: Mon, 11 Dec 2006 11:47:20 +0000 Subject: [PATCH] Add demo column to ir_module_module bzr revid: ced-5a30786245ce32388ccc8aa18b37df0b68491c8a --- doc/migrate/3.4.0-4.0.0/pre.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/migrate/3.4.0-4.0.0/pre.py b/doc/migrate/3.4.0-4.0.0/pre.py index ef0c92b6991..22c23bbf4db 100644 --- a/doc/migrate/3.4.0-4.0.0/pre.py +++ b/doc/migrate/3.4.0-4.0.0/pre.py @@ -93,4 +93,13 @@ def change_column(cr, table, column, new_type, copy): change_column(cr, 'crm_case', 'date_closed', 'timestamp', True) cr.commit() +# ----------------------------------------------------- # +# add some fields (which cannot be added automatically) # +# ----------------------------------------------------- # + +for line in ( + "ALTER TABLE ir_module_module ADD demo BOOLEAN SET DEFAULT False", + ): + cr.execute(line) + cr.close()