New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postgres-migrate-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postgres-migrate-cli - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

3

lib/down.js

@@ -22,5 +22,6 @@ const path = require('path');

const file = require.main.require(path.join(dir, options.path, migration));
const down = file.down || file.default?.down;
await connection.transaction(`
${file.down};
${down};
DELETE FROM ${options.table} WHERE file = '${migration}';

@@ -27,0 +28,0 @@ `);

@@ -29,5 +29,6 @@ const fs = require('fs');

const file = require.main.require(path.join(dir, options.path, migration));
const up = file.up || file.default?.up;
await connection.transaction(`
${file.up};
${up};
INSERT INTO ${options.table} (file) VALUES ('${migration}');

@@ -34,0 +35,0 @@ `);

{
"name": "postgres-migrate-cli",
"version": "0.1.5",
"version": "0.1.6",
"description": "Migrations tool for PostgreSQL",

@@ -5,0 +5,0 @@ "main": "index.js",

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