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

Feat: localize name and title fields (without translation) #632

Merged
merged 8 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions api/db/migrations/0003_flaky_johnny_blaze.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE "contributors" RENAME COLUMN "name" TO "name_en";--> statement-breakpoint
ALTER TABLE "contributor_repository_relation" ALTER COLUMN "run_id" DROP DEFAULT;--> statement-breakpoint
ALTER TABLE "project_tag_relation" ALTER COLUMN "run_id" DROP DEFAULT;--> statement-breakpoint
ALTER TABLE "repositories" ALTER COLUMN "run_id" DROP DEFAULT;--> statement-breakpoint
ALTER TABLE "tags" ALTER COLUMN "run_id" DROP DEFAULT;--> statement-breakpoint
ALTER TABLE "contributors" ADD COLUMN "name_ar" text DEFAULT '' NOT NULL;
3 changes: 3 additions & 0 deletions api/db/migrations/0004_powerful_grandmaster.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE "contributions" RENAME COLUMN "title" TO "title_en";--> statement-breakpoint
ALTER TABLE "contributors" ALTER COLUMN "name_ar" DROP DEFAULT;--> statement-breakpoint
ALTER TABLE "contributions" ADD COLUMN "title_ar" text DEFAULT '' NOT NULL;
3 changes: 3 additions & 0 deletions api/db/migrations/0005_bizarre_piledriver.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE "projects" RENAME COLUMN "name" TO "name_en";--> statement-breakpoint
ALTER TABLE "contributions" ALTER COLUMN "title_ar" DROP DEFAULT;--> statement-breakpoint
ALTER TABLE "projects" ADD COLUMN "name_ar" text DEFAULT '' NOT NULL;
1 change: 1 addition & 0 deletions api/db/migrations/0006_amazing_stark_industries.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "projects" ALTER COLUMN "name_ar" DROP DEFAULT;
Loading
Loading