This commit is contained in:
Felix Ableitner 2024-11-25 16:03:03 +01:00
parent be508fcdbc
commit 9fd9df7076
2 changed files with 2 additions and 3 deletions

View file

@ -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();

View file

@ -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()
);