Committing split of dbops into read/write/admin ops, for security and multi-db deployments. THIS BREAKS THE INSTALLATION.

This commit is contained in:
Rick Falkvinge
2012-11-06 07:37:48 +00:00
parent e9c01ec818
commit 8a4608b2cb
113 changed files with 498 additions and 478 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ namespace Activizr.Utility.BotCode
// Every hour of the day, we check that this has been recorded for the day. This is just in case
// the bot isn't running at midnight, to make sure that we get one entry per day.
if (PirateDb.GetDatabase().GetBlogTopList(DateTime.Today) == null)
if (PirateDb.GetDatabaseForReading().GetBlogTopList(DateTime.Today) == null)
{
ScrapeAndStore();
}
+1 -1
View File
@@ -100,7 +100,7 @@ namespace Activizr.Utility.BotCode
dateTimeClosed = turnaround.DateTimeOpened;
}
PirateDb.GetDatabase().SetCommunicationTurnaroundClosed(Organization.PPSEid, 1, turnaround.CommunicationId, (DateTime) dateTimeClosed, 0);
PirateDb.GetDatabaseForWriting().SetCommunicationTurnaroundClosed(Organization.PPSEid, 1, turnaround.CommunicationId, (DateTime) dateTimeClosed, 0);
}
}
}