From a3e559ba0b649887fdb9b07a5eb2f34fee7b3770 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 3 May 2015 12:04:33 +0200 Subject: [PATCH] Bugfix to Db0016, Db0017 --- Database/Configuration.cs | 2 +- Database/Schemata/upgrade-0016.sql | 6 ++++++ Database/Schemata/upgrade-0017.sql | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Database/Configuration.cs b/Database/Configuration.cs index 3256b9c1..14c5589d 100644 --- a/Database/Configuration.cs +++ b/Database/Configuration.cs @@ -120,7 +120,7 @@ namespace Swarmops.Database public static string GetConfigurationFileName() { // Four possibilities here. Debug environment on Windows (dev), Console environment on Windows (dev), - // Console/daemon production environment and web production environment. + // Console/daemon production environment, and web production environment. // In both production environments, we should use /etc/swarmops/database.config. // In dev Web, we should use ~/database.config. diff --git a/Database/Schemata/upgrade-0016.sql b/Database/Schemata/upgrade-0016.sql index 177754d9..135eaeb0 100644 --- a/Database/Schemata/upgrade-0016.sql +++ b/Database/Schemata/upgrade-0016.sql @@ -1,3 +1,9 @@ +DROP procedure IF EXISTS `SetCashAdvanceBudget` + + +# + + CREATE PROCEDURE `SetCashAdvanceBudget`( IN cashAdvanceId INTEGER, IN budgetId INTEGER diff --git a/Database/Schemata/upgrade-0017.sql b/Database/Schemata/upgrade-0017.sql index 73dc6606..8dfd97bc 100644 --- a/Database/Schemata/upgrade-0017.sql +++ b/Database/Schemata/upgrade-0017.sql @@ -1,3 +1,9 @@ +DROP procedure IF EXISTS `SetCashAdvanceAmountCents` + + +# + + CREATE PROCEDURE `SetCashAdvanceAmountCents`( IN cashAdvanceId INTEGER, IN amountCents INTEGER