Centralize durable schema migration ownership
This commit is contained in:
parent
cc328237f4
commit
069f3813ae
1 changed files with 354 additions and 350 deletions
|
|
@ -2,11 +2,9 @@ use std::time::Duration;
|
|||
|
||||
use base64::{Engine, engine::general_purpose::URL_SAFE_NO_PAD};
|
||||
use jsonwebtoken::{Algorithm, EncodingKey, Header, encode};
|
||||
use remora_durable::migrate as durable_migrate;
|
||||
use remora_durable::{PoolConfig, connect};
|
||||
use remora_identity::{
|
||||
OidcConfig, OidcIdentityProvider, migrate as identity_migrate, resolve_principal,
|
||||
};
|
||||
use remora_identity::{OidcConfig, OidcIdentityProvider, resolve_principal};
|
||||
use remora_schema::migrate as migrate_schema;
|
||||
use serde_json::{Value, json};
|
||||
use sqlx::PgPool;
|
||||
|
||||
|
|
@ -49,8 +47,7 @@ async fn test_pool() -> Option<PgPool> {
|
|||
)
|
||||
.await
|
||||
.expect("connect postgres");
|
||||
durable_migrate(&pool).await.expect("durable migrate");
|
||||
identity_migrate(&pool).await.expect("identity migrate");
|
||||
migrate_schema(&pool).await.expect("schema migrate");
|
||||
Some(pool)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue