odoo/openerp/osv
Olivier Dony a5b51c2be7 [IMP] orm._auto_init: avoid copying VARCHAR column when increasing size, alter in-place instead + better temporary names
Historically, we used a copy+rename technique during
table upgrades to alter varchar columns sizes.
This was only necessary to permit downsizing
columns, which we do not want to do anymore (it is
too dangerous, so has to be done explicitly when
required).

Switching to a pure ALTER COLUMN TYPE is simpler
and also much faster for large tables.

Also fixed the inappropriate name used for
temporary columns during column type casting
(which *does* require the copy+rename technique).

bzr revid: odo@openerp.com-20140217164239-0iou3dsiea3foabb
2014-02-17 17:42:39 +01:00
..
__init__.py [REM] Deleted .apidoc lines. 2013-02-12 15:24:10 +01:00
expression.py [MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141-7e8bv8ordqqsswh7 2014-02-06 12:02:20 +01:00
fields.py [FIX] fields: small python code fix 2014-01-23 10:46:46 +01:00
orm.py [IMP] orm._auto_init: avoid copying VARCHAR column when increasing size, alter in-place instead + better temporary names 2014-02-17 17:42:39 +01:00
osv.py [IMP] osv: display full traceback in terminal (not client side) when a check fails instead of minimal error 2014-01-08 15:05:54 +01:00
query.py [REM] Deleted .apidoc lines. 2013-02-12 15:24:10 +01:00