sql-migrations
Advanced tools
Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "sql-migrations", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "raw SQL migrations library for Node.js", | ||
@@ -17,2 +17,6 @@ "main": "index.js", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:dmitriiabramov/node-sql-migrations.git" | ||
}, | ||
"dependencies": { | ||
@@ -19,0 +23,0 @@ "mkdirp": "^0.5.0", |
@@ -28,3 +28,3 @@ node-sql-migrations | ||
##### `node ./migrate create migration_name` | ||
#### `node ./migrate create migration_name` | ||
will create two migration files (up and down) | ||
@@ -38,3 +38,3 @@ ``` | ||
##### `node ./migrate migrate` | ||
#### `node ./migrate migrate` | ||
will run all pending migrations | ||
@@ -44,3 +44,17 @@ | ||
##### `node ./migrate.js rollback` | ||
#### `node ./migrate.js rollback` | ||
will rollback the last migration if there is one | ||
### Migration files | ||
write raw sql in your migrations | ||
example | ||
```sql | ||
-- ./migrations/1415860098827_up_migration_name.sql | ||
create table "test_table" (id bigint, name varchar(255)); | ||
``` | ||
```sql | ||
-- ./migrations/1415860098827_down_migration_name.sql | ||
drop table "test_table"; | ||
``` |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11039
0
2
58
2