No Null for Invitation status

This commit is contained in:
johnnyq 2024-03-19 17:12:22 -04:00
parent 4fec8efecd
commit b800d52ea9
2 changed files with 3 additions and 3 deletions

View File

@ -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,

4
db.sql
View File

@ -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