fix: add logging and a default value for not null sql

This commit is contained in:
silver 2024-09-17 23:57:46 +01:00
parent 43c5cd2eff
commit a62f893a98
Signed by untrusted user: silver
GPG key ID: 36F93D61BAD3FD7D
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,5 @@
-- temp table to allow folks to verify by committee email.
-- delete the col in teh server table
ALTER TABLE servers ADD COLUMN bot_channel_id integer DEFAULT 0;
ALTER TABLE servers ADD COLUMN server_name text NOT NULL;
ALTER TABLE servers ADD COLUMN wolves_link text NOT NULL;
ALTER TABLE servers ADD COLUMN server_name text NOT NULL DEFAULT "";
ALTER TABLE servers ADD COLUMN wolves_link text NOT NULL DEFAULT "";

View file

@ -136,7 +136,10 @@ async fn main() {
let config = get_config();
let db = match db_init(&config).await {
Ok(x) => x,
Err(_) => return,
Err(err) => {
dbg!(err);
return
},
};
// Intents are a bitflag, bitwise operations can be used to dictate which intents to use