@onivoro/server-typeorm-postgres 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/server-typeorm-postgres",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "dependencies": {
5
5
  "typeorm-naming-strategies": "^4.1.0"
6
6
  },
@@ -9,7 +9,7 @@ class SqlWriter {
9
9
  return `ALTER TABLE "${table}" ADD "${option.name}" ${primaryKey}${option.type}${notNullExpression}${SqlWriter.getDefaultValueExpression(option)}${foreignKey}`;
10
10
  }
11
11
  static createTable(table, options) {
12
- const createTableStatement = `CREATE TABLE "${table};\n"`;
12
+ const createTableStatement = `CREATE TABLE "${table}";\n`;
13
13
  if (!options?.length) {
14
14
  return createTableStatement;
15
15
  }