Socket
Socket
Sign inDemoInstall

node-mini-migrations

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mini-migrations - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

5

CHANGELOG.md

@@ -7,2 +7,7 @@ # Changelog

## [2.1.1] - 2019-11-08
### Changed
- Changed license to MIT
- Updated readme
## [2.1.0] - 2019-11-08

@@ -9,0 +14,0 @@ ### Fixed

4

package.json
{
"name": "node-mini-migrations",
"version": "2.1.0",
"version": "2.1.1",
"description": "A very small, lightweight and flexible migrations library unconcerned with what database you use",

@@ -14,3 +14,3 @@ "main": "src/index.js",

"author": "Mark Wylde",
"license": "GPL-3.0",
"license": "MIT",
"dependencies": {

@@ -17,0 +17,0 @@ "commander": "^4.0.0"

@@ -18,6 +18,7 @@ # Mini Migrations for NodeJS

[SQLite Driver](example/driver.js)
[Filesystem Driver](exampleFilesystem/driver.js)
1. [SQLite Driver](example/driver.js)
2. [Filesystem Driver](exampleFilesystem/driver.js)
### Preview SQLite driver
```javascript

@@ -59,2 +60,15 @@ const sqlite = require('sqlite')

### Preview SQLite migration
```javascript
module.exports = {
up: db => {
return db.exec('CREATE TABLE test_table (test TEXT)')
},
down: db => {
return db.exec('DROP TABLE test_table')
}
}
```
### Usage

@@ -70,2 +84,2 @@ You run `migrator up` to bring up any migrations or `migrator down` to bring them down.

## License
This project is licensed under the terms of the GPLv3 license.
This project is licensed under the terms of the MIT license.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc