Toolverse
All skills

database-development

by vm0-ai

Database migrations and Drizzle ORM guidelines for the vm0 project

Installation

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

Installation

Quick info

Author
vm0-ai
Category
Backend
Views
5

About this skill

Database migrations and Drizzle ORM guidelines for the vm0 project

How to use

  1. Przejdź do katalogu projektu: otwórz terminal i wejdź do folderu turbo/apps/web, gdzie znajduje się konfiguracja bazy danych.

  2. Edytuj schemat bazy danych: dokonaj zmian w pliku schematu znajdującym się w src/db/schema/, na przykład dodaj nową kolumnę lub zmień typ pola.

  3. Wygeneruj migrację: uruchom pnpm db:generate, aby automatycznie utworzyć plik migracji na podstawie zmian w schemacie. Narzędzie automatycznie zaktualizuje pliki _journal.json i snapshot.

  4. Przetestuj lokalnie: wykonaj pnpm db:migrate, aby uruchomić migrację w lokalnym środowisku i sprawdzić, czy działa poprawnie.

  5. Dla zaawansowanych zmian (zmiana nazw, złożone ALTER TABLE, transformacje danych): użyj pnpm drizzle-kit generate --custom --name=nazwa_migracji, aby utworzyć pusty plik migracji, a następnie wpisz bezpośrednio SQL, zaktualizuj schemat i uruchom pnpm db:migrate.

  6. Opcjonalnie otwórz Drizzle Studio: uruchom pnpm db:studio, aby wizualnie przeglądać i zarządzać bazą danych za pośrednictwem interfejsu użytkownika.

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

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170

travel-planner

by ailabs-393

This skill should be used whenever users need help planning trips, creating travel itineraries, managing travel budgets, or seeking destination advice. On first use, collects comprehensive travel preferences including budget level, travel style, interests, and dietary

Backend
4379

dotnet-backend

by anton-abyzov

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET

Backend
92296

postgresql-psql

by timelessco

Comprehensive guide for PostgreSQL psql - the interactive terminal client for PostgreSQL. Use when connecting to PostgreSQL databases, executing queries, managing databases/tables, configuring connection options, formatting output, writing scripts, managing transactions, and

Backend
34173

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