Toolverse
All skills

comparing-database-schemas

by jeremylongshore

Process use when you need to work with schema comparison.\nThis skill provides database schema diff and sync with comprehensive guidance and automation.\nTrigger with phrases like \

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Backend

About this skill

Process use when you need to work with schema comparison.\nThis skill provides database schema diff and sync with comprehensive guidance and automation.\nTrigger with phrases like \

How to use

  1. Przygotuj dostęp do obu baz danych — upewnij się, że masz dane logowania do źródłowej i docelowej bazy oraz że narzędzia CLI (psql dla PostgreSQL, mysql dla MySQL, mongosh dla MongoDB) są skonfigurowane do połączenia z obydwiema bazami.

  2. Wyodrębnij pełne schematy z obu baz danych. Dla PostgreSQL użyj polecenia pg_dump z flagą --schema-only, aby zapisać strukturę bez danych. Dla MySQL użyj mysqldump z flagą --no-data i --routines. Alternatywnie możesz bezpośrednio odpytać tabelę information_schema w obu bazach.

  3. Porównaj tabele między bazami — wykonaj zapytanie do information_schema.tables w obu środowiskach, aby znaleźć tabele, które istnieją w źródle, ale nie w celu (i odwrotnie). To ujawni brakujące tabele.

  4. Porównaj kolumny dla każdej wspólnej tabeli — odpytaj information_schema.columns z obu baz, aby sprawdzić nazwy kolumn, typy danych i ograniczenia. Zidentyfikuj kolumny, które istnieją w jednej bazie, ale nie w drugiej.

  5. Przeanalizuj różnice w typach danych i ograniczeniach — sprawdź, czy kolumny o tej samej nazwie mają identyczne typy danych, wartości domyślne i ograniczenia (NOT NULL, UNIQUE, klucze obce). Umiejętność wygeneruje raport różnic.

  6. Wdróż zmiany synchronizacyjne — na podstawie raportu różnic wykonaj niezbędne instrukcje ALTER TABLE lub CREATE TABLE w bazie docelowej, aby dopasować schemat źródła. Zawsze najpierw przetestuj na kopii.

Related skills

fastapi-pro

by sickn33

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

Backend
54128

stripe-integration

by wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

Backend
40147

supabase-operations

by elevanaltd

Supabase operational knowledge for migrations, RLS optimization, MCP tool benchmarks, and ADR-003 compliance. Use when validating database migrations, optimizing Row-Level Security policies, checking MCP tool performance, or ensuring Supabase operational standards. Triggers on:

Backend
27109

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

sql-optimization-patterns

by wshobson

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

Backend
40163

literature-review

by K-Dense-AI

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature

Backend
238507