@event-driven-io/emmett-postgresql 0.38.5 → 0.38.7

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/index.d.cts CHANGED
@@ -339,7 +339,8 @@ declare const defaultPostgreSQLOptions: PostgresEventStoreOptions;
339
339
  declare const PostgreSQLEventStoreDefaultStreamVersion = 0n;
340
340
  declare const getPostgreSQLEventStore: (connectionString: string, options?: PostgresEventStoreOptions) => PostgresEventStore;
341
341
 
342
- declare const appendToStreamSQL: _event_driven_io_dumbo.SQL;
342
+ declare const appendToStreamSQL: SQL;
343
+ declare const dropOldAppendToSQLWithoutGlobalPositions: SQL;
343
344
  type AppendToStreamResult = {
344
345
  success: true;
345
346
  nextStreamPosition: bigint;
@@ -413,18 +414,19 @@ declare const storeProcessorCheckpoint: <Position extends bigint | null>(execute
413
414
  partition?: string;
414
415
  }) => Promise<StoreLastProcessedProcessorPositionResult<null extends Position ? bigint | null : bigint>>;
415
416
 
416
- declare const streamsTableSQL: _event_driven_io_dumbo.SQL;
417
- declare const messagesTableSQL: _event_driven_io_dumbo.SQL;
418
- declare const subscriptionsTableSQL: _event_driven_io_dumbo.SQL;
419
- declare const sanitizeNameSQL: _event_driven_io_dumbo.SQL;
420
- declare const addTablePartitions: _event_driven_io_dumbo.SQL;
421
- declare const addPartitionSQL: _event_driven_io_dumbo.SQL;
422
- declare const addModuleSQL: _event_driven_io_dumbo.SQL;
423
- declare const addTenantSQL: _event_driven_io_dumbo.SQL;
424
- declare const addModuleForAllTenantsSQL: _event_driven_io_dumbo.SQL;
425
- declare const addTenantForAllModulesSQL: _event_driven_io_dumbo.SQL;
426
- declare const addDefaultPartitionSQL: _event_driven_io_dumbo.SQL;
427
- declare const migrationFromEventsToMessagesSQL: _event_driven_io_dumbo.SQL;
417
+ declare const streamsTableSQL: SQL;
418
+ declare const messagesTableSQL: SQL;
419
+ declare const subscriptionsTableSQL: SQL;
420
+ declare const sanitizeNameSQL: SQL;
421
+ declare const addTablePartitions: SQL;
422
+ declare const addPartitionSQL: SQL;
423
+ declare const dropFutureConceptModuleAndTenantFunctions: SQL;
424
+ declare const addModuleSQL: SQL;
425
+ declare const addTenantSQL: SQL;
426
+ declare const addModuleForAllTenantsSQL: SQL;
427
+ declare const addTenantForAllModulesSQL: SQL;
428
+ declare const addDefaultPartitionSQL: SQL;
429
+ declare const migrationFromEventsToMessagesSQL: SQL;
428
430
 
429
431
  declare const emmettPrefix = "emt";
430
432
  declare const globalTag = "global";
