DbSchema Blog

Database design, migrations, SQL and everyday database work — explained with practical examples.

SQL tutorial

Learn SQL in your browser

A free SQL tutorial in short lessons on one shop database. Every example runs on real PostgreSQL in your browser, and the page checks your answers.

Mongodb 08 Nov 2026

Migrating a Relational Schema to MongoDB

Move a MySQL or PostgreSQL schema to MongoDB: map tables to collections, embed or reference each relationship, and turn constraints into validation rules.

Migrations 08 Nov 2026

What a Database Migration Tool Does

A database migration tool turns schema changes into SQL that every environment runs once, in order. See a real PostgreSQL 16 migration fail and pass.

Migrations 08 Nov 2026

Why Version a Schema at All

Learn why database schema versioning is essential for engineering managers to eliminate deployment bottlenecks and automate migration scripts safely.

Migrations 08 Nov 2026

Rolling Back a Database Schema Change

Can you roll back a database schema change? Which engines undo DDL in a transaction, what data is gone for good, and how to run the reverse script.