postgresql-rls-migration

Community

Zero-downtime tenant migrations for PostgreSQL.

AuthorPremModhaOfficial
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides a standardized approach to tenant data isolation using a schema-per-tenant model and managed migrations across all tenant databases, including provisioning, onboarding/offboarding, and lifecycle management.

Core Features & Use Cases

  • Tenant provisioning: create and configure per-tenant databases with versioned migrations.
  • Migration orchestration: apply migrations across all active tenant databases using golang-migrate naming conventions.
  • Onboarding/offboarding lifecycle: manage tenant lifecycle including registry, connection management, and deprovisioning.
  • Audit triggers and compliance: implement per-tenant audit logs for SOC2/GDPR requirements.
  • Zero-downtime strategies & rollback: plan migrations with minimal disruption and safe rollbacks.

Quick Start

Run the tenant provisioning and migration workflow to onboard a new tenant and apply migrations across all active tenant schemas.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: postgresql-rls-migration
Download link: https://github.com/PremModhaOfficial/motadata-ai-pipeline/archive/main.zip#postgresql-rls-migration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.