Skip to content

Commit f2b1e4e

Browse files
committed
Bug fixes
1 parent d00397b commit f2b1e4e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/flashql/storage/Transaction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { DDLAPI } from './schemas/DDLAPI.js';
1+
import { CatalogAPI } from './schemas/CatalogAPI.js';
22

3-
export class Transaction extends DDLAPI {
3+
export class Transaction extends CatalogAPI {
44

55
#engine;
66
#parentTx;

src/flashql/storage/ViewStorage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class ViewStorage extends TableStorage {
171171
// boottime WAL replay
172172
// DDL manipulation
173173
// Upstream sync event
174-
return await super.delete(oldPk, newRow, { using: keyName, multiple, systemTag });
174+
return await super.delete(oldPk, { using: keyName, multiple, systemTag });
175175
}
176176

177177
const replicationAttrs = this.schema.view_mode_replication_attrs;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { SYSTEM_TAG } from '../TableStorage.js';
99
import { NamespaceDDL } from './NamespaceDDL.js';
1010
import { RelationDDL } from './RelationDDL.js';
1111

12-
export class DDLAPI {
12+
export class CatalogAPI {
1313

1414
#engine;
1515
#tx;
@@ -557,7 +557,7 @@ export class DDLAPI {
557557
// Drop all existing columns and constraints and indexes
558558
await this.#dropColumns(existingColumns, true);
559559
await this.#dropConstraints(existingConstraints, true);
560-
await this.#dropConstraints(existingIndexes, true);
560+
await this.#dropIndexes(existingIndexes, true);
561561

562562
// Add new derived columns
563563
let resultCols = [];

0 commit comments

Comments
 (0)