forge-sql-orm 2.0.21 → 2.0.23
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/dist/ForgeSQLORM.js
CHANGED
|
@@ -131,6 +131,7 @@ function generateDropTableStatements(tables) {
|
|
|
131
131
|
const dropStatements = [];
|
|
132
132
|
tables.forEach((tableName) => {
|
|
133
133
|
dropStatements.push(`DROP TABLE IF EXISTS \`${tableName}\`;`);
|
|
134
|
+
dropStatements.push(`DROP SEQUENCE IF EXISTS \`${tableName}\`;`);
|
|
134
135
|
});
|
|
135
136
|
return dropStatements;
|
|
136
137
|
}
|
|
@@ -276,7 +277,7 @@ function formatLimitOffset(limitOrOffset) {
|
|
|
276
277
|
return drizzleOrm.sql.raw(`${limitOrOffset}`);
|
|
277
278
|
}
|
|
278
279
|
function nextVal(sequenceName) {
|
|
279
|
-
return drizzleOrm.sql`
|
|
280
|
+
return drizzleOrm.sql.raw(`NEXTVAL(${sequenceName})`);
|
|
280
281
|
}
|
|
281
282
|
class ForgeSQLCrudOperations {
|
|
282
283
|
forgeOperations;
|