Skip to content

Set default value to NULL and authorize column to be NULL for DATE & DATETIME column types#773

Open
olivier-nolbert wants to merge 1 commit intoOctopoos:5.xfrom
Agence-DBCOM:fix-field-storage-type-date-default-null
Open

Set default value to NULL and authorize column to be NULL for DATE & DATETIME column types#773
olivier-nolbert wants to merge 1 commit intoOctopoos:5.xfrom
Agence-DBCOM:fix-field-storage-type-date-default-null

Conversation

@olivier-nolbert
Copy link
Contributor

This code fixes the error on saving fields on J4.x/S4.1.1 with storage column type set as DATE or DATETIME. It sets default value to NULL instead of 0 and conditionally removes the 'NOT NULL' option in the SQL Query.

@olivier-nolbert
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant