Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ALTER TABLE CUSTOM_TIME_PERIOD MODIFY COLUMN FROM_DATE datetime, MODIFY COLUMN THRU_DATE datetime;

R "Update msyql sql-type for datetime field-type to support Fractional Seconds in Time Values "
Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyOFBIZ-9337

Updated sql-type for date-time and time field in fieldtypemysql.xml file,

OFBiz typeold mySql data-typenew mysql data-type
date-timeDATETIMEDATETIME(3)
timeTIMETIME(3)

Please upgrade mysql to at least 5.6.4 or higher.

After upgrade run the 'generateMySqlFileWithAlterTableForTimestamps' service, groupName is required field for this service,

It will generate the sql file with alter query statement for date-time and time field under "${ofbiz.home}/runtime/tempfiles/<groupName>.sql"

 You can use execute sql statement from any of the mysql batch command.