Socket
Socket
Sign inDemoInstall

sql-migrations

Package Overview
Dependencies
13
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 0.0.1

6

package.json
{
"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";
```
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc