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

js-jpa

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-jpa - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

7

package.json
{
"name": "js-jpa",
"version": "0.0.15",
"version": "0.0.16",
"description": "jpa for node",

@@ -17,3 +17,6 @@ "author": "stone",

"nyc": "^11.0.2"
},
"engines": {
"node": ">= 8.4.0"
}
}
}

@@ -12,9 +12,9 @@ module.exports = {

if (isPrimaryKey) {
return `\`${field.name}\` VARCHAR(${len}) NOT NULL`
return `\`${field.name}\` VARCHAR(${len}) COLLATE utf8mb4_unicode_ci NOT NULL`
} else {
return `\`${field.name}\` VARCHAR(${len}) DEFAULT NULL`
return `\`${field.name}\` VARCHAR(${len}) COLLATE utf8mb4_unicode_ci DEFAULT NULL`
}
},
text(field) {
return `\`${field.name}\` TEXT`
return `\`${field.name}\` TEXT COLLATE utf8mb4_unicode_ci`
},

@@ -21,0 +21,0 @@ timestamp(field) {

@@ -18,3 +18,3 @@ const SqlGenerator = require('../../jpa/SqlGenerator')

fields.push(`PRIMARY KEY (\`${schema.fields[0].name}\`)`)
return `CREATE TABLE \`${schema.name}\` (${fields.join(',')}) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8`
return `CREATE TABLE \`${schema.name}\` (${fields.join(',')}) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`
}

@@ -21,0 +21,0 @@

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