Running D7.12 on PostgreSQL 9.1.
Steps to reproduce:
1) install commerce and basic coupon
2) don't do anything else (don't create coupons etc), just deactivate the basic coupon module
3) uninstall the basic coupon module
4) activate the basic coupon module again in admin/modules
This error is displayed:
PDOException: SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation "field_revision_commerce_coupon_code_commerce_coupon_code_format" already exists: CREATE INDEX "field_revision_commerce_coupon_code_commerce_coupon_code_format_idx" ON {field_revision_commerce_coupon_code} ("commerce_coupon_code_format"); Array ( ) in db_create_table() (line 2688 of /srv/http/d7.rovin.be/includes/database/database.inc).
Comment | File | Size | Author |
---|---|---|---|
#6 | commerce_coupon-uninstall_error-1431782-6.patch | 1.49 KB | lachezar.valchev |
Comments
Comment #1
bart.hanssens CreditAttribution: bart.hanssens commentedCould be that Postgresql limits the length of a name to 64-1 bytes (http://www.postgresql.org/docs/9.1/interactive/sql-syntax-lexical.html#S...)
Comment #2
bart.hanssens CreditAttribution: bart.hanssens commentedComment #3
pcambraAgreed, we have uninstall/reinstall issues related mostly with fields.
Comment #4
pcambraJust pushed a big change to fix the uninstall issues.
Outlining the change, what I've just finished was:
Hope now we don't have mode uninstall issues.
Comment #6
lachezar.valchev CreditAttribution: lachezar.valchev at FFW commentedHi,
I just want to add a patch that was created based on this thread. Hope it can help anyone struggling with that issue.