diff --git a/Database/Configuration.cs b/Database/Configuration.cs index e8e0d2a2..2dd2de11 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 => 59; + public static int DbVersionExpected => 60; // 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 cb2c9384..5b14ef01 100644 --- a/Database/Schemata/revisions.txt +++ b/Database/Schemata/revisions.txt @@ -56,4 +56,5 @@ 0056 - Splitting a storedproc into two; debugging a weird multi-row select return [RF] 0057 - Bugfix for 0056: case insensitivity caused always-true comparison w/o qualifier [RF] 0058 - Fixing the other half of 0056 [RF] -0059 - Added BackendServiceOrders, quite a bit of code too, for returning echo UTXOs from backend [RF] \ No newline at end of file +0059 - Added BackendServiceOrders, quite a bit of code too, for returning echo UTXOs from backend [RF] +0060 - Dumb fix for BSO tables: forgot autoincrement on the primary keys [RF] diff --git a/Database/Schemata/upgrade-0060.sql b/Database/Schemata/upgrade-0060.sql new file mode 100644 index 00000000..57e3210c --- /dev/null +++ b/Database/Schemata/upgrade-0060.sql @@ -0,0 +1,8 @@ +ALTER TABLE `BackendServiceClasses` +CHANGE COLUMN `BackendServiceClassId` `BackendServiceClassId` INT(11) NOT NULL AUTO_INCREMENT + +# + +ALTER TABLE `BackendServiceOrders` +CHANGE COLUMN `BackendServiceOrderId` `BackendServiceOrderId` INT(11) NOT NULL AUTO_INCREMENT +