node-mini-migrations
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -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 |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
0
100
83
14657