Skip to content
Back

Is there migration script generation like prisma or ef core

  • 0
  • Self Hosted
  • Databases
  • General
  • Cloud
Suiii
21 Aug, 2025, 13:16

Having standards migration script is helpful. For example something like same script to apply for multiple DB - each DB for one tenant

TL;DR
Developers are wondering if there is a migration script generation similar to Prisma or EF Core for Appwrite. They are looking for a way to standardize migration scripts that can be automatically generated through the Appwrite CLI to easily apply changes to multiple databases for different tenants.
Suiii
21 Aug, 2025, 13:28

// migrations/001-add-phone-to-students.ts export async function up(databases: AppwriteDatabases) { await databases.updateCollection('students', { addFields: [{ name: 'phone', type: 'string', required: false }] }); }

Suiii
21 Aug, 2025, 13:28

Exmaple something like this nut should be auto with appwrite cli

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more