sequelize
Advanced tools
Comparing version 6.23.2 to 6.24.0
@@ -155,2 +155,12 @@ "use strict"; | ||
} | ||
tableExistsQuery(table) { | ||
const tableName = table.tableName || table; | ||
const schema = table.schema; | ||
return Utils.joinSQLFragments([ | ||
"SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'", | ||
`AND TABLE_SCHEMA = ${schema !== void 0 ? this.escape(schema) : "CURRENT_SCHEMA()"}`, | ||
`AND TABLE_NAME = ${this.escape(tableName)}`, | ||
";" | ||
]); | ||
} | ||
addColumnQuery(table, key, dataType) { | ||
@@ -157,0 +167,0 @@ return Utils.joinSQLFragments([ |
{ | ||
"name": "sequelize", | ||
"description": "Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift and Snowflake’s Data Cloud. It features solid transaction support, relations, eager and lazy loading, read replication and more.", | ||
"version": "6.23.2", | ||
"version": "6.24.0", | ||
"funding": [ | ||
@@ -6,0 +6,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2869443
32620