# Unsupported database features (Prisma Migrate) (Prisma ORM v7) (/docs/orm/v7/prisma-migrate/workflows/unsupported-database-features) > For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL. How to include unsupported database features for projects that use Prisma Migrate Location: ORM > v7 > Prisma Migrate > Workflows > Unsupported database features (Prisma Migrate) Prisma Migrate uses the Prisma schema to determine what features to create in the database. However, some database features [cannot be represented in the Prisma schema](https://www.prisma.io/docs/orm/v7/prisma-schema/data-model/unsupported-database-features) , including but not limited to: * Stored procedures * Triggers * Views To add an unsupported feature to your database, you must [customize a migration](https://www.prisma.io/docs/orm/v7/prisma-migrate/workflows/customizing-migrations) to include that feature before you apply it. > [!NOTE] > Partial indexes are now supported in Prisma Schema Language via the `where` argument on `@@index`, `@@unique`, and `@unique`. See [Configuring partial indexes](https://www.prisma.io/docs/orm/v7/prisma-schema/data-model/indexes#configuring-partial-indexes-with-where) for details. You no longer need to customize migrations for partial indexes. > > The Prisma schema is also able to represent [unsupported field types](https://www.prisma.io/docs/orm/v7/prisma-schema/data-model/unsupported-database-features#unsupported-field-types) and [native database functions](https://www.prisma.io/docs/orm/v7/prisma-migrate/workflows/native-database-functions). > [!WARNING] > This guide **does not apply for MongoDB**.
> Instead of `migrate dev`, [`db push`](https://www.prisma.io/docs/orm/v7/prisma-migrate/workflows/prototyping-your-schema) is used for [MongoDB](https://www.prisma.io/docs/orm/v7/core-concepts/supported-databases/mongodb). ## Customize a migration to include an unsupported feature [#customize-a-migration-to-include-an-unsupported-feature] To customize a migration to include an unsupported feature: * Use the `--create-only` flag to generate a new migration without applying it: #### bun ```bash bunx prisma migrate dev --create-only ``` #### pnpm ```bash pnpm prisma migrate dev --create-only ``` #### yarn ```bash yarn prisma migrate dev --create-only ``` #### npm ```bash npx prisma migrate dev --create-only ``` * Open the generated `migration.sql` file and add the unsupported feature - for example, a trigger function: ```sql title="migration.sql" CREATE OR REPLACE FUNCTION notify_on_insert() RETURNS TRIGGER AS $$ BEGIN PERFORM pg_notify('new_record', NEW.id::text); RETURN NEW; END; $$ LANGUAGE plpgsql; ``` * Apply the migration: #### bun ```bash bunx prisma migrate dev ``` #### pnpm ```bash pnpm prisma migrate dev ``` #### yarn ```bash yarn prisma migrate dev ``` #### npm ```bash npx prisma migrate dev ``` * Commit the modified migration to source control. ## Related pages - [`Baselining a database`](https://www.prisma.io/docs/orm/v7/prisma-migrate/workflows/baselining): How to initialize a migration history for an existing database that contains important data. - [`Customizing migrations`](https://www.prisma.io/docs/orm/v7/prisma-migrate/workflows/customizing-migrations): How to edit a migration file before applying it to avoid data loss in production. - [`Development and production`](https://www.prisma.io/docs/orm/v7/prisma-migrate/workflows/development-and-production): How to use Prisma Migrate commands in development and production environments - [`Generating down migrations`](https://www.prisma.io/docs/orm/v7/prisma-migrate/workflows/generating-down-migrations): How to generate a down migration SQL file that reverses a given migration file - [`Native database functions`](https://www.prisma.io/docs/orm/v7/prisma-migrate/workflows/native-database-functions): How to enable PostgreSQL native database functions for projects that use Prisma Migrate.