Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ export class AddEventStreaming1769084311004 implements MigrationInterface {
ADD "todosEnabled" boolean NOT NULL
`)
await queryRunner.query(`
DROP INDEX "public"."idx_event_destination_project_scope"
DROP INDEX "idx_event_destination_project_scope"
`)
await queryRunner.query(`
DROP INDEX "public"."idx_event_destination_platform_scope"
DROP INDEX "idx_event_destination_platform_scope"
`)
await queryRunner.query(`
DROP TABLE "event_destination"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export class AddEventStreaming1769084419658 implements MigrationInterface {
ADD "todosEnabled" boolean NOT NULL
`)
await queryRunner.query(`
DROP INDEX "public"."idx_event_destination_project_scope"
DROP INDEX "idx_event_destination_project_scope"
`)
await queryRunner.query(`
DROP INDEX "public"."idx_event_destination_platform_scope"
DROP INDEX "idx_event_destination_platform_scope"
`)
await queryRunner.query(`
DROP TABLE "event_destination"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { MigrationInterface, QueryRunner } from 'typeorm'

export class AddRecordIdToCellEntity1769136998805 implements MigrationInterface {
name = 'AddRecordIdToCellEntity1769136998805'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
CREATE INDEX "idx_cell_record_id" ON "cell" ("recordId")
`)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
DROP INDEX "idx_cell_record_id"
`)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export const PlatformPlanEntity = new EntitySchema<PlatformPlanSchema>({
},
tablesEnabled: {
type: Boolean,
nullable: true,
},
activeFlowsLimit: {
type: Number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import path from 'path'
import { pieceTranslation } from '@activepieces/pieces-framework'
import { AppSystemProp, filePiecesUtils, memoryLock, rejectedPromiseHandler } from '@activepieces/server-shared'
import { ApEnvironment, apId, isEmpty, isNil, LocalesEnum, PackageType, PieceType } from '@activepieces/shared'
import KeyvSqlite from '@keyv/sqlite'
import dayjs from 'dayjs'
import { FastifyBaseLogger } from 'fastify'
import Keyv from 'keyv'
import KeyvSqlite from '@keyv/sqlite'
import cron from 'node-cron'
import semVer from 'semver'
import { repoFactory } from '../../core/db/repo-factory'
Expand Down Expand Up @@ -233,7 +233,7 @@ async function getOrCreateCache(): Promise<KVCacheInstance> {
return cacheInstance
}
const baseDir = system.getOrThrow(AppSystemProp.CONFIG_PATH)
const dbPath = path.join(baseDir, 'pieces-cache-db.sqlite')
const dbPath = path.resolve(path.join(baseDir, 'pieces-cache-db.sqlite'))
const db = new Keyv({
store: new KeyvSqlite(`sqlite://${dbPath}`),
})
Expand Down
4 changes: 4 additions & 0 deletions packages/server/api/src/app/tables/record/cell.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export const CellEntity = new EntitySchema<CellSchema>({
columns: ['projectId', 'fieldId', 'recordId'],
unique: true,
},
{
name: 'idx_cell_record_id',
columns: ['recordId'],
},
],
relations: {
record: {
Expand Down
Loading