Tech TutorBangla Web Documentation
Portfolio
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • PostgreSQL Documentation40টি অধ্যায়
প্রযুক্তি নির্বাচন
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • Postgres Intro
  • Relational Model
  • Install & Setup
  • Connect psql
  • SELECT basics
  • Data Types
  • Create Table
  • Constraints
  • INSERT / UPDATE / DELETE
  • NULL & COALESCE
  • Schema Design
  • Relationships
  • Joins
  • Joins Advanced
  • Aggregation
  • ORDER / LIMIT
  • String Functions
  • Date Functions
  • Subqueries
  • CTE (WITH)
  • Views
  • Window Functions
  • Transactions
  • Indexes
  • Performance
  • UPSERT
  • JSONB
  • Full-Text Search
  • Triggers
  • Roles & Privileges
  • Backup & Restore
  • Node + PostgreSQL
  • Prisma Intro
  • Prisma Migrations
  • TechShop Schema
  • TechShop Queries
  • TechShop API
  • Best Practices
  • Common Mistakes
  • Interview Questions
  1. Docs
  2. PostgreSQL
  3. Migrations — schema version control
PostgreSQLAdvanced

Migrations — schema version control

Schema-এর পরিবর্তনের ইতিহাস — dev/prod-এ একই থাকে।

5টি অংশবাংলা ভাষায়
terminalbash
bash
npx prisma migrate dev --name add_product_spec

সরল relational-এ migrations: dev-এ apply, SQL ফাইল জেনারেট, prod-এ deploy।

Commandকখন
migrate devdevelopment; schema+ DB sync
migrate deployproduction/Cİ; বিদ্যমান SQL apply
db pushদ্রুত dev — ইতিহাস ছাড়া
  • Migration SQL-এ ঐচ্ছিক পরিদর্শন — dev/Prod mismatch ধরা
  • Breaking change-এ data migration আলাদা
  • বড় table-এ ALTER ধীর — lock avoidance
আবার ever reset?

migrate reset dev-এ সব data মুছে দেয় — কোথাও যেন deployment pipeline-এ না পড়ে। CI-তে test-এর জন্য পরিষ্কার DB-ই উদ্দেশ্য।

শেষ প্যারায় নিজে practice করুন — কোড কপি করে নিজের এডিটরে চালিয়ে দেখুন।
আগেরPrisma — schema-driven ORMপরেরTechShop — সম্পূর্ণ schema (শিক্ষার project)
Tech Tutor

বাংলায় ওয়েব ডেভেলপমেন্ট ডকুমেন্টেশন শিখুন — ধাপে ধাপে।

Homeসব ডকুমেন্টেশনQuick Startআমার নোটস

© 2026 Tech Tutor. বাংলায় শিখুন, বাংলায় গড়ুন।

mdanamolhasan1998@gmail.com