1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 15:44:46 +02:00

Use versioned prefixes for the SQL database tables.

This commit is contained in:
Sadie Powell
2026-04-26 12:49:54 +01:00
parent f4d5b1f01d
commit b33b5a6630
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1228,7 +1228,7 @@ module
* An optional prefix to prepended to the name of each created table.
* Do not use the same prefix for other programs.
*/
#prefix = "anope_db_"
#prefix = "anope21_"
/*
* Whether or not to import data from another database module in to SQL on
+1 -1
View File
@@ -22,7 +22,7 @@ module
* An optional prefix to prepended to the name of each created table.
* Do not use the same prefix for other programs.
*/
prefix = "anope_"
#prefix = "chanstats21_"
smileyshappy = ":) :-) ;) ;-) :D :-D :P :-P"
smileyssad = ":( :-( ;( ;-("
+1 -1
View File
@@ -86,7 +86,7 @@ public:
void OnReload(Configuration::Conf &conf) override
{
const auto &block = conf.GetModule("chanstats");
prefix = block.Get<const Anope::string>("prefix", "anope_");
prefix = block.Get<const Anope::string>("prefix", "chanstats21_");
this->sql.SetServiceName(block.Get<const Anope::string>("engine"));
}
+1 -1
View File
@@ -114,7 +114,7 @@ public:
void OnReload(Configuration::Conf &conf) override
{
const auto &block = conf.GetModule("chanstats");
prefix = block.Get<const Anope::string>("prefix", "anope_");
prefix = block.Get<const Anope::string>("prefix", "chanstats21_");
this->sql.SetServiceName(block.Get<const Anope::string>("engine"));
}
+1 -1
View File
@@ -509,7 +509,7 @@ public:
void OnReload(Configuration::Conf &conf) override
{
const auto &block = conf.GetModule(this);
prefix = block.Get<const Anope::string>("prefix", "anope_");
prefix = block.Get<const Anope::string>("prefix", "chanstats21_");
SmileysHappy = block.Get<const Anope::string>("SmileysHappy");
SmileysSad = block.Get<const Anope::string>("SmileysSad");
SmileysOther = block.Get<const Anope::string>("SmileysOther");
+1 -1
View File
@@ -174,7 +174,7 @@ public:
{
const auto &block = conf.GetModule(this);
this->sql.SetServiceName(block.Get<const Anope::string>("engine"));
this->prefix = block.Get<const Anope::string>("prefix", "anope_db_");
this->prefix = block.Get<const Anope::string>("prefix", "anope21_");
this->import = block.Get<bool>("import");
}
+1 -1
View File
@@ -158,7 +158,7 @@ public:
const auto &block = conf.GetModule(this);
this->SQL.SetServiceName(block.Get<const Anope::string>("engine"));
this->prefix = block.Get<const Anope::string>("prefix", "anope_db_");
this->prefix = block.Get<const Anope::string>("prefix", "anope21_");
}
void OnSerializableConstruct(Serializable *obj) override