Programowanie · Budowanie i kod
rename-sql-table
/rename-sql-table
Zmienia nazwę tabeli bazy danych używanej przez mikroserwis SQL CRUD.
Dla kogo
- Autor
- microbus-io ↗
- Repozytorium
- fabric ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 23.10.2026
Ocena i bezpieczeństwo
100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Przestarzałość
Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.
Licencja
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Zmienia nazwę tabeli bazy danych używanej przez mikroserwis SQL CRUD.
Oryginalny opis (EN)
TRIGGER when user asks to rename the database table used by a SQL CRUD microservice.
Jak działa
- Workflow
Sekcje z nagłówków SKILL.md, w oryginale · 60 linii, 284 słów
Podgląd SKILL.md
--- name: rename-sql-table description: TRIGGER when user asks to rename the database table used by a SQL CRUD microservice. --- **CRITICAL**: Read and analyze this microservice before starting. Do NOT explore or analyze other microservices unless explicitly instructed to do so. The instructions in this skill are self-contained to this microservice. **IMPORTANT**: `old_table_name` and `new_table_name` are placeholders for the actual old and new table names. ## Workflow Copy this checklist and track your progress: ``` Renaming the database table: - [ ] Step 1: Update Table Name Const - [ ] Step 2: Update Database Schema - [ ] Step 3: Housekeeping ``` #### Step 1: Update Table Name Const Update the `tableName` const in `service.go` to the new table name. Do NOT change the `sequenceName`. ```go const ( tableName = "new_table_name" sequenceName = "old_table_name@0f7ce540" // Do not change // ... ) ``` #### Step 2: Update Database Schema Create a new migration script file in `resources/sql` with an incremental file name. **IMPORTANT**: Do not edit an existing migration file. ```sql -- DRIVER: mysql RENAME TABLE old_table_name TO new_table_name; -- DRIVER: pgx ALTER TABLE old_table_name RENAME TO new_table_name; -- DRIVER: mssql EXEC sp_rename 'old_table_name', 'new_table_name'; ``` Refer to the older `.sql` migration files to identify what if any indices were associated with the old table name. Append statements to the migration script to rename these indices, replacing the old table name with the new one. ```sql -- DRIVER: mysql ALTER TABLE new_table_name RENAME INDEX old_table_name_idx_field TO new_table_name_idx_field; -- DRIVER: pgx ALTER INDEX old_table_name_idx_field RENAME TO new_table_name_idx_field; -- DRIVER: mssql EXEC sp_rename 'old_table_name_idx_field', 'new_table_name_idx_field', 'INDEX'; ``` #### Step 3: Housekeeping Follow the `housekeeping` skill. Renaming the SQL table changes only the hand-written `service.go` column mappings and `resources/sql` migrations, not `definition.go`, so the boilerplate regeneration is a no-op; the `Version` bump and `go vet` still apply.
Wersje
W bazie nie ma innych skilli o nazwie rename-sql-table.
Migawka bazy z 13.11.2026 · wersja paczki a265f2a2bb1a (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100rename-sql-object
Zmienia nazwę typu obiektu lub struktury używanej przez mikroserwis SQL CRUD. - 100add-sql-microservice
Tworzy mikroserwis CRUD lub usługę zapisującą obiekty w bazie SQL (MySQL, Postgres, MSSQL). - 100curd
Generuje kompletny moduł CRUD z definicji tabeli bazy danych, koordynując dziewięć podskilli. - 100br-resource-table
Buduje endpointy CRUD w better-route nad własną tabelą bazy danych WordPress, z filtrami, sortowaniem, paginacją i domyślnym odmawianiem dostępu do tabel. - 95lov-rename-project
Zmienia nazwę projektu, ścieżek i repozytorium z zachowaniem kluczy zgodności i ciągłości działania, z jasnym wejściem i odczytem wyniku. - 100azure-functions-sql-bindings
Łączy Azure Functions z Azure SQL Database przez bindingi wejścia i wyjścia SQL oraz trigger SQL, wraz z wymaganym śledzeniem zmian i uprawnieniami tożsamości.