Can't do constraint module_certificate_uniq on new base.
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) | Status tracked in Trunk | |||||
Trunk |
Fix Released
|
Undecided
|
Unassigned | |||
Odoo Server (MOVED TO GITHUB) | Status tracked in Trunk | |||||
Trunk |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am using latest 5.0 version of Open Object Server.
When you create a new database, you will get this:
[2009-10-21 00:52:05,254] DEBUG:orm:creating new column published_version of table ir_module_module
[2009-10-21 00:52:05,262] DEBUG:orm:creating new column reports_by_module of table ir_module_module
[2009-10-21 00:52:05,275] DEBUG:sql:bad query: alter table "ir_module_module" add constraint "ir_module_
/home/zyphos/
if hasattr(e, 'message'):
/home/zyphos/
return ustr(e.message)
[2009-10-21 00:52:05,275] DEBUG:sql:[01]: ERREUR: n'a pas pu créer l'index unique « ir_module_
[2009-10-21 00:52:05,275] DEBUG:sql:[02]: DETAIL: La table contient des valeurs dupliquées.
[2009-10-21 00:52:05,275] WARNING:orm:[01]: unable to add 'unique (certificate)' constraint on table ir_module_module !
[2009-10-21 00:52:05,276] WARNING:orm:[02]: If you want to have it, you should update the records and execute manually:
[2009-10-21 00:52:05,276] WARNING:orm:[03]: ALTER table ir_module_module ADD CONSTRAINT ir_module_
[2009-10-21 00:52:06,114] DEBUG:orm:creating new column rml_footer1 of table res_company
[2009-10-21 00:52:06,116] DEBUG:orm:creating new column rml_footer2 of table res_company
[2009-10-21 00:52:06,121] DEBUG:orm:setting default value of new column rml_header of table res_company
Related branches
Changed in openobject-server: | |
status: | New → Invalid |
summary: |
- [5.0] Can't do constraint module_certificate_uniq on new base. + Can't do constraint module_certificate_uniq on new base. |
Hello Zyphos,
This could be the problem due to your existing modules have a same certificate.
Would you please check and run this query?
select certificate, count(* ) from ir_module_module group by certificate having count(*)>2;
If the same certificate (rather than False/Null) appears twice, change the values.
Thanks.