Comparing version 0.0.15 to 0.0.16
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
19411
19