Skip to content

Commit

Permalink
GP-44570 Fix start_date being required
Browse files Browse the repository at this point in the history
This fixes an issue with start_date being defined as NOT NULL,
which is not the case during async execution.
  • Loading branch information
pfigel committed Sep 26, 2024
1 parent d924ee0 commit 428e70c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CRM/Sqltasks/DAO/SqltasksExecution.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from de.systopia.sqltasks/xml/schema/CRM/Sqltasks/SqltasksExecution.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:ee61d590625c7cb56c54bcbe5317b2ae)
* (GenCodeChecksum:fa4de32875d01a8b099e2d357fa8a670)
*/
use CRM_Sqltasks_ExtensionUtil as E;

Expand Down Expand Up @@ -213,7 +213,7 @@ public static function &fields() {
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => E::ts('Start Date'),
'description' => E::ts('Start date of execution'),
'required' => TRUE,
'required' => FALSE,
'usage' => [
'import' => FALSE,
'export' => FALSE,
Expand Down
2 changes: 1 addition & 1 deletion sql/auto_install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ENGINE=InnoDB;
CREATE TABLE `civicrm_sqltasks_execution` (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Unique SqltasksExecution ID',
`sqltask_id` int unsigned COMMENT 'FK to SQL Task',
`start_date` datetime NOT NULL COMMENT 'Start date of execution',
`start_date` datetime NULL COMMENT 'Start date of execution',
`end_date` datetime NULL COMMENT 'End date of execution',
`runtime` int unsigned NULL COMMENT 'Task runtime in milliseconds',
`input` longtext NULL COMMENT 'Task input',
Expand Down
2 changes: 1 addition & 1 deletion xml/schema/CRM/Sqltasks/SqltasksExecution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<name>start_date</name>
<title>Start Date</title>
<type>datetime</type>
<required>true</required>
<required>false</required>
<comment>Start date of execution</comment>
<html>
<type>Select Date</type>
Expand Down

0 comments on commit 428e70c

Please sign in to comment.