@@ -462,4 +464,4 @@ declare const subscriptionsTable: {
462
464
  declare const schemaSQL: SQL[];
463
465
  declare const createEventStoreSchema: (pool: NodePostgresPool) => Promise<void>;
464
466
 
465
- export { type AppendToStreamBeforeCommitHook, DefaultPostgreSQLEventStoreProcessorBatchSize, DefaultPostgreSQLEventStoreProcessorPullingFrequencyInMs, type ExtendableContext, type PongoAssertOptions, type PongoDocumentEvolve, type PongoMultiStreamProjectionOptions, type PongoProjectionHandlerContext, type PongoProjectionOptions, type PongoSingleStreamProjectionOptions, type PongoWithNotNullDocumentEvolve, type PongoWithNullableDocumentEvolve, type PostgreSQLCheckpointer, type PostgreSQLConsumerContext, type PostgreSQLEventStoreConsumer, type PostgreSQLEventStoreConsumerConfig, type PostgreSQLEventStoreConsumerOptions, PostgreSQLEventStoreDefaultStreamVersion, type PostgreSQLEventStoreMessageBatchPuller, type PostgreSQLEventStoreMessageBatchPullerOptions, type PostgreSQLEventStoreMessageBatchPullerStartFrom, type PostgreSQLEventStoreMessageBatchPullerStartOptions, type PostgreSQLEventStoreMessagesBatchHandlerResult, type PostgreSQLProcessor, type PostgreSQLProcessorConnectionOptions, type PostgreSQLProcessorEachBatchHandler, type PostgreSQLProcessorEachMessageHandler, type PostgreSQLProcessorHandlerContext, type PostgreSQLProcessorOptions, type PostgreSQLProcessorStartFrom, type PostgreSQLProjectionAssert, type PostgreSQLProjectionDefinition, type PostgreSQLProjectionHandler, type PostgreSQLProjectionHandlerContext, type PostgreSQLProjectionHandlerOptions, PostgreSQLProjectionSpec, type PostgreSQLProjectionSpecEvent, type PostgreSQLProjectionSpecOptions, type PostgreSQLProjectionSpecWhenOptions, type PostgreSQLProjectorOptions, type PostgreSQLReactorOptions, type PostgresEventStore, type PostgresEventStoreConnectionOptions, type PostgresEventStoreOptions, type PostgresReadEvent, type PostgresReadEventMetadata, type ReadLastMessageGlobalPositionResult, type ReadMessagesBatchOptions, type ReadMessagesBatchResult, type ReadProcessorCheckpointResult, type StoreLastProcessedProcessorPositionResult, addDefaultPartitionSQL, addModuleForAllTenantsSQL, addModuleSQL, addPartitionSQL, addTablePartitions, addTenantForAllModulesSQL, addTenantSQL, appendToStream, appendToStreamSQL, assertSQLQueryResultMatches, createEventStoreSchema, defaultPostgreSQLOptions, defaultTag, documentDoesNotExist, documentExists, documentMatchingExists, documentsAreTheSame, documentsMatchingHaveCount, emmettPrefix, eventInStream, eventsInStream, expectPongoDocuments, expectSQL, getPostgreSQLEventStore, globalNames, globalTag, handleProjections, messagesTable, messagesTableSQL, migrationFromEventsToMessagesSQL, newEventsInStream, pongoMultiStreamProjection, pongoProjection, pongoSingleStreamProjection, postgreSQLCheckpointer, postgreSQLEventStoreConsumer, postgreSQLEventStoreMessageBatchPuller, postgreSQLMessageProcessor, postgreSQLProjection, postgreSQLProjector, postgreSQLRawBatchSQLProjection, postgreSQLRawSQLProjection, postgreSQLReactor, readLastMessageGlobalPosition, readMessagesBatch, readProcessorCheckpoint, readStream, rebuildPostgreSQLProjections, sanitizeNameSQL, schemaSQL, storeProcessorCheckpoint, storeSubscriptionCheckpointSQL, streamsTable, streamsTableSQL, subscriptionsTable, subscriptionsTableSQL, zipPostgreSQLEventStoreMessageBatchPullerStartFrom };
467
+ export { type AppendToStreamBeforeCommitHook, DefaultPostgreSQLEventStoreProcessorBatchSize, DefaultPostgreSQLEventStoreProcessorPullingFrequencyInMs, type ExtendableContext, type PongoAssertOptions, type PongoDocumentEvolve, type PongoMultiStreamProjectionOptions, type PongoProjectionHandlerContext, type PongoProjectionOptions, type PongoSingleStreamProjectionOptions, type PongoWithNotNullDocumentEvolve, type PongoWithNullableDocumentEvolve, type PostgreSQLCheckpointer, type PostgreSQLConsumerContext, type PostgreSQLEventStoreConsumer, type PostgreSQLEventStoreConsumerConfig, type PostgreSQLEventStoreConsumerOptions, PostgreSQLEventStoreDefaultStreamVersion, type PostgreSQLEventStoreMessageBatchPuller, type PostgreSQLEventStoreMessageBatchPullerOptions, type PostgreSQLEventStoreMessageBatchPullerStartFrom, type PostgreSQLEventStoreMessageBatchPullerStartOptions, type PostgreSQLEventStoreMessagesBatchHandlerResult, type PostgreSQLProcessor, type PostgreSQLProcessorConnectionOptions, type PostgreSQLProcessorEachBatchHandler, type PostgreSQLProcessorEachMessageHandler, type PostgreSQLProcessorHandlerContext, type PostgreSQLProcessorOptions, type PostgreSQLProcessorStartFrom, type PostgreSQLProjectionAssert, type PostgreSQLProjectionDefinition, type PostgreSQLProjectionHandler, type PostgreSQLProjectionHandlerContext, type PostgreSQLProjectionHandlerOptions, PostgreSQLProjectionSpec, type PostgreSQLProjectionSpecEvent, type PostgreSQLProjectionSpecOptions, type PostgreSQLProjectionSpecWhenOptions, type PostgreSQLProjectorOptions, type PostgreSQLReactorOptions, type PostgresEventStore, type PostgresEventStoreConnectionOptions, type PostgresEventStoreOptions, type PostgresReadEvent, type PostgresReadEventMetadata, type ReadLastMessageGlobalPositionResult, type ReadMessagesBatchOptions, type ReadMessagesBatchResult, type ReadProcessorCheckpointResult, type StoreLastProcessedProcessorPositionResult, addDefaultPartitionSQL, addModuleForAllTenantsSQL, addModuleSQL, addPartitionSQL, addTablePartitions, addTenantForAllModulesSQL, addTenantSQL, appendToStream, appendToStreamSQL, assertSQLQueryResultMatches, createEventStoreSchema, defaultPostgreSQLOptions, defaultTag, documentDoesNotExist, documentExists, documentMatchingExists, documentsAreTheSame, documentsMatchingHaveCount, dropFutureConceptModuleAndTenantFunctions, dropOldAppendToSQLWithoutGlobalPositions, emmettPrefix, eventInStream, eventsInStream, expectPongoDocuments, expectSQL, getPostgreSQLEventStore, globalNames, globalTag, handleProjections, messagesTable, messagesTableSQL, migrationFromEventsToMessagesSQL, newEventsInStream, pongoMultiStreamProjection, pongoProjection, pongoSingleStreamProjection, postgreSQLCheckpointer, postgreSQLEventStoreConsumer, postgreSQLEventStoreMessageBatchPuller, postgreSQLMessageProcessor, postgreSQLProjection, postgreSQLProjector, postgreSQLRawBatchSQLProjection, postgreSQLRawSQLProjection, postgreSQLReactor, readLastMessageGlobalPosition, readMessagesBatch, readProcessorCheckpoint, readStream, rebuildPostgreSQLProjections, sanitizeNameSQL, schemaSQL, storeProcessorCheckpoint, storeSubscriptionCheckpointSQL, streamsTable, streamsTableSQL, subscriptionsTable, subscriptionsTableSQL, zipPostgreSQLEventStoreMessageBatchPullerStartFrom };
package/dist/index.d.ts CHANGED
@@ -339,7 +339,8 @@ declare const defaultPostgreSQLOptions: PostgresEventStoreOptions;
339
339
  declare const PostgreSQLEventStoreDefaultStreamVersion = 0n;
340
340
  declare const getPostgreSQLEventStore: (connectionString: string, options?: PostgresEventStoreOptions) => PostgresEventStore;
341
341
 
342
- declare const appendToStreamSQL: _event_driven_io_dumbo.SQL;
342
+ declare const appendToStreamSQL: SQL;
343
+ declare const dropOldAppendToSQLWithoutGlobalPositions: SQL;
343
344
  type AppendToStreamResult = {
344
345
  success: true;
345
346
  nextStreamPosition: bigint;
@@ -413,18 +414,19 @@ declare const storeProcessorCheckpoint: <Position extends bigint | null>(execute
413
414
  partition?: string;
414
415
  }) => Promise<StoreLastProcessedProcessorPositionResult<null extends Position ? bigint | null : bigint>>;
415
416
 
416
- declare const streamsTableSQL: _event_driven_io_dumbo.SQL;
417
- declare const messagesTableSQL: _event_driven_io_dumbo.SQL;
418
- declare const subscriptionsTableSQL: _event_driven_io_dumbo.SQL;
419
- declare const sanitizeNameSQL: _event_driven_io_dumbo.SQL;
420
- declare const addTablePartitions: _event_driven_io_dumbo.SQL;
421
- declare const addPartitionSQL: _event_driven_io_dumbo.SQL;
422
- declare const addModuleSQL: _event_driven_io_dumbo.SQL;
423
- declare const addTenantSQL: _event_driven_io_dumbo.SQL;
424
- declare const addModuleForAllTenantsSQL: _event_driven_io_dumbo.SQL;
425
- declare const addTenantForAllModulesSQL: _event_driven_io_dumbo.SQL;
426
- declare const addDefaultPartitionSQL: _event_driven_io_dumbo.SQL;
427
- declare const migrationFromEventsToMessagesSQL: _event_driven_io_dumbo.SQL;
417
+ declare const streamsTableSQL: SQL;
418
+ declare const messagesTableSQL: SQL;
419
+ declare const subscriptionsTableSQL: SQL;
420
+ declare const sanitizeNameSQL: SQL;
421
+ declare const addTablePartitions: SQL;
422
+ declare const addPartitionSQL: SQL;
423
+ declare const dropFutureConceptModuleAndTenantFunctions: SQL;
424
+ declare const addModuleSQL: SQL;
425
+ declare const addTenantSQL: SQL;
426
+ declare const addModuleForAllTenantsSQL: SQL;
427
+ declare const addTenantForAllModulesSQL: SQL;
428
+ declare const addDefaultPartitionSQL: SQL;
429
+ declare const migrationFromEventsToMessagesSQL: SQL;
428
430
 
429
431
  declare const emmettPrefix = "emt";
430
432
  declare const globalTag = "global";
@@ -462,4 +464,4 @@ declare const subscriptionsTable: {
462
464
  declare const schemaSQL: SQL[];
463
465
  declare const createEventStoreSchema: (pool: NodePostgresPool) => Promise<void>;
464
466
 
465
- export { type AppendToStreamBeforeCommitHook, DefaultPostgreSQLEventStoreProcessorBatchSize, DefaultPostgreSQLEventStoreProcessorPullingFrequencyInMs, type ExtendableContext, type PongoAssertOptions, type PongoDocumentEvolve, type PongoMultiStreamProjectionOptions, type PongoProjectionHandlerContext, type PongoProjectionOptions, type PongoSingleStreamProjectionOptions, type PongoWithNotNullDocumentEvolve, type PongoWithNullableDocumentEvolve, type PostgreSQLCheckpointer, type PostgreSQLConsumerContext, type PostgreSQLEventStoreConsumer, type PostgreSQLEventStoreConsumerConfig, type PostgreSQLEventStoreConsumerOptions, PostgreSQLEventStoreDefaultStreamVersion, type PostgreSQLEventStoreMessageBatchPuller, type PostgreSQLEventStoreMessageBatchPullerOptions, type PostgreSQLEventStoreMessageBatchPullerStartFrom, type PostgreSQLEventStoreMessageBatchPullerStartOptions, type PostgreSQLEventStoreMessagesBatchHandlerResult, type PostgreSQLProcessor, type PostgreSQLProcessorConnectionOptions, type PostgreSQLProcessorEachBatchHandler, type PostgreSQLProcessorEachMessageHandler, type PostgreSQLProcessorHandlerContext, type PostgreSQLProcessorOptions, type PostgreSQLProcessorStartFrom, type PostgreSQLProjectionAssert, type PostgreSQLProjectionDefinition, type PostgreSQLProjectionHandler, type PostgreSQLProjectionHandlerContext, type PostgreSQLProjectionHandlerOptions, PostgreSQLProjectionSpec, type PostgreSQLProjectionSpecEvent, type PostgreSQLProjectionSpecOptions, type PostgreSQLProjectionSpecWhenOptions, type PostgreSQLProjectorOptions, type PostgreSQLReactorOptions, type PostgresEventStore, type PostgresEventStoreConnectionOptions, type PostgresEventStoreOptions, type PostgresReadEvent, type PostgresReadEventMetadata, type ReadLastMessageGlobalPositionResult, type ReadMessagesBatchOptions, type ReadMessagesBatchResult, type ReadProcessorCheckpointResult, type StoreLastProcessedProcessorPositionResult, addDefaultPartitionSQL, addModuleForAllTenantsSQL, addModuleSQL, addPartitionSQL, addTablePartitions, addTenantForAllModulesSQL, addTenantSQL, appendToStream, appendToStreamSQL, assertSQLQueryResultMatches, createEventStoreSchema, defaultPostgreSQLOptions, defaultTag, documentDoesNotExist, documentExists, documentMatchingExists, documentsAreTheSame, documentsMatchingHaveCount, emmettPrefix, eventInStream, eventsInStream, expectPongoDocuments, expectSQL, getPostgreSQLEventStore, globalNames, globalTag, handleProjections, messagesTable, messagesTableSQL, migrationFromEventsToMessagesSQL, newEventsInStream, pongoMultiStreamProjection, pongoProjection, pongoSingleStreamProjection, postgreSQLCheckpointer, postgreSQLEventStoreConsumer, postgreSQLEventStoreMessageBatchPuller, postgreSQLMessageProcessor, postgreSQLProjection, postgreSQLProjector, postgreSQLRawBatchSQLProjection, postgreSQLRawSQLProjection, postgreSQLReactor, readLastMessageGlobalPosition, readMessagesBatch, readProcessorCheckpoint, readStream, rebuildPostgreSQLProjections, sanitizeNameSQL, schemaSQL, storeProcessorCheckpoint, storeSubscriptionCheckpointSQL, streamsTable, streamsTableSQL, subscriptionsTable, subscriptionsTableSQL, zipPostgreSQLEventStoreMessageBatchPullerStartFrom };
467
+ export { type AppendToStreamBeforeCommitHook, DefaultPostgreSQLEventStoreProcessorBatchSize, DefaultPostgreSQLEventStoreProcessorPullingFrequencyInMs, type ExtendableContext, type PongoAssertOptions, type PongoDocumentEvolve, type PongoMultiStreamProjectionOptions, type PongoProjectionHandlerContext, type PongoProjectionOptions, type PongoSingleStreamProjectionOptions, type PongoWithNotNullDocumentEvolve, type PongoWithNullableDocumentEvolve, type PostgreSQLCheckpointer, type PostgreSQLConsumerContext, type PostgreSQLEventStoreConsumer, type PostgreSQLEventStoreConsumerConfig, type PostgreSQLEventStoreConsumerOptions, PostgreSQLEventStoreDefaultStreamVersion, type PostgreSQLEventStoreMessageBatchPuller, type PostgreSQLEventStoreMessageBatchPullerOptions, type PostgreSQLEventStoreMessageBatchPullerStartFrom, type PostgreSQLEventStoreMessageBatchPullerStartOptions, type PostgreSQLEventStoreMessagesBatchHandlerResult, type PostgreSQLProcessor, type PostgreSQLProcessorConnectionOptions, type PostgreSQLProcessorEachBatchHandler, type PostgreSQLProcessorEachMessageHandler, type PostgreSQLProcessorHandlerContext, type PostgreSQLProcessorOptions, type PostgreSQLProcessorStartFrom, type PostgreSQLProjectionAssert, type PostgreSQLProjectionDefinition, type PostgreSQLProjectionHandler, type PostgreSQLProjectionHandlerContext, type PostgreSQLProjectionHandlerOptions, PostgreSQLProjectionSpec, type PostgreSQLProjectionSpecEvent, type PostgreSQLProjectionSpecOptions, type PostgreSQLProjectionSpecWhenOptions, type PostgreSQLProjectorOptions, type PostgreSQLReactorOptions, type PostgresEventStore, type PostgresEventStoreConnectionOptions, type PostgresEventStoreOptions, type PostgresReadEvent, type PostgresReadEventMetadata, type ReadLastMessageGlobalPositionResult, type ReadMessagesBatchOptions, type ReadMessagesBatchResult, type ReadProcessorCheckpointResult, type StoreLastProcessedProcessorPositionResult, addDefaultPartitionSQL, addModuleForAllTenantsSQL, addModuleSQL, addPartitionSQL, addTablePartitions, addTenantForAllModulesSQL, addTenantSQL, appendToStream, appendToStreamSQL, assertSQLQueryResultMatches, createEventStoreSchema, defaultPostgreSQLOptions, defaultTag, documentDoesNotExist, documentExists, documentMatchingExists, documentsAreTheSame, documentsMatchingHaveCount, dropFutureConceptModuleAndTenantFunctions, dropOldAppendToSQLWithoutGlobalPositions, emmettPrefix, eventInStream, eventsInStream, expectPongoDocuments, expectSQL, getPostgreSQLEventStore, globalNames, globalTag, handleProjections, messagesTable, messagesTableSQL, migrationFromEventsToMessagesSQL, newEventsInStream, pongoMultiStreamProjection, pongoProjection, pongoSingleStreamProjection, postgreSQLCheckpointer, postgreSQLEventStoreConsumer, postgreSQLEventStoreMessageBatchPuller, postgreSQLMessageProcessor, postgreSQLProjection, postgreSQLProjector, postgreSQLRawBatchSQLProjection, postgreSQLRawSQLProjection, postgreSQLReactor, readLastMessageGlobalPosition, readMessagesBatch, readProcessorCheckpoint, readStream, rebuildPostgreSQLProjections, sanitizeNameSQL, schemaSQL, storeProcessorCheckpoint, storeSubscriptionCheckpointSQL, streamsTable, streamsTableSQL, subscriptionsTable, subscriptionsTableSQL, zipPostgreSQLEventStoreMessageBatchPullerStartFrom };
package/dist/index.js CHANGED
@@ -945,6 +945,7 @@ import "@event-driven-io/dumbo";
945
945
  import {
946
946
  rawSql,
947
947
  single,
948
+ SQL,
948
949
  sql as sql3
949
950
  } from "@event-driven-io/dumbo";
950
951
  import { v4 as uuid6 } from "uuid";
@@ -1041,6 +1042,29 @@ var appendToStreamSQL = rawSql(
1041
1042
  $$;
1042
1043
  `
1043
1044
  );
1045
+ var dropOldAppendToSQLWithoutGlobalPositions = SQL`
1046
+ DO $$
1047
+ DECLARE
1048
+ v_current_return_type text;
1049
+ BEGIN
1050
+ -- Get the current return type definition as text
1051
+ SELECT pg_get_function_result(p.oid)
1052
+ INTO v_current_return_type
1053
+ FROM pg_proc p
1054
+ JOIN pg_namespace n ON p.pronamespace = n.oid
1055
+ WHERE n.nspname = current_schema() -- or specify your schema
1056
+ AND p.proname = 'emt_append_to_stream'
1057
+ AND p.pronargs = 10; -- number of arguments
1058
+
1059
+ -- Check if it contains the old column name
1060
+ IF v_current_return_type IS NOT NULL AND
1061
+ v_current_return_type LIKE '%last_global_position%' AND
1062
+ v_current_return_type NOT LIKE '%global_positions%' THEN
1063
+ DROP FUNCTION emt_append_to_stream(text[], jsonb[], jsonb[], text[], text[], text[], text, text, bigint, text);
1064
+ RAISE NOTICE 'Old version of function dropped. Return type was: %', v_current_return_type;
1065
+ END IF;
1066
+ END $$;
1067
+ `;
1044
1068
  var appendToStream = (pool, streamName, streamType, messages, options) => pool.withTransaction(async (transaction) => {
1045
1069
  const { execute } = transaction;
1046
1070
  if (messages.length === 0)
@@ -1230,7 +1254,7 @@ var storeProcessorCheckpoint = async (execute, options) => {
1230
1254
  };
1231
1255
 
1232
1256
  // src/eventStore/schema/tables.ts
1233
- import { rawSql as rawSql2 } from "@event-driven-io/dumbo";
1257
+ import { rawSql as rawSql2, SQL as SQL2 } from "@event-driven-io/dumbo";
1234
1258
  var streamsTableSQL = rawSql2(
1235
1259
  `CREATE TABLE IF NOT EXISTS ${streamsTable.name}(
1236
1260
  stream_id TEXT NOT NULL,
@@ -1335,6 +1359,12 @@ var addPartitionSQL = rawSql2(
1335
1359
  END;
1336
1360
  $$ LANGUAGE plpgsql;`
1337
1361
  );
1362
+ var dropFutureConceptModuleAndTenantFunctions = SQL2`
1363
+ DROP FUNCTION IF EXISTS add_module(TEXT);
1364
+ DROP FUNCTION IF EXISTS add_tenant(TEXT, TEXT);
1365
+ DROP FUNCTION IF EXISTS add_module_for_all_tenants(TEXT);
1366
+ DROP FUNCTION IF EXISTS add_tenant_for_all_modules(TEXT);
1367
+ `;
1338
1368
  var addModuleSQL = rawSql2(
1339
1369
  `
1340
1370
  CREATE OR REPLACE FUNCTION add_module(new_module TEXT) RETURNS void AS $$
@@ -1657,10 +1687,12 @@ var schemaSQL = [
1657
1687
  sanitizeNameSQL,
1658
1688
  addTablePartitions,
1659
1689
  addPartitionSQL,
1660
- addModuleSQL,
1661
- addTenantSQL,
1662
- addModuleForAllTenantsSQL,
1663
- addTenantForAllModulesSQL,
1690
+ dropFutureConceptModuleAndTenantFunctions,
1691
+ //addModuleSQL,
1692
+ //addTenantSQL,
1693
+ //addModuleForAllTenantsSQL,
1694
+ //addTenantForAllModulesSQL,
1695
+ dropOldAppendToSQLWithoutGlobalPositions,
1664
1696
  appendToStreamSQL,
1665
1697
  addDefaultPartitionSQL,
1666
1698
  storeSubscriptionCheckpointSQL
@@ -2441,6 +2473,8 @@ export {
2441
2473
  documentMatchingExists,
2442
2474
  documentsAreTheSame,
2443
2475
  documentsMatchingHaveCount,
2476
+ dropFutureConceptModuleAndTenantFunctions,
2477
+ dropOldAppendToSQLWithoutGlobalPositions,
2444
2478
  emmettPrefix,
2445
2479
  eventInStream,
2446
2480
  eventsInStream,