Problem/Motivation
The schema API documentation lists "char:normal" as an available data type. However, this data type is currently not supported for sqlite, so schemas using this data type will not be installed properly.
Proposed resolution
Map char:normal to the SQLite CHAR
data type. #1177284-3: Add support to sqlite for char:normal type implements this fix.
Remaining tasks
Once patch is committed, update http://drupal.org/node/159605 to indicate the type is now supported. (It was changed to "unsupported" after this issue was reported.)
User interface changes
None.
API changes
None.
Original report by @Bobík
After enable the module you can see this messages:
Notice: Undefined index: char:normal ve funkci DatabaseSchema_sqlite->processField() (řádek: 127 v souboru /Users/Bobik/Sites/drupal-7/includes/database/sqlite/schema.inc).
Notice: Undefined index: char:normal ve funkci DatabaseSchema_sqlite->processField() (řádek: 127 v souboru /Users/Bobik/Sites/drupal-7/includes/database/sqlite/schema.inc).
Notice: Undefined index: char:normal ve funkci DatabaseSchema_sqlite->processField() (řádek: 127 v souboru /Users/Bobik/Sites/drupal-7/includes/database/sqlite/schema.inc).
Notice: Undefined index: char:normal ve funkci DatabaseSchema_sqlite->processField() (řádek: 127 v souboru /Users/Bobik/Sites/drupal-7/includes/database/sqlite/schema.inc).
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal-1177284.patch | 1012 bytes | ohnobinki |
Comments
Comment #1
ohnobinki CreditAttribution: ohnobinki commented+ (seeing a similar thing with ubercart's uc_store schema.)
Comment #2
ohnobinki CreditAttribution: ohnobinki commentedData Types documents the availability of a char:normal type. DatabaseSchema_sqlite::getFieldTypeMap() does not yet support this in drupal7 nor drupal8.
Both the modules OAuth (_oauth_common_consumer_schema()) and ubercart's uc_store module (uc_store_schema()) make use of char:normal.
Errors from uc_store's uc_store_schema():
I believe that mapping this type onto 'CHAR' makes the most sense and will add a patch which does that. This bug affects both drupal-8.x and drupal-7.x.
Comment #3
ohnobinki CreditAttribution: ohnobinki commentedThis patch seems to fix the issue for me and makes uc_store (from ubercart) more functional on sqlite.
Comment #4
ohnobinki CreditAttribution: ohnobinki commentedComment #5
longwave#3 fixes the errors in uc_store for me too.
Comment #6
Damien Tournoud CreditAttribution: Damien Tournoud commented+1 from me.
Comment #7
xjmAdded summary.
Comment #8
webchickCommitted and pushed to 8.x and 7.x! Thanks!
Comment #9.0
(not verified) CreditAttribution: commentedUpdated issue summary.