Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity: Sync bell across clients #4534

Merged
merged 3 commits into from
Mar 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove generated schema foreign keys
  • Loading branch information
latter-bolden committed Mar 17, 2025
commit 75612b40eb556a0ae7c6e300e8cbeadf82d4974b
6 changes: 2 additions & 4 deletions packages/shared/src/db/migrations/0000_sour_wonder_man.sql
Original file line number Diff line number Diff line change
@@ -95,8 +95,7 @@ CREATE TABLE `group_members` (
`contact_id` text NOT NULL,
`joined_at` integer,
`status` text,
PRIMARY KEY(`chat_id`, `contact_id`),
FOREIGN KEY (`chat_id`) REFERENCES `channels`(`id`) ON UPDATE no action ON DELETE cascade
PRIMARY KEY(`chat_id`, `contact_id`)
);
--> statement-breakpoint
CREATE TABLE `contact_group_pins` (
@@ -300,8 +299,7 @@ CREATE TABLE `posts` (
`last_edit_title` text,
`last_edit_image` text,
`synced_at` integer,
`backend_time` text,
FOREIGN KEY (`channel_id`) REFERENCES `channels`(`id`) ON UPDATE no action ON DELETE cascade
`backend_time` text
);
--> statement-breakpoint
CREATE UNIQUE INDEX `posts_sent_at_unique` ON `posts` (`sent_at`);--> statement-breakpoint