mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 06:11:26 +00:00
sql fmt
This commit is contained in:
parent
be508fcdbc
commit
9fd9df7076
2 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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()
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue