[MERGE]
[odoo/odoo.git] / debian / patches / 02-migrate.patch
1 Author: Brian DeRocher <brian@derocher.org>
2 Description: Correct SQL syntax in migrate script (Closes: #467517).
3
4 diff -Naurp openerp-server.orig/doc/migrate/3.4.0-4.0.0/pre.py openerp-server/doc/migrate/3.4.0-4.0.0/pre.py
5 --- openerp-server.orig/doc/migrate/3.4.0-4.0.0/pre.py  2008-11-03 21:33:56.000000000 +0000
6 +++ openerp-server/doc/migrate/3.4.0-4.0.0/pre.py       2008-11-09 09:09:49.000000000 +0000
7 @@ -123,7 +123,7 @@ cr.commit()
8  
9  for line in (
10          "ALTER TABLE ir_module_module ADD demo BOOLEAN",
11 -        "ALTER TABLE ir_module_module SET demo DEFAULT False",
12 +        "ALTER TABLE ir_module_module alter column demo set DEFAULT False",
13          "DELETE FROM ir_values WHERE VALUE LIKE '%,False'",
14          """UPDATE ir_ui_view set arch='<?xml version="1.0"?><tree string="Menu" toolbar="1"><field icon="icon" name="name"/></tree>' where name='ir.ui.menu.tree' and type='tree' and field_parent='child_id'""",
15      ):