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,11 @@ use std::sync::atomic::{AtomicU64, Ordering};
|
|||
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
||||
|
||||
use remora_domain::OpaqueId;
|
||||
use remora_durable::{PoolConfig, connect, migrate as durable_migrate};
|
||||
use remora_durable::{PoolConfig, connect};
|
||||
use remora_result::{
|
||||
MANIFEST_SCHEMA_VERSION, PageSize, ResultError, ResultInventory, ResultMember,
|
||||
migrate as result_migrate,
|
||||
};
|
||||
use remora_schema::migrate as migrate_schema;
|
||||
use remora_stream::TargetBody;
|
||||
use remora_target::{
|
||||
ContentSha256, CreateObjectRequest, ObjectIdentity, StoredObject, TargetStore,
|
||||
|
|
@ -46,8 +46,7 @@ async fn test_pool() -> Option<PgPool> {
|
|||
)
|
||||
.await
|
||||
.expect("connect postgres");
|
||||
durable_migrate(&pool).await.expect("durable migration");
|
||||
result_migrate(&pool).await.expect("result migration");
|
||||
migrate_schema(&pool).await.expect("schema migration");
|
||||
Some(pool)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue