Skip to content

Commit

Permalink
Merge pull request #1549 from memphisdev/RND-368-add-created-at-to-co…
Browse files Browse the repository at this point in the history
…nnectors-on-get-station-overview-data-get-connector-details

add-created-at-to-connectors-on-get-station-overview-data-get-connect…
  • Loading branch information
shohamroditimemphis authored Dec 21, 2023
2 parents f6638a1 + a4d381f commit 3058fd2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ func createTables(MetadataDbClient MetadataStorage) error {
db := MetadataDbClient.Client
ctx := MetadataDbClient.Ctx

tables := []string{alterTenantsTable, tenantsTable, alterUsersTable, usersTable, alterAuditLogsTable, auditLogsTable, alterConfigurationsTable, configurationsTable, alterIntegrationsTable, integrationsTable, alterSchemasTable, schemasTable, alterTagsTable, tagsTable, alterStationsTable, stationsTable, alterDlsMsgsTable, dlsMessagesTable, alterConsumersTable, consumersTable, alterSchemaVerseTable, schemaVersionsTable, alterProducersTable, producersTable, alterConnectionsTable, asyncTasksTable, alterAsyncTasks, testEventsTable, functionsTable, attachedFunctionsTable, sharedLocksTable, functionsEngineWorkersTable, scheduledFunctionWorkersTable, connectorsEngineWorkersTable, connectorsConnectionsTable, connectorsTable}
tables := []string{alterTenantsTable, tenantsTable, alterUsersTable, usersTable, alterAuditLogsTable, auditLogsTable, alterConfigurationsTable, configurationsTable, alterIntegrationsTable, integrationsTable, alterSchemasTable, schemasTable, alterTagsTable, tagsTable, alterStationsTable, stationsTable, alterDlsMsgsTable, dlsMessagesTable, alterConsumersTable, consumersTable, alterSchemaVerseTable, schemaVersionsTable, alterProducersTable, producersTable, alterConnectionsTable, asyncTasksTable, alterAsyncTasks, testEventsTable, functionsTable, attachedFunctionsTable, sharedLocksTable, functionsEngineWorkersTable, scheduledFunctionWorkersTable, connectorsEngineWorkersTable, connectorsConnectionsTable, connectorsTable, alterConnectorsTable, alterConnectorsConnectionsTable}

for _, table := range tables {
_, err := db.Exec(ctx, table)
Expand Down
20 changes: 11 additions & 9 deletions db/db_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
package db

const (
testEventsTable = ``
functionsTable = ``
attachedFunctionsTable = ``
functionsEngineWorkersTable = ``
scheduledFunctionWorkersTable = ``
connectorsEngineWorkersTable = ``
connectorsConnectionsTable = ``
connectorsTable = ``
testEventsTable = ``
functionsTable = ``
attachedFunctionsTable = ``
functionsEngineWorkersTable = ``
scheduledFunctionWorkersTable = ``
connectorsEngineWorkersTable = ``
connectorsConnectionsTable = ``
connectorsTable = ``
alterConnectorsTable = ``
alterConnectorsConnectionsTable = ``
)

type FunctionSchema struct {
Expand Down Expand Up @@ -58,4 +60,4 @@ func DeleteAllTestEvents(tenantName string) error {

func DeleteScheduledFunctionWorkersByTenant(tenantName string) error {
return nil
}
}

0 comments on commit 3058fd2

Please sign in to comment.