npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@alsew_/strapi-plugin-migration

v0.0.3

Published

Strapi migration plugin for cms

Readme

Strapi Migrations plugin

This plugin add the possibility to make migrations on Strapi. It uses migration scripts with a transaction mecanism to make atomic migrations. It can be used for:

  • data model changes (e.g. rename a field, or move a data structure to another one)
  • delete a field or a data structure (e.g. delete a field that is not used anymore)

⚠ Be careful

This plugin and Strapi's native migrations can't be used simultaneously. If you want to use this plugin, you have to delete the native migrations inside the following folder: ./database/migrations.

Usage

Installation

npm install @alsew_/strapi-migration-plugin

or

yarn add @alsew_/strapi-migration-plugin

Workflow

To make the developer workflow easier, the dry mode option is available.

if you are in development mode :

  • The dry mode option is active by default. It means that the migration scripts will be executed but the changes will not be applied to the database. It allows you to test and build your migration scripts without modifying your database. You can then toggle the dry mode option inside the Migrations plugin panel to apply the changes to the database.

if you are in production mode :

  • The dry mode option is disabled. It means that the migration scripts will be executed and the changes will be applied to the database.

Migration files

Migrations files are stored in ./migrations folder at root of the strapi project. To create a migration file, two options:

  • Using the create-migration-file script (yarn create-migration-file or npm run create-migration-file)
  • Creating a file in the migration folder, with the pattern: YYYYMMDD.01.migration-name.js

Fields depreciation

You can add a json file in the ./migrations folder of your strapi project called deprecated-fields.json. It enables to keep track of the fields that have been migrated but not deleted yet. You can delete the fields later (inside a migration or manually) when you are sure that the fields are not used anymore.

Deprecated-field interface

{
  "id": string,
  /**
   * Name of the deprecated-field
   */
  "name": string,
  /**
   * Content type of the field if it exists
   */
  "content_type": string | null,
  /**
   * Visibility of the field in content-manager
   */
  "is_visible": boolean
}

Configuration

You can change the folder in which you store your migration files and deprecated-fields by adding the following variable to your .env file:

MIGRATION_SCRIPTS_ROOT_FOLDER_PATH="new-folder-path"