From 9fd9df7076ec09eef121dba70c88868be903160c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 25 Nov 2024 16:03:03 +0100 Subject: [PATCH] sql fmt --- crates/db_schema/src/impls/federation_allowlist.rs | 1 - migrations/2024-11-19-142005_instance-block-mod-log/up.sql | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/db_schema/src/impls/federation_allowlist.rs b/crates/db_schema/src/impls/federation_allowlist.rs index fdbeb001a..41ced26f7 100644 --- a/crates/db_schema/src/impls/federation_allowlist.rs +++ b/crates/db_schema/src/impls/federation_allowlist.rs @@ -51,7 +51,6 @@ mod tests { #[tokio::test] #[serial] - #[expect(clippy::indexing_slicing)] async fn test_allowlist_insert_and_clear() -> Result<(), Error> { let pool = &build_db_pool_for_tests(); let pool = &mut pool.into(); diff --git a/migrations/2024-11-19-142005_instance-block-mod-log/up.sql b/migrations/2024-11-19-142005_instance-block-mod-log/up.sql index 9cb9fa021..fbe0af66c 100644 --- a/migrations/2024-11-19-142005_instance-block-mod-log/up.sql +++ b/migrations/2024-11-19-142005_instance-block-mod-log/up.sql @@ -5,7 +5,7 @@ CREATE TABLE admin_block_instance ( id serial PRIMARY KEY, instance_id int NOT NULL REFERENCES instance (id) ON UPDATE CASCADE ON DELETE CASCADE, admin_person_id int NOT NULL REFERENCES person (id) ON UPDATE CASCADE ON DELETE CASCADE, - blocked bool not null, + blocked bool NOT NULL, reason text, expires timestamptz, published timestamptz NOT NULL DEFAULT now() @@ -15,7 +15,7 @@ CREATE TABLE admin_allow_instance ( id serial PRIMARY KEY, instance_id int NOT NULL REFERENCES instance (id) ON UPDATE CASCADE ON DELETE CASCADE, admin_person_id int NOT NULL REFERENCES person (id) ON UPDATE CASCADE ON DELETE CASCADE, - allowed bool not null, + allowed bool NOT NULL, reason text, published timestamptz NOT NULL DEFAULT now() );