Fix GroupInvites.expires_when in DB to re-allow NULL

This commit is contained in:
catbref 2020-05-11 12:55:58 +01:00
parent a5c437913f
commit 5e9b0cd03c

View File

@ -468,7 +468,7 @@ public class HSQLDBDatabaseUpdates {
// Invites
stmt.execute("CREATE TABLE GroupInvites (group_id GroupID, inviter QortalAddress, invitee QortalAddress, "
+ "expires_when EpochMillis NOT NULL, reference Signature, "
+ "expires_when EpochMillis, reference Signature, "
+ "PRIMARY KEY (group_id, invitee), FOREIGN KEY (group_id) REFERENCES Groups (group_id) ON DELETE CASCADE)");
// For finding invites sent by inviter
stmt.execute("CREATE INDEX GroupInviteInviterIndex ON GroupInvites (inviter)");