Update changed method name
This commit is contained in:
parent
e771e09d08
commit
c51b89e32e
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ namespace Noikoio.RegexBot.Module.ModLogs
|
||||||
|
|
||||||
static void CreateTables()
|
static void CreateTables()
|
||||||
{
|
{
|
||||||
using (var db = RegexBot.Config.Database.GetOpenConnectionAsync().GetAwaiter().GetResult())
|
using (var db = RegexBot.Config.GetOpenDatabaseConnectionAsync().GetAwaiter().GetResult())
|
||||||
{
|
{
|
||||||
using (var c = db.CreateCommand())
|
using (var c = db.CreateCommand())
|
||||||
{
|
{
|
||||||
|
@ -24,11 +24,11 @@ namespace Noikoio.RegexBot.Module.ModLogs
|
||||||
+ "entry_ts timestamptz not null, "
|
+ "entry_ts timestamptz not null, "
|
||||||
+ "guild_id bigint not null, "
|
+ "guild_id bigint not null, "
|
||||||
+ "target_id bigint not null, "
|
+ "target_id bigint not null, "
|
||||||
+ $"invoke_id bigint null references {EntityCache.Sql.TableUser}.user_id, "
|
+ $"invoke_id bigint null references {EntityCache.SqlHelper.TableUser}.user_id, "
|
||||||
+ "target_channel_id bigint null, " // TODO channel cache reference?
|
+ "target_channel_id bigint null, " // TODO channel cache reference?
|
||||||
+ "category text not null, "
|
+ "category text not null, "
|
||||||
+ "message text not null, "
|
+ "message text not null, "
|
||||||
+ $"FOREIGN KEY (target_id, guild_id) REFERENCES {EntityCache.Sql.TableUser} (user_id, guild_id)";
|
+ $"FOREIGN KEY (target_id, guild_id) REFERENCES {EntityCache.SqlHelper.TableUser} (user_id, guild_id)";
|
||||||
c.ExecuteNonQuery();
|
c.ExecuteNonQuery();
|
||||||
}
|
}
|
||||||
using (var c = db.CreateCommand())
|
using (var c = db.CreateCommand())
|
||||||
|
|
Loading…
Reference in a new issue