Public Access
Release 0.1.0
This commit is contained in:
1 parent
68be3468bf
commit
b0bcc4d4ee
6 files changed
+34
-13
No files matched your search
+6
-3
@@ -56,9 +56,12 @@ async fn main() {
|
||||
let pool = sqlx::postgres::PgPoolOptions::new().connect(&database_url).await.expect("Failed to connect to database");
|
||||
debug!("Database connected");
|
||||
|
||||
trace!("Applying sqlschema");
|
||||
let _res = sqlx::raw_sql(include_str!("../sqlschema.txt")).execute(&pool).await.expect("Failed to execute sqlschema");
|
||||
debug!("Sqlschema applied");
|
||||
trace!("Applying migrations");
|
||||
sqlx::migrate!()
|
||||
.run(&pool)
|
||||
.await
|
||||
.expect("Failed to apply database migrations");
|
||||
debug!("Migrations applied");
|
||||
|
||||
trace!("Loading intents");
|
||||
let intents = sere::GatewayIntents::non_privileged()
|
||||
|
||||
Reference in new issue
Block a user