mirror of
https://github.com/anope/anope.git
synced 2026-06-12 17:24:49 +02:00
Use versioned prefixes for the SQL database tables.
This commit is contained in:
@@ -1228,7 +1228,7 @@ module
|
|||||||
* An optional prefix to prepended to the name of each created table.
|
* An optional prefix to prepended to the name of each created table.
|
||||||
* Do not use the same prefix for other programs.
|
* 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
|
* Whether or not to import data from another database module in to SQL on
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ module
|
|||||||
* An optional prefix to prepended to the name of each created table.
|
* An optional prefix to prepended to the name of each created table.
|
||||||
* Do not use the same prefix for other programs.
|
* Do not use the same prefix for other programs.
|
||||||
*/
|
*/
|
||||||
prefix = "anope_"
|
#prefix = "chanstats21_"
|
||||||
|
|
||||||
smileyshappy = ":) :-) ;) ;-) :D :-D :P :-P"
|
smileyshappy = ":) :-) ;) ;-) :D :-D :P :-P"
|
||||||
smileyssad = ":( :-( ;( ;-("
|
smileyssad = ":( :-( ;( ;-("
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ public:
|
|||||||
void OnReload(Configuration::Conf &conf) override
|
void OnReload(Configuration::Conf &conf) override
|
||||||
{
|
{
|
||||||
const auto &block = conf.GetModule("chanstats");
|
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"));
|
this->sql.SetServiceName(block.Get<const Anope::string>("engine"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ public:
|
|||||||
void OnReload(Configuration::Conf &conf) override
|
void OnReload(Configuration::Conf &conf) override
|
||||||
{
|
{
|
||||||
const auto &block = conf.GetModule("chanstats");
|
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"));
|
this->sql.SetServiceName(block.Get<const Anope::string>("engine"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -509,7 +509,7 @@ public:
|
|||||||
void OnReload(Configuration::Conf &conf) override
|
void OnReload(Configuration::Conf &conf) override
|
||||||
{
|
{
|
||||||
const auto &block = conf.GetModule(this);
|
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");
|
SmileysHappy = block.Get<const Anope::string>("SmileysHappy");
|
||||||
SmileysSad = block.Get<const Anope::string>("SmileysSad");
|
SmileysSad = block.Get<const Anope::string>("SmileysSad");
|
||||||
SmileysOther = block.Get<const Anope::string>("SmileysOther");
|
SmileysOther = block.Get<const Anope::string>("SmileysOther");
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ public:
|
|||||||
{
|
{
|
||||||
const auto &block = conf.GetModule(this);
|
const auto &block = conf.GetModule(this);
|
||||||
this->sql.SetServiceName(block.Get<const Anope::string>("engine"));
|
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");
|
this->import = block.Get<bool>("import");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ public:
|
|||||||
const auto &block = conf.GetModule(this);
|
const auto &block = conf.GetModule(this);
|
||||||
|
|
||||||
this->SQL.SetServiceName(block.Get<const Anope::string>("engine"));
|
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
|
void OnSerializableConstruct(Serializable *obj) override
|
||||||
|
|||||||
Reference in New Issue
Block a user