Learn
Reference
Cloud
Resources
Resources / Guides
Schema migrations
Search...
ctrl
/
Light
Dark
System
Sign in
Learn
Reference
Cloud
Resources
Overview
Guides
Overview
Deployment
Overview
AWS
Azure
DigitalOcean
Fly.io
Google Cloud
Heroku
Docker
Bare Metal
Health Checks
Switching to Gel
Overview
Postgres
Using Gel with…
Next.js (App Router)
Next.js (Pages Router)
FastAPI
Flask
Jupyter Notebook
Strawberry
ChatGPT
Cloudflare Workers
tRPC
Bun
Schema migrations
Overview
Basics
Tips
Contributing
Overview
Code
Documentation
Cheatsheets
Overview
Selecting data
Inserting data
Updating data
Deleting data
Working with booleans
Object types
Declaring functions
Declaring aliases
Declaring annotations
Using the CLI
Using the REPL
Administering an instance
Changelog
Overview
v1.0
v2.0
v3.0
v4.0
v5.0
v6.0
Deprecation Policy
13.4k
Feedback
Schema migrations
Welcome to the guide to Gel migrations! Let's get started.
Basics
SDL: For humans
DDL: For computers (mostly)
Questions from the CLI
Data migrations and migration hashes
Squashing migrations
Gel Watch
Branches
So, you really want to use DDL?
So, you really wanted to use DDL but now regret it?
Multiple migrations to keep data
Migration internals
Tips
Adding backlinks
Making a property required
Changing a property to a link
Changing the type of a property
Adding a required link
Recovering lost migrations
Getting the current migration
Schema migrations