refactor: ♻️ Rewrite relationship system

This commit is contained in:
Jesse Wierzbinski 2024-07-27 20:46:19 +02:00
parent 62b68a64ac
commit 3baac85cf7
No known key found for this signature in database
23 changed files with 2634 additions and 596 deletions

View file

@ -0,0 +1,3 @@
ALTER TABLE "Relationships" DROP COLUMN IF EXISTS "followed_by";--> statement-breakpoint
ALTER TABLE "Relationships" DROP COLUMN IF EXISTS "blocked_by";--> statement-breakpoint
ALTER TABLE "Relationships" DROP COLUMN IF EXISTS "requested_by";

File diff suppressed because it is too large Load diff

View file

@ -218,6 +218,13 @@
"when": 1721223331975,
"tag": "0030_curvy_vulture",
"breakpoints": true
},
{
"idx": 31,
"version": "7",
"when": 1722100203904,
"tag": "0031_mature_demogoblin",
"breakpoints": true
}
]
}

View file

@ -181,13 +181,10 @@ export const Relationships = pgTable("Relationships", {
following: boolean("following").notNull(),
showingReblogs: boolean("showing_reblogs").notNull(),
notifying: boolean("notifying").notNull(),
followedBy: boolean("followed_by").notNull(),
blocking: boolean("blocking").notNull(),
blockedBy: boolean("blocked_by").notNull(),
muting: boolean("muting").notNull(),
mutingNotifications: boolean("muting_notifications").notNull(),
requested: boolean("requested").notNull(),
requestedBy: boolean("requested_by").notNull().default(false),
domainBlocking: boolean("domain_blocking").notNull(),
endorsed: boolean("endorsed").notNull(),
languages: text("languages").array(),