Comparing version 1.0.222 to 1.0.223
@@ -290,3 +290,3 @@ "use strict"; | ||
}[arg]; | ||
const constraint_sql = name ? `CONSTRAINT ${name} ` : ''; | ||
const constraint_sql = name ? `CONSTRAINT \`${name}\` ` : ''; | ||
return `${constraint_sql}${constraint_type_sql}`; | ||
@@ -300,3 +300,3 @@ }, $index: arg => ({ | ||
// and the constraint type (e.g. FOREIGN KEY) | ||
get_neighbour_field(obj, path, '$constraint') ? '' : arg, $data_type: (arg, path, obj, database_type) => { | ||
get_neighbour_field(obj, path, '$constraint') ? '' : `\`${arg}\``, $data_type: (arg, path, obj, database_type) => { | ||
var _a; | ||
@@ -303,0 +303,0 @@ const precision = get_neighbour_field(obj, path, '$precision'); |
{ | ||
"name": "orma", | ||
"version": "1.0.222", | ||
"version": "1.0.223", | ||
"description": "A declarative relational syncronous orm", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -437,3 +437,3 @@ /** | ||
const constraint_sql = name ? `CONSTRAINT ${name} ` : '' | ||
const constraint_sql = name ? `CONSTRAINT \`${name}\` ` : '' | ||
return `${constraint_sql}${constraint_type_sql}` | ||
@@ -450,3 +450,3 @@ }, | ||
// and the constraint type (e.g. FOREIGN KEY) | ||
get_neighbour_field(obj, path, '$constraint') ? '' : arg, | ||
get_neighbour_field(obj, path, '$constraint') ? '' : `\`${arg}\``, | ||
$data_type: (arg, path, obj, database_type) => { | ||
@@ -453,0 +453,0 @@ const precision = get_neighbour_field(obj, path, '$precision') |
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
1583944