From f844bdc115f30ccdb44a504a1ccb0bcf019ac9c5 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Fri, 8 Dec 2017 12:49:08 +0100 Subject: [PATCH] Db0067: Bugfix for Db0066 --- Database/Configuration.cs | 2 +- Database/Schemata/revisions.txt | 1 + Database/Schemata/upgrade-0067.txt | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 Database/Schemata/upgrade-0067.txt diff --git a/Database/Configuration.cs b/Database/Configuration.cs index 19b82d1c..8a9e5078 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 => 66; + public static int DbVersionExpected => 67; // 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 eeba8913..058e732a 100644 --- a/Database/Schemata/revisions.txt +++ b/Database/Schemata/revisions.txt @@ -64,3 +64,4 @@ 0064 - Quick fix for OutboundInvoices (how did this error happen?) [RF] 0065 - Dumb fix for 0062 (or rather, the error was dumb) [RF] 0066 - Added OrganizationSequenceId to CashAdvances, ExpenseClaims +0067 - Bugfix for 0066 diff --git a/Database/Schemata/upgrade-0067.txt b/Database/Schemata/upgrade-0067.txt new file mode 100644 index 00000000..ffd0c3eb --- /dev/null +++ b/Database/Schemata/upgrade-0067.txt @@ -0,0 +1,2 @@ +ALTER TABLE `ExpenseClaims` +CHANGE COLUMN `ExpenseClaimId` `ExpenseClaimId` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT