@meith/db 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/migrations/0060_webhook_payload_format.sql +1 -0
- package/migrations/0061_task_schedule.sql +1 -0
- package/migrations/0062_pretty_zombie.sql +12 -0
- package/migrations/0063_board_digest.sql +3 -0
- package/migrations/0064_redundant_lady_bullseye.sql +2 -0
- package/migrations/0065_serious_puff_adder.sql +1 -0
- package/migrations/meta/0061_snapshot.json +9515 -0
- package/migrations/meta/0062_snapshot.json +9617 -0
- package/migrations/meta/0063_snapshot.json +9653 -0
- package/migrations/meta/0064_snapshot.json +9667 -0
- package/migrations/meta/0065_snapshot.json +9674 -0
- package/migrations/meta/_journal.json +42 -0
- package/package.json +31 -30
- package/src/account-repos.ts +32 -15
- package/src/api-repo.ts +192 -21
- package/src/attachment-repo.ts +26 -0
- package/src/board-digest-repo.ts +45 -0
- package/src/content-counters.ts +14 -0
- package/src/discovery-repo.ts +22 -0
- package/src/draft-repo.ts +40 -1
- package/src/feed-token-repo.ts +103 -0
- package/src/forum-admin-repo.ts +43 -18
- package/src/index.ts +10 -0
- package/src/member-settings-repo.ts +25 -1
- package/src/moderation-queue.ts +61 -21
- package/src/plugin-data.ts +19 -0
- package/src/plugin-grants.ts +83 -0
- package/src/plugin-role.ts +79 -0
- package/src/post-repo.ts +26 -0
- package/src/post-writes.ts +32 -2
- package/src/presence-repo.ts +29 -1
- package/src/read-state-repo.ts +21 -1
- package/src/report-repo.ts +151 -7
- package/src/schema/content.ts +5 -0
- package/src/schema/identity.ts +33 -1
- package/src/schema/platform.ts +2 -0
- package/src/search-repo.ts +48 -17
- package/src/task-repo.ts +19 -7
- package/src/thread-writes.ts +7 -5
- package/src/upgrade-repo.ts +15 -7
- package/src/user-merge-map.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "webhooks" ADD COLUMN "format" text DEFAULT 'json' NOT NULL;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "tasks" ADD COLUMN "schedule" text;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
CREATE TABLE "feed_tokens" (
|
|
2
|
+
"id" integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY (sequence name "feed_tokens_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1),
|
|
3
|
+
"user_id" integer NOT NULL,
|
|
4
|
+
"lookup" text NOT NULL,
|
|
5
|
+
"secret_hash" text NOT NULL,
|
|
6
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
7
|
+
"last_used_at" timestamp with time zone
|
|
8
|
+
);
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
ALTER TABLE "feed_tokens" ADD CONSTRAINT "feed_tokens_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
11
|
+
CREATE UNIQUE INDEX "feed_tokens_user_key" ON "feed_tokens" USING btree ("user_id");--> statement-breakpoint
|
|
12
|
+
CREATE UNIQUE INDEX "feed_tokens_lookup_key" ON "feed_tokens" USING btree ("lookup");
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
ALTER TABLE "users" ADD COLUMN "board_digest_cadence" text DEFAULT 'weekly' NOT NULL;--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "users" ADD COLUMN "board_digest_sent_at" timestamp with time zone;--> statement-breakpoint
|
|
3
|
+
CREATE INDEX "notification_preferences_kind_email_idx" ON "notification_preferences" USING btree ("kind","user_id") WHERE "notification_preferences"."email" = true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "reports" ADD COLUMN "category" text DEFAULT 'other' NOT NULL;
|