Efficient PostgreSQL Schema Migrations with Node.js and Graphile Migrate

Опубликовано: 29 Февраль 2024
на канале: Let's Talk Dev
1,031
32

Effective Database Migrations using Graphile Migrate and SQL in Postgres with NodeJS / Bun

This script is about managing PostgreSQL schemas in a trackable, consistent, and reproducible way, focusing on the database migration tool, Graphile Migrate. The tutorial goes through key principles to follow when writing database migrations, the importance of writing migrations in SQL, and how the tool fosters a fast and seamless development workflow. The script also outlines why it's important to write your migrations in SQL and in an idempotent way. It discourages writing rollback scripts and encourages writing tests for the database instead. It also briefly touches on the comparison between PostgreSQL and MongoDB.

Graphile Migrate: https://github.com/graphile/migrate
Repo: https://github.com/mihailtd/database-...

00:00 Introduction to Database Migrations
00:48 Why Use Graphile Migrate?
01:35 Setting Up the Database
02:06 Creating the Database Structure
03:46 Running the Migration
04:57 Principles of Writing Database Migrations
08:15 Creating a Complex Migration
13:08 Testing the Migration
13:58 Recap and Conclusion

#postgres #database #sql


Смотрите видео Efficient PostgreSQL Schema Migrations with Node.js and Graphile Migrate онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Let's Talk Dev 29 Февраль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,03 раз и оно понравилось 3 людям.