From 05d71203223ec8197ebf415d0106650370fc1b6a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 29 Sep 2014 13:58:02 +0200 Subject: [PATCH] Emergency fix to schemata --- BuildFiles/Packaging/repackage-build | 7 +++---- Database/Schemata/upgrade-0002.sql | 16 ---------------- Interface/Interface.csproj | 4 ++-- Site5/SprintName.txt | 2 +- 4 files changed, 6 insertions(+), 23 deletions(-) diff --git a/BuildFiles/Packaging/repackage-build b/BuildFiles/Packaging/repackage-build index 797a6af9..d654c7c6 100755 --- a/BuildFiles/Packaging/repackage-build +++ b/BuildFiles/Packaging/repackage-build @@ -15,16 +15,13 @@ svn update if [ "$1" == "release" ]; then DROPFOLDER=release - PACKAGELABEL="Stable" echo "Packaging FINISHED RELEASE for super-stable deployments." elif [ "$1" == "sprint" ]; then - PACKAGELABEL="Sprint $(cat ../lastbuild/swarmops/$DROPFOLDER/SprintName.txt | tr -d '\n')" DROPFOLDER=sprint echo "Packaging END-OF-SPRINT for normal deployments." elif [ "$1" == "" ]; then DROPFOLDER=internal - PACKAGELABEL="internal" - echo "internal" > ../lastbuild/swarmops/internal/SprintName.txt + echo "internal" > ../lastbuild/swarmops/internal/frontend/SprintName.txt echo "Packaging internal test build." else echo "Syntax: repackage-build [sprint|release]" @@ -49,10 +46,12 @@ echo "" echo "Notifying developers that new build has packaged for test/deployment..." if [ "$DROPFOLDER" == "internal" ]; then + PACKAGELABEL="internal" echo "$(cat ../lastbuild/swarmops/internal/CommitMessage.txt)" > deploymsg.txt echo "" >> deploymsg.txt echo "The packages (swarmops-frontend-internal, swarmops-backend-internal) are available from repositories now, and can be tested at http://dev.swarmops.com/ as usual. Last 3 commits listed above." >> deploymsg.txt else + PACKAGELABEL="$DROPFOLDER $(cat ../lastbuild/swarmops/$DROPFOLDER/frontend/SprintName.txt | tr -d '\n')" echo "NOTE: this is a $DROPFOLDER package bundle. It will deploy automatically to live systems via apt-get upgrade. Yay, we made another sprint!" > deploymsg.txt fi diff --git a/Database/Schemata/upgrade-0002.sql b/Database/Schemata/upgrade-0002.sql index b20694e2..64709b9a 100644 --- a/Database/Schemata/upgrade-0002.sql +++ b/Database/Schemata/upgrade-0002.sql @@ -86,22 +86,6 @@ END # - -CREATE PROCEDURE `SetFinancialAccountParent`( - IN financialAccountId INTEGER, - IN parentFinancialAccountId INTEGER -) -BEGIN - - UPDATE FinancialAccounts SET FinancialAccounts.ParentFinancialAccountId = parentFinancialAccountId - WHERE FinancialAccounts.FinancialAccountId=financialAccountId; - -END - - -# - - CREATE PROCEDURE `MoveFinancialTransactionRowRangeToNewAccount`( IN oldFinancialAccountId INTEGER, IN newFinancialAccountId INTEGER, diff --git a/Interface/Interface.csproj b/Interface/Interface.csproj index 386efd4c..1f50a33a 100644 --- a/Interface/Interface.csproj +++ b/Interface/Interface.csproj @@ -80,7 +80,7 @@ - C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -u -v / -p ../../Site5 ../../Site5-Deployment/ -"C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0a\bin\NETFX 4.0 Tools\aspnet_merge.exe" ../../Site5-Deployment -o Swarmops.Site.dll + if $(ConfigurationName) == Release C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -u -v / -p ../../Site5 ../../Site5-Deployment/ +if $(ConfigurationName) == Release "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0a\bin\NETFX 4.0 Tools\aspnet_merge.exe" ../../Site5-Deployment -o Swarmops.Site.dll \ No newline at end of file diff --git a/Site5/SprintName.txt b/Site5/SprintName.txt index b71ef704..78eff60f 100644 --- a/Site5/SprintName.txt +++ b/Site5/SprintName.txt @@ -1 +1 @@ -Black 2 \ No newline at end of file +Black 3 \ No newline at end of file