Closed (works as designed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2011 at 00:05 UTC
Updated:
28 Jul 2017 at 15:37 UTC
Jump to comment: Most recent
Comments
Comment #1
arlinsandbulte commentedTry the dev version of Date.
From the Date project home page:
"The best combination of modules is to use the -dev versions of Views, CTools, Date, & Calendar. Please don't report issues unless you have tried the latest current -dev versions of all these modules."
Comment #2
jthermane24 commentedIssue still persistent after upgrading all modules to -dev versions.
Comment #3
karens commentedIf you have altered the schema with some patch, I am not surprised you are having trouble. I have no idea what "the schema hook has the fix that I found at ..." means. Does this mean you altered the code of Date module? Does this mean you have created a custom module that is trying to use this schema? Either one will fail. Date already has the schema correctly configured and if you change it you will break it. And if you try to do something with it in custom code you will collide with what Date is doing.
Comment #4
jthermane24 commentedI'm not sure what happened but an update of the module got rid of this error.
I'm sorry that sentence made no sense at all. The only explanation that I can give was that it was in the middle of one of my like 10 hour development sessions and my brain was no longer working. So sorry, thanks for the help.
Comment #5
nzxt commentedI am also having the exact problem of "No Schema Type for Mysql Datetime". I created a new content type called event with 3 fields a title, body and start date. Also tried using debut event module which produces same erros. The warning showing on the configuration pages are as follows:
• Field field_data_field_event_date.field_event_date_value: no Schema type for mysql type datetime.
• Field field_data_field_event_date.field_event_date_value2: no Schema type for mysql type datetime.
• Field field_data_field_start_date.field_start_date_value: no Schema type for mysql type datetime.
• Field field_data_field_start_date.field_start_date_value2: no Schema type for mysql type datetime.
• Field field_revision_field_event_date.field_event_date_value: no Schema type for mysql type datetime.
• Field field_revision_field_event_date.field_event_date_value2: no Schema type for mysql type datetime.
• Field field_revision_field_start_date.field_start_date_value: no Schema type for mysql type datetime.
• Field field_revision_field_start_date.field_start_date_value2: no Schema type for mysql type datetime.
• field_data_field_event_date.field_event_date_value: no type for Schema type datetime:normal.
• Field field_data_field_event_date.field_event_date_value: no Schema type for type datetime.
• field_data_field_event_date.field_event_date_value2: no type for Schema type datetime:normal.
• Field field_data_field_event_date.field_event_date_value2: no Schema type for type datetime.
• field_revision_field_event_date.field_event_date_value: no type for Schema type datetime:normal.
• Field field_revision_field_event_date.field_event_date_value: no Schema type for type datetime.
• field_revision_field_event_date.field_event_date_value2: no type for Schema type datetime:normal.
• Field field_revision_field_event_date.field_event_date_value2: no Schema type for type datetime.
• field_data_field_start_date.field_start_date_value: no type for Schema type datetime:normal.
• Field field_data_field_start_date.field_start_date_value: no Schema type for type datetime.
• field_data_field_start_date.field_start_date_value2: no type for Schema type datetime:normal.
• Field field_data_field_start_date.field_start_date_value2: no Schema type for type datetime.
• field_revision_field_start_date.field_start_date_value: no type for Schema type datetime:normal.
• Field field_revision_field_start_date.field_start_date_value: no Schema type for type datetime.
• field_revision_field_start_date.field_start_date_value2: no type for Schema type datetime:normal.
• Field field_revision_field_start_date.field_start_date_value2: no Schema type for type datetime.
The schema module says there are 4 fields in the field_sql_storage table where the schema and database are different. Here is the schema information:
field_data_field_event_date
•column field_event_date_value - difference on: type
declared: array('description' => 'TODO: please describe this field!', 'type' => 'DATETIME', 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'datetime', 'not null' => FALSE)
•column field_event_date_value2 - difference on: type
declared: array('description' => 'TODO: please describe this field!', 'type' => 'DATETIME', 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'datetime', 'not null' => FALSE)
field_revision_field_event_date
•column field_event_date_value - difference on: type
declared: array('description' => 'TODO: please describe this field!', 'type' => 'DATETIME', 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'datetime', 'not null' => FALSE)
•column field_event_date_value2 - difference on: type
declared: array('description' => 'TODO: please describe this field!', 'type' => 'DATETIME', 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'datetime', 'not null' => FALSE)
field_data_field_start_date
•column field_start_date_value - difference on: type
declared: array('description' => 'TODO: please describe this field!', 'type' => 'DATETIME', 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'datetime', 'not null' => FALSE)
•column field_start_date_value2 - difference on: type
declared: array('description' => 'TODO: please describe this field!', 'type' => 'DATETIME', 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'datetime', 'not null' => FALSE)
field_revision_field_start_date
•column field_start_date_value - difference on: type
declared: array('description' => 'TODO: please describe this field!', 'type' => 'DATETIME', 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'datetime', 'not null' => FALSE)
•column field_start_date_value2 - difference on: type
declared: array('description' => 'TODO: please describe this field!', 'type' => 'DATETIME', 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'datetime', 'not null' => FALSE)
This is a fresh install of D7.7 with all the latest dev versions, I am now installing modules and testing as I enable modules. I don't see any possible way the schema could have been changed. I will test on another fresh install of D7.7 with all of the latest dev modules but make the date module the first module to install and test. Any other help would be appreciated.
Comment #6
karens commentedThis is a bug in schema module, which has not been updated since the datetime type was removed from core. See #1237974: Schema module reporting some Date discrepancies where I bumped the issue to them.
Comment #7
Anonymous (not verified) commentedField qrl_webform_views_#_15.submitted: no Schema type for mysql type datetime.
Good day
i keep getting the error above, can some one help me without editing code. i removed my Date/Time module.
thanks
Comment #8
karens commentedI have no control over the Schema module. I can't do anything about this. The fix has to happen there. Also it appears you are using webform, which does NOT use the date module, so maybe webform has the same issue.
Comment #9
WhiplashInfo commentednzxt - have you found any solution to the problem yet?
I have the same problem, and it occur dispite what version of schema I use.
//Tomas
Comment #10
kamran-dg commentedinstall data module and open the data module and go to data.module file.
and find the 'sql_type' and set the DATE_DATETIME. on line no: 470 in data.module
This works for me in Drupal 7.56
'sql_type' => DATE_UNIX, 'sql_type' => DATE_DATETIME,