From ce12a7397f6d2e02626155bb9c3685de96044689 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 5 Sep 2017 01:46:45 +0200 Subject: [PATCH] [FIX] base: remove early size limit on author field The default size limits set in base.sql are eventually superseded by the actual limits (or absence of) when the DB schema is synchronized with the Python model definitions. However the list of modules (name, authors, descriptions, dependencies) is loaded before this can happen. The length of the author field is one case that can easily crash the database bootstrap process at that point, should a module with a long author name be present in the addons path. After schema sync, that size limit is lifted entirely (although Odoo Apps does limit the max author name length to 512 at the moment, to prevent abuse). Fixes #5850 --- openerp/addons/base/base.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/base.sql b/openerp/addons/base/base.sql index 9b42bacd794..13f90d47e06 100644 --- a/openerp/addons/base/base.sql +++ b/openerp/addons/base/base.sql @@ -85,7 +85,7 @@ CREATE TABLE ir_module_module ( website character varying(256), summary character varying(256), name character varying(128) NOT NULL, - author character varying(128), + author character varying, icon varchar, state character varying(16), latest_version character varying(64),