Skip to content

Commit 3d77f74

Browse files
fix(db): renumber media migration after rebase
Signed-off-by: Nikolaj Goodger <[email protected]>
1 parent a7cdc13 commit 3d77f74

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎crates/buzz-db/src/runtime/migration.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ mod postgres_tests {
769769
let mut migrations: Vec<_> = MIGRATOR.iter().collect();
770770
migrations.sort_by_key(|migration| migration.version);
771771

772-
assert_eq!(migrations.len(), 67);
772+
assert_eq!(migrations.len(), 68);
773773
assert_eq!(migrations[64].version, 65);
774774
let retire_ttl = strip_sql_comments(migrations[64].sql.as_str());
775775
for statement in [
@@ -806,9 +806,9 @@ mod postgres_tests {
806806
.sql
807807
.as_str()
808808
.contains("CREATE TABLE community_nip_fi_issuers"));
809-
assert_eq!(migrations[66].version, 67);
809+
assert_eq!(migrations[67].version, 68);
810810
for table in ["media_uploaders", "media_shares"] {
811-
assert!(migrations[66]
811+
assert!(migrations[67]
812812
.sql
813813
.as_str()
814814
.contains(&format!("CREATE TABLE {table}")));
@@ -2415,10 +2415,10 @@ mod postgres_tests {
24152415
.as_str()
24162416
.contains("attach_community_write_fence('community_nip_fi_issuers')"));
24172417
expected_fences.insert("community_nip_fi_issuers".to_owned());
2418-
// 0067 fences the media access tables.
2418+
// 0068 fences the media access tables.
24192419
let media_access = MIGRATOR
24202420
.iter()
2421-
.find(|m| m.version == 67)
2421+
.find(|m| m.version == 68)
24222422
.expect("media access migration");
24232423
for table in ["media_uploaders", "media_shares"] {
24242424
assert!(media_access

‎crates/buzz-db/src/store/deletion.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4434,7 +4434,7 @@ mod postgres_tests {
44344434
})
44354435
.await
44364436
.expect("connect isolated migration DB");
4437-
crate::migration::run_migrations_through(&db.pool, 67)
4437+
crate::migration::run_migrations_through(&db.pool, 68)
44384438
.await
44394439
.expect("migrate with fence objects present");
44404440
let store = db.deletion_store();

‎crates/buzz-db/src/store/media_reference.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ mod postgres_tests {
575575
let pool = PgPool::connect(&crate::test_support::database_url())
576576
.await
577577
.expect("connect to migration DB");
578-
crate::migration::run_migrations_through(&pool, 67)
578+
crate::migration::run_migrations_through(&pool, 68)
579579
.await
580580
.expect("migrate");
581581
pool.close().await;

0 commit comments

Comments
 (0)