mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: ♻️ Rewrite relationship system
This commit is contained in:
parent
62b68a64ac
commit
3baac85cf7
23 changed files with 2634 additions and 596 deletions
3
drizzle/migrations/0031_mature_demogoblin.sql
Normal file
3
drizzle/migrations/0031_mature_demogoblin.sql
Normal 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";
|
||||
2126
drizzle/migrations/meta/0031_snapshot.json
Normal file
2126
drizzle/migrations/meta/0031_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -218,6 +218,13 @@
|
|||
"when": 1721223331975,
|
||||
"tag": "0030_curvy_vulture",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 31,
|
||||
"version": "7",
|
||||
"when": 1722100203904,
|
||||
"tag": "0031_mature_demogoblin",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue