Skip to content

Commit

Permalink
Featured tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Jun 26, 2024
1 parent b74a888 commit a70b1af
Show file tree
Hide file tree
Showing 13 changed files with 1,575 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Current features and roadmap
- [x] Notifications
- [x] Bookmarks
- [x] Markers
- [ ] Featured hashtags
- [x] Featured hashtags
- [ ] Featured accounts


Expand Down
Binary file modified bun.lockb
Binary file not shown.
13 changes: 13 additions & 0 deletions drizzle/0026_featured_tags.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CREATE TABLE IF NOT EXISTS "featured_tags" (
"id" uuid PRIMARY KEY NOT NULL,
"account_owner_id" uuid NOT NULL,
"name" text NOT NULL,
"created" timestamp with time zone,
CONSTRAINT "featured_tags_account_owner_id_name_unique" UNIQUE("account_owner_id","name")
);
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "featured_tags" ADD CONSTRAINT "featured_tags_account_owner_id_account_owners_id_fk" FOREIGN KEY ("account_owner_id") REFERENCES "public"."account_owners"("id") ON DELETE cascade ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
Loading

0 comments on commit a70b1af

Please sign in to comment.