mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-06 11:36:44 +03:00
- Add missing database fields (language, description, mirroredLocation, destinationOrg) to repository operations - Add missing organization fields (publicRepositoryCount, privateRepositoryCount, forkRepositoryCount) to schema - Update GitRepo interface to include all required database fields - Fix GitHub data fetching functions to map all fields correctly - Update all sync endpoints (main, repository, organization, scheduler) to handle new fields This fixes the "SQLite query expected X values, received Y" error when importing large numbers (4.6k+) of starred repositories by ensuring all database fields are properly mapped from GitHub API responses through to database insertion.
3 lines
247 B
SQL
3 lines
247 B
SQL
ALTER TABLE `organizations` ADD `public_repository_count` integer;--> statement-breakpoint
|
|
ALTER TABLE `organizations` ADD `private_repository_count` integer;--> statement-breakpoint
|
|
ALTER TABLE `organizations` ADD `fork_repository_count` integer; |