Grunt task that automigrates changes from Sails.js models to a MySQL/MariaDB database. Version 0.1.9 is the latest stable release; the package has not been updated since 2016 and appears to be unmaintained. It uses sequelize ORM for database introspection but claims to work with Waterline. Differentiators: integrates directly into Grunt workflow, handles automatic table/field creation and alteration, respects interactive mode for safety. Note: there is a known limitation—cannot drop fields with constraints (manual removal of keys is required).
npm install grunt-sails-mysql-transitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures and registers the grunt task, then runs migration with interactive mode and environment selection.
Consider using an alternative migration tool for Sails.js or sequelize directly.
Manually remove constraints on the field before running the migration.
Test your models thoroughly after migration.
Ensure you have placed 'grunt.loadNpmTasks("grunt-sails-mysql-transit");' in your Grunt configuration.Run 'npm install mysql-transit' in your project.
Start MySQL service and verify your database connection settings in config/env/production.js (or appropriate file).