mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-09-02 11:13:51 +00:00
parent
35f48c5a95
commit
d77c9a0544
3 changed files with 7 additions and 9 deletions
|
@ -838,13 +838,6 @@ diesel::table! {
|
|||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
person_ban (person_id) {
|
||||
person_id -> Int4,
|
||||
published_at -> Timestamptz,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
person_comment_mention (id) {
|
||||
id -> Int4,
|
||||
|
@ -1232,7 +1225,6 @@ diesel::joinable!(oauth_account -> local_user (local_user_id));
|
|||
diesel::joinable!(oauth_account -> oauth_provider (oauth_provider_id));
|
||||
diesel::joinable!(password_reset_request -> local_user (local_user_id));
|
||||
diesel::joinable!(person -> instance (instance_id));
|
||||
diesel::joinable!(person_ban -> person (person_id));
|
||||
diesel::joinable!(person_comment_mention -> comment (comment_id));
|
||||
diesel::joinable!(person_comment_mention -> person (recipient_id));
|
||||
diesel::joinable!(person_content_combined -> comment (comment_id));
|
||||
|
@ -1325,7 +1317,6 @@ diesel::allow_tables_to_appear_in_same_query!(
|
|||
password_reset_request,
|
||||
person,
|
||||
person_actions,
|
||||
person_ban,
|
||||
person_comment_mention,
|
||||
person_content_combined,
|
||||
person_liked_combined,
|
||||
|
|
5
migrations/2025-06-26-083302_drop-person-ban/down.sql
Normal file
5
migrations/2025-06-26-083302_drop-person-ban/down.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
CREATE TABLE person_ban (
|
||||
person_id integer PRIMARY KEY REFERENCES person (id) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
published_at timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
|
2
migrations/2025-06-26-083302_drop-person-ban/up.sql
Normal file
2
migrations/2025-06-26-083302_drop-person-ban/up.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
DROP TABLE person_ban;
|
||||
|
Loading…
Reference in a new issue