code clean up and error fixing

This commit is contained in:
2026-03-27 20:07:02 +00:00
parent 957cdf22cb
commit eeee568048
11 changed files with 127 additions and 74 deletions
@@ -12,7 +12,7 @@ impl MigrationTrait for Migration {
.table(Server::Table)
.if_not_exists()
.col(pk_auto(Server::Id))
.col(integer(Server::IdDiscord).unique_key())
.col(big_integer(Server::IdDiscord).unique_key())
.col(string(Server::Name))
.to_owned(),
)
@@ -12,7 +12,7 @@ impl MigrationTrait for Migration {
.table(Members::Table)
.if_not_exists()
.col(pk_auto(Members::Id))
.col(integer(Members::IdDiscord).unique_key())
.col(big_integer(Members::IdDiscord).unique_key())
.col(string(Members::Name))
.to_owned(),
)
@@ -15,7 +15,7 @@ impl MigrationTrait for Migration {
.table(Messages::Table)
.if_not_exists()
.col(pk_auto(Messages::Id))
.col(integer(Messages::IdDiscord))
.col(big_integer(Messages::IdDiscord))
.col(integer(Messages::IdSender))
.col(integer(Messages::IdContent))
.foreign_key(
@@ -12,7 +12,7 @@ impl MigrationTrait for Migration {
.table(Channel::Table)
.if_not_exists()
.col(pk_auto(Channel::Id))
.col(integer(Channel::IdDiscord))
.col(big_integer(Channel::IdDiscord))
.to_owned(),
)
.await