Skip to content

Instantly share code, notes, and snippets.

View Dupflo's full-sized avatar
🏠
Working from home

Florian Dupuis Dupflo

🏠
Working from home
View GitHub Profile
@Dupflo
Dupflo / README.md
Last active February 6, 2026 11:25
Strapi V4 → V5 database migration (pre-start SQL fix)

Strapi V4 → V5 Database Migration (Pre-start SQL Script)

This Gist provides a PostgreSQL migration script to safely migrate a Strapi database from Strapi v4.4.7 to Strapi v5.x (tested with v5.33.4).

It is designed to be executed before the first build/start of a Strapi V5 project when reusing a database dump coming from V4.

Context