{"id":15019203,"url":"https://github.com/eiskalteschatten/sequelize-migration-wrapper","last_synced_at":"2026-02-01T03:01:09.984Z","repository":{"id":34540938,"uuid":"180149409","full_name":"eiskalteschatten/sequelize-migration-wrapper","owner":"eiskalteschatten","description":"A wrapper for migrating databases using Sequelize and Umzug.","archived":false,"fork":false,"pushed_at":"2026-01-22T09:23:34.000Z","size":53,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-22T23:59:15.566Z","etag":null,"topics":["database","migration","mysql","nodejs","postgresql","sequelize","sql","sqlite","umzug"],"latest_commit_sha":null,"homepage":"https://www.alexseifert.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eiskalteschatten.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-04-08T12:57:49.000Z","updated_at":"2026-01-22T09:23:36.000Z","dependencies_parsed_at":"2024-09-21T22:02:18.982Z","dependency_job_id":null,"html_url":"https://github.com/eiskalteschatten/sequelize-migration-wrapper","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.5172413793103448,"last_synced_commit":"72a5fd1a3b32c7f797bfa6367a734fc52b6843f3"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/eiskalteschatten/sequelize-migration-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiskalteschatten%2Fsequelize-migration-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiskalteschatten%2Fsequelize-migration-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiskalteschatten%2Fsequelize-migration-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiskalteschatten%2Fsequelize-migration-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eiskalteschatten","download_url":"https://codeload.github.com/eiskalteschatten/sequelize-migration-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiskalteschatten%2Fsequelize-migration-wrapper/sbom","scorecard":{"id":370234,"data":{"date":"2025-08-11","repo":{"name":"github.com/eiskalteschatten/sequelize-migration-wrapper","commit":"72a5fd1a3b32c7f797bfa6367a734fc52b6843f3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4gxf-g5gf-22h4","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-vxvm-qww3-2fh7","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T12:46:53.186Z","repository_id":34540938,"created_at":"2025-08-18T12:46:53.186Z","updated_at":"2025-08-18T12:46:53.186Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28965436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T02:14:24.993Z","status":"ssl_error","status_checked_at":"2026-02-01T02:13:55.706Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","migration","mysql","nodejs","postgresql","sequelize","sql","sqlite","umzug"],"created_at":"2024-09-24T19:53:09.493Z","updated_at":"2026-02-01T03:01:09.980Z","avatar_url":"https://github.com/eiskalteschatten.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sequelize-migration-wrapper\n\n\u003e A wrapper for migrating databases using Sequelize and Umzug.\n\n\n## Table of Contents\n\n- \u003ca href=\"#requirements\"\u003eRequirements\u003c/a\u003e\n- \u003ca href=\"#install\"\u003eInstall\u003c/a\u003e\n- \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\n- \u003ca href=\"#api\"\u003eAPI\u003c/a\u003e\n- \u003ca href=\"#release-notes\"\u003eRelease Notes\u003c/a\u003e\n- \u003ca href=\"#maintainer\"\u003eMaintainer\u003c/a\u003e\n\n\n## Requirements\n\nThis module is tested with Node.js 14. It might work with Node.js \u003e= 12, but is not tested.\n\n\n## Install\n\n```\nnpm install --save sequelize-migration-wrapper\n```\n\n## Usage\n\n### Initialization\n\n```js\nimport { setupMigration } from 'sequelize-migration-wrapper'; // TypeScript\nconst { setupMigration } = require('sequelize-migration-wrapper'); // CommonJS\n\nconst sequelize = new Sequelize({...});\n\nsetupMigration({\n  sequelize,\n  glob: 'path/to/migration/scripts/*.{js,ts}',\n});\n```\n\n#### Options\n\n- sequelize (no default, must be a Sequelize instance; required),\n- glob (no default; required),\n\n\n## API\n\n### migrate()\n\nRuns through all migration scripts in the configured folder. Umzug automatically saves which migration scripts have already been run, so it will not re-run those.\n\n```js\nawait migrateDb.migrate();\n```\n\n### getStatus()\n\nGet the current status of the migration\n\n```js\nconst status = await migrateDb.getStatus();\n```\n\n### migrateNext()\n\nIteratively run through migration scripts.\n\n```js\nfor (const i in numberOfScriptsOrSomething) {\n  await migrateDb.migrateNext();\n}\n```\n\n### reset()\n\nUndo the last migration using Umzug's `down` function. This will only work if your migration scripts provide a `down` function. See [Umzug's documentation](https://github.com/sequelize/umzug#migrations) for more details.\n\n```js\nawait migrateDb.reset();\n```\n\n### resetPrev()\n\nIteratively undo a migration. This will only work if your migration scripts provide a `down` function. See [Umzug's documentation](https://github.com/sequelize/umzug#migrations) for more details.\n\n```js\nfor (const i in numberOfScriptsOrSomething) {\n  await migrateDb.resetPrev();\n}\n```\n\n\n## Release Notes\n\n### 2.0.0\n\n- Major update for `umzug`\n- **Breaking Change:** a glob is now required instead of the `path`/`filePattern` combination\n- Security updates\n\n### 1.0.1\n\n- Security updates\n\n\n### 1.0.0\n\n- Complete rewrite in TypeScript\n- Support for Sequelize 6\n\n### 0.1.1\n\n- Update dependencies to fix security vulnerabilities\n\n### 0.1.0\n\n- Initial release\n\n\n## Maintainer\n\nThis modules is maintained by Alex Seifert ([Website](https://www.alexseifert.com), [Github](https://github.com/eiskalteschatten)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiskalteschatten%2Fsequelize-migration-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiskalteschatten%2Fsequelize-migration-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiskalteschatten%2Fsequelize-migration-wrapper/lists"}