Error al instalar (nueva BDD)

Bug #900409 reported by Juan Márquez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
InfiniDB Community
Invalid
Undecided
Unassigned

Bug Description

Al instalar una BDD desde 0 incluyendo account_management, me aparecieron los siguientes errores:

1
[2011-12-05 13:35:15,580][test_v3] WARNING:orm.schema:Table 'res_company': unable to set a NOT NULL constraint on column 'pattern' !
If you want to have it, you should update the records and execute manually:
ALTER TABLE res_company ALTER COLUMN pattern SET NOT NULL

2
[2011-12-05 13:35:15,798][test_v3] ERROR:db.cursor:Programming error: no existe la columna «property_account_partner» en la clave
, in query ALTER TABLE "res_partner_account" ADD CONSTRAINT "res_partner_account_account_uniq" unique(property_account_partner)
[2011-12-05 13:35:15,799][test_v3] WARNING:orm.schema:Table 'res_partner_account': unable to add 'unique(property_account_partner)' constraint !
 If you want to have it, you should update the records and execute manually:
ALTER TABLE "res_partner_account" ADD CONSTRAINT "res_partner_account_account_uniq" unique(property_account_partner)

Los solucioné con los siguientes cambios:

1 (En account_company / class res_company(osv.osv):)

    _defaults = {'pattern':'1'}

Agregue un default para el campo pattern

2 (En account_partner.py / class res_partner_account(osv.osv))

    _sql_constraints = [
                        ('name_uniq','unique(name)', 'Otro registro ya tiene este nombre!'),
                        #~ ('account_uniq','unique(property_account_partner)', 'Otro registro ya esta usando esta Cuenta!'),
                        ]

Comente temporalmente la línea del sql_constraints

Revision history for this message
Robert Adams (radams-calpont) wrote :

Hi,

Please review the Calpont InfiniDB® Concepts Guide. Currently there is no support for column-level constraints.

The documentation is available at:

http://infinidb.org/downloads/cat_view/39-documentation

Thank you!

Changed in infinidb:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.