mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 15:44:02 +00:00
feat(bot): quiet finance topics and support purchase payers
This commit is contained in:
7
packages/db/drizzle/0021_sharp_payer.sql
Normal file
7
packages/db/drizzle/0021_sharp_payer.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE "purchase_messages"
|
||||
ADD COLUMN "payer_member_id" uuid REFERENCES "members"("id") ON DELETE SET NULL;
|
||||
|
||||
UPDATE "purchase_messages"
|
||||
SET "payer_member_id" = "sender_member_id"
|
||||
WHERE "payer_member_id" IS NULL
|
||||
AND "sender_member_id" IS NOT NULL;
|
||||
Reference in New Issue
Block a user