LogoLogo
WebsiteCommunity
  • Overview
    • Introduction
    • How to use it? In 5 steps
  • Importer
    • React Embed
    • Angular Embed
    • Bubble.io Embed
    • HTML & JS Embed
    • Text Customization
    • Directly Enter your Data
    • Select Header Row
  • Data Retrieval
    • Using Webhook
    • Using Frontend Callback
  • Validations
    • Base Validations
    • Advanced Validations
  • Features
    • Data Seeding
    • Import Excel with Image
    • Automated Import
    • Runtime Schema
    • Custom Validation
    • Default Value
    • Column Description
    • Freeze Columns
    • Multiselect Dropdown
    • Output Customization
  • Platform
    • Email Alerts
    • Activity Page
    • Manage Project
    • Make Your Team
    • How subscription works?
  • Additional Resources
    • FAQs
    • Architecture
    • Data Migrations
    • Selfhost Impler
    • Run Impler locally
    • Writing effectively into .xlsm files
  • Changelog
Powered by GitBook
On this page
  • Running Migrations
  • Migrations History

Was this helpful?

Edit on GitHub
Export as PDF
  1. Additional Resources

Data Migrations

Learn how to update your database data through migrations.

PreviousArchitectureNextRun Impler locally

Last updated 6 months ago

Was this helpful?

Occasionally, Impler might add features that call for data or database schema alterations. This typically occurs when a feature requires certain data to be present on a database entity to function. To make these modifications to your database, you can utilize migrations.

Running Migrations

To run data migrations, enter the following sequence of commands in your terminal from the repository root:

npm run setup:project
cd apps/api
npm run migration -- ./src/migrations/<MIGRATION_PATH>.ts
# e.g. npm run migration --  ./src/migrations/update-date-formats/update-date-formats.migration.ts

Certain features can require more than one migration; in that case, you must do each migration in the following order.

Migrations History

Below you will find a list of migrations introduced in previous versions of Impler, alongside the migration path to use in the script above.

Version
Feature
Migration Path(s)

Date format consideration

./src/update-date-formats/update-date-formats.migration.ts

Revision of template files according to new structure

./src/migrations/regenerate-templates/regenerate-templates.migration.ts

0.24.0

Verify user email using verification code

./src/migrations/verify-user/verify-user.migration.ts

0.27.0

Migrate users for teams support

./src/migrations/shift-environment-key/shift-environment-key.migration.ts

impler/api
v0.16.0
0.17.0

If you have any questions, suggestions, or comments. Feel free to reach out to us over . We’re constantly improving to deliver the best Data Importer for your product, and we value your input.

Discord