monorise 1.7.0-dev.11 → 1.7.0-dev.13
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/core/index.js +2 -5
- package/dist/core/index.js.map +1 -1
- package/package.json +1 -1
package/dist/core/index.js
CHANGED
|
@@ -2846,9 +2846,6 @@ function required3(name) {
|
|
|
2846
2846
|
function quoteIdentifier(identifier) {
|
|
2847
2847
|
return `"${identifier.replaceAll('"', '""')}"`;
|
|
2848
2848
|
}
|
|
2849
|
-
function quoteDdlIdentifier(identifier) {
|
|
2850
|
-
return `\`${identifier.replaceAll("`", "``")}\``;
|
|
2851
|
-
}
|
|
2852
2849
|
function quoteLiteral(value) {
|
|
2853
2850
|
return `'${value.replaceAll("'", "''")}'`;
|
|
2854
2851
|
}
|
|
@@ -2887,8 +2884,8 @@ function datasetSql(dataset, database, bucket) {
|
|
|
2887
2884
|
var _a;
|
|
2888
2885
|
const history = `${quoteIdentifier(database)}.${quoteIdentifier(dataset.historyTable)}`;
|
|
2889
2886
|
const current = `${quoteIdentifier(database)}.${quoteIdentifier(dataset.currentTable)}`;
|
|
2890
|
-
const historyDdl =
|
|
2891
|
-
const currentDdl =
|
|
2887
|
+
const historyDdl = dataset.historyTable;
|
|
2888
|
+
const currentDdl = dataset.currentTable;
|
|
2892
2889
|
const raw = `${quoteIdentifier(database)}.${quoteIdentifier((_a = dataset.rawTable) != null ? _a : `${dataset.historyTable}_raw`)}`;
|
|
2893
2890
|
const typedColumns = dataset.columns.map(
|
|
2894
2891
|
(column) => `${quoteIdentifier(column.name)} ${column.type === "json" ? "varchar" : column.type}`
|