Skip to content

Commit

Permalink
[fix]: updated msg_date_sent in the batchcom (openemr#3462)
Browse files Browse the repository at this point in the history
* Made the msg_date_sent column in the batchcom table NULL
* Removed the default value
  • Loading branch information
ShubhamBansal1997 authored May 1, 2020
1 parent 10e3c1e commit 875869f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions sql/5_0_2-to-5_0_3_upgrade.sql
Original file line number Diff line number Diff line change
Expand Up @@ -451,3 +451,7 @@ ALTER TABLE `amendments` MODIFY `created_time` timestamp NULL COMMENT 'created t
#IfNotColumnTypeDefault amendments_history created_time timestamp NULL
ALTER TABLE `amendments_history` MODIFY `created_time` timestamp NULL COMMENT 'created time';
#EndIf

#IfNotColumnTypeDefault batchcom msg_date_sent datetime NULL
ALTER TABLE `batchcom` MODIFY `msg_date_sent` datetime NULL;
#EndIf
2 changes: 1 addition & 1 deletion sql/database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ CREATE TABLE `batchcom` (
`msg_type` varchar(60) default NULL,
`msg_subject` varchar(255) default NULL,
`msg_text` mediumtext,
`msg_date_sent` datetime NOT NULL default '0000-00-00 00:00:00',
`msg_date_sent` datetime NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 ;

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// is a database change in the course of development. It is used
// internally to determine when a database upgrade is needed.
//
$v_database = 317;
$v_database = 318;

// Access control version identifier, this is to be incremented whenever there
// is a access control change in the course of development. It is used
Expand Down

0 comments on commit 875869f

Please sign in to comment.