keep existing repo_type on explicit empty PUT; repair wiped locals as local
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful

This commit is contained in:
2026-11-01 15:20:58 +11:00
parent 98bee14385
commit f28fb21705
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
UPDATE remotes SET repo_type = 'remote' WHERE repo_type = '' OR repo_type IS NULL;
UPDATE remotes SET repo_type = CASE WHEN COALESCE(base_url, '') = '' THEN 'local' ELSE 'remote' END WHERE repo_type = '' OR repo_type IS NULL;