{"id":48114,"library":"grunt-flyway","title":"grunt-flyway","description":"Grunt plugin to run Flyway database migration tasks (clean, baseline, migrate, repair, validate, info) directly from Gruntfiles. Latest version 0.3.2 uses Flyway 3.2 and requires Grunt >=0.4.2 and Java runtime. Notably, this plugin is explicitly marked as not thoroughly tested and uses an outdated Flyway version. It supports all core Flyway command-line options but is deprecated in favor of direct Flyway CLI usage or modern build tool integrations.","status":"abandoned","version":"0.3.2","language":"javascript","source_language":"en","source_url":"git://github.com/gomoob/grunt-flyway","tags":["javascript","gruntplugin"],"install":[{"cmd":"npm install grunt-flyway","lang":"bash","label":"npm"},{"cmd":"yarn add grunt-flyway","lang":"bash","label":"yarn"},{"cmd":"pnpm add grunt-flyway","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required peer dependency to load the Grunt task","package":"grunt","optional":true}],"imports":[{"note":"This is a Grunt plugin; it must be loaded via grunt.loadNpmTasks and configured in grunt.initConfig. Direct require() will not function.","wrong":"var flyway = require('grunt-flyway');","symbol":"flyway","correct":"grunt.loadNpmTasks('grunt-flyway');\ngrunt.initConfig({ flyway: { ... } });"}],"quickstart":{"code":"// Gruntfile.js\nmodule.exports = function(grunt) {\n  grunt.loadNpmTasks('grunt-flyway');\n  grunt.initConfig({\n    flyway: {\n      options: {\n        driver: 'com.mysql.jdbc.Driver',\n        url: 'jdbc:mysql://localhost:3306/mydb',\n        user: process.env.DB_USER || 'flyway',\n        password: process.env.DB_PASS || 'flyway'\n      },\n      migrate: {\n        command: 'migrate'\n      }\n    }\n  });\n  grunt.registerTask('default', ['flyway']);\n};","lang":"javascript","description":"Loads grunt-flyway plugin, configures a migrate task with MySQL driver and connection details from environment variables."},"warnings":[{"fix":"Use Flyway CLI directly or a modern build tool plugin (e.g., flyway-maven-plugin, flyway-gradle-plugin).","message":"Flyway version 3.2 is extremely outdated; many security vulnerabilities and missing features in modern Flyway.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Test thoroughly in non-production environments before use.","message":"Plugin explicitly marked as not thoroughly tested; may produce unexpected results.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Install Java and ensure java is in PATH.","message":"Java must be installed and 'java' executable available in PATH; plugin does not check or bundle it.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Cross-reference with official Flyway command-line documentation.","message":"Options may be out of sync with Flyway documentation; plugin docs may not reflect all Flyway features.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.3.2':23 '0.4.2':30 '3.2':26 'baselin':13 'build':71 'clean':12 'cli':67 'command':56 'command-lin':55 'core':53 'databas':9 'deprec':61 'direct':18,65 'explicit':38 'favor':63 'flyway':3,8,25,48,54,66 'grunt':2,4,29 'grunt-flyway':1 'gruntfil':20 'gruntplugin':75 'info':17 'integr':73 'java':32 'javascript':74 'latest':21 'line':57 'mark':39 'migrat':10,14 'modern':70 'notabl':34 'option':58 'outdat':47 'plugin':5,36 'repair':15 'requir':28 'run':7 'runtim':33 'support':51 'task':11 'test':43 'thorough':42 'tool':72 'usag':68 'use':24,45 'valid':16 'version':22,49","created_at":"2026-06-07T16:54:59.082009+00:00","updated_at":"2026-06-07T16:54:59.082009+00:00","problems":[{"fix":"Ensure you have added 'grunt.loadNpmTasks('grunt-flyway');' in your Gruntfile before configuring the task.","cause":"Plugin not loaded via grunt.loadNpmTasks('grunt-flyway')","error":"Warning: Task \"flyway\" not found."},{"fix":"Run 'npm install grunt-flyway --save-dev' in your project directory.","cause":"grunt-flyway not installed or missing from node_modules","error":"Error: Cannot find module 'grunt-flyway'"},{"fix":"Install Java (JRE or JDK) and add its bin directory to your system PATH.","cause":"Java runtime not installed or not in PATH","error":"Fatal error: Unable to locate 'java' executable"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gomoob/grunt-flyway","github":"git://github.com/gomoob/grunt-flyway","docs":null,"changelog":null,"pypi":null,"npm":"grunt-flyway","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}