diff --git a/Database/Configuration.cs b/Database/Configuration.cs index 888ea2de..d6a3431c 100644 --- a/Database/Configuration.cs +++ b/Database/Configuration.cs @@ -12,7 +12,7 @@ namespace Swarmops.Database /// /// This is the IN-CODE revision of the database. The version we expect to be running against. /// - public static int DbVersionExpected => 63; + public static int DbVersionExpected => 64; // This class is in horrible need of serious refactoring. For its simplicity in task, it's a horrible bowl of spaghetti. diff --git a/Database/Schemata/revisions.txt b/Database/Schemata/revisions.txt index fa028657..59c37a78 100644 --- a/Database/Schemata/revisions.txt +++ b/Database/Schemata/revisions.txt @@ -61,3 +61,4 @@ 0061 - And CreatedDateTime can't be an INT, while we're at it; also renaming dateTime => nowUtc [RF] 0062 - Added OrganizationSequenceId to OutboundInvoices (like 0041 but outbound) [RF] 0063 - Added DeriveUnique to HotBitcoinAddresses for ability to create unique HBAs [RF] +0064 - Quick fix for OutboundInvoices (how did this error happen?) [RF] diff --git a/Database/Schemata/upgrade-0064.sql b/Database/Schemata/upgrade-0064.sql new file mode 100644 index 00000000..f172679a --- /dev/null +++ b/Database/Schemata/upgrade-0064.sql @@ -0,0 +1,3 @@ +ALTER TABLE `OutboundInvoices` +CHANGE COLUMN `ClosedDateTime` `ClosedDateTime` DATETIME NOT NULL DEFAULT '1800-01-01' +