Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sql-ddl-sync

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql-ddl-sync - npm Package Compare versions

Comparing version 0.3.17 to 0.3.18

5

Changelog.md

@@ -0,4 +1,7 @@

### v0.3.18 - 2022-01-11
- Add support for `defaultExpression` ie. `uuid()` for [MySQL 8.0.13+](https://dev.mysql.com/doc/refman/8.0/en/data-type-defaults.html)
### v0.3.17 - 2022-01-10
- Add UUID support for PostgreSQL
- Add support for `defaultExpression` ie. `uuid_generate_v4()`
- Add support for `defaultExpression` ie. `uuid_generate_v4()` for PostgreSQL

@@ -5,0 +8,0 @@ ### v0.3.16 - 2019-11-04

3

lib/Dialects/mysql.js

@@ -287,2 +287,5 @@ var SQL = require("../SQL");

}
if (property.hasOwnProperty("defaultExpression")) {
type += " DEFAULT (" + property.defaultExpression + ")";
}

@@ -289,0 +292,0 @@ return {

@@ -13,3 +13,3 @@ {

],
"version": "0.3.17",
"version": "0.3.18",
"license": "MIT",

@@ -16,0 +16,0 @@ "repository": "http://github.com/dresende/node-sql-ddl-sync.git",

@@ -90,2 +90,9 @@ var should = require("should");

});
it("should detect default expressions", function () {
should.equal(
Dialect.getType(null, { mapsTo: 'abc', type: 'text', defaultExpression: 'uuid()' }, driver).value,
'VARCHAR(255) DEFAULT (uuid())'
);
});
});
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