From b800d52ea963994625e49ce95d357d11a4145866 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 19 Mar 2024 17:12:22 -0400 Subject: [PATCH] No Null for Invitation status --- database_updates.php | 2 +- db.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/database_updates.php b/database_updates.php index dd2a0fa2..3bd5a3ed 100644 --- a/database_updates.php +++ b/database_updates.php @@ -1675,7 +1675,7 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) { `attendee_id` INT(11) NOT NULL AUTO_INCREMENT, `attendee_name` VARCHAR(200) DEFAULT NULL, `attendee_email` VARCHAR(200) DEFAULT NULL, - `attendee_invitation_status` TINYINT(1) DEFAULT 0, + `attendee_invitation_status` TINYINT(1) NOT NULL DEFAULT 0, `attendee_created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP(), `attendee_updated_at` DATETIME DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `attendee_archived_at` DATETIME DEFAULT NULL, diff --git a/db.sql b/db.sql index be19ce0b..efe7b6e8 100644 --- a/db.sql +++ b/db.sql @@ -545,7 +545,7 @@ CREATE TABLE `event_attendees` ( `attendee_id` int(11) NOT NULL AUTO_INCREMENT, `attendee_name` varchar(200) DEFAULT NULL, `attendee_email` varchar(200) DEFAULT NULL, - `attendee_invitation_status` tinyint(1) DEFAULT 0, + `attendee_invitation_status` tinyint(1) NOT NULL DEFAULT 0, `attendee_created_at` datetime NOT NULL DEFAULT current_timestamp(), `attendee_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `attendee_archived_at` datetime DEFAULT NULL, @@ -1803,4 +1803,4 @@ CREATE TABLE `vendors` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-03-19 17:07:09 +-- Dump completed on 2024-03-19 17:11:58