Skip to content

Commit 1f5f6c4

Browse files
committed
Round 5
1 parent fb9d3e1 commit 1f5f6c4

File tree

2 files changed

+8
-33
lines changed

2 files changed

+8
-33
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
Warnings:
3+
4+
- You are about to drop the `IntegrationConnection` table. If the table is not empty, all the data it contains will be lost.
5+
6+
*/
7+
-- DropTable
8+
DROP TABLE IF EXISTS "IntegrationConnection" CASCADE;

internal-packages/database/prisma/schema.prisma

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ model Organization {
142142
hasRequestedV3 Boolean @default(false)
143143
144144
environments RuntimeEnvironment[]
145-
connections IntegrationConnection[]
146145
endpoints Endpoint[]
147146
jobs Job[]
148147
jobVersions JobVersion[]
@@ -177,7 +176,6 @@ model ExternalAccount {
177176
createdAt DateTime @default(now())
178177
updatedAt DateTime @updatedAt
179178
180-
connections IntegrationConnection[]
181179
events EventRecord[]
182180
runs JobRun[]
183181
EventDispatcher EventDispatcher[]
@@ -253,8 +251,6 @@ model Integration {
253251
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade, onUpdate: Cascade)
254252
organizationId String
255253
256-
connections IntegrationConnection[]
257-
258254
@@unique([organizationId, slug])
259255
}
260256

@@ -269,34 +265,6 @@ enum IntegrationSetupStatus {
269265
COMPLETE
270266
}
271267

272-
model IntegrationConnection {
273-
id String @id @default(cuid())
274-
275-
connectionType ConnectionType @default(DEVELOPER)
276-
277-
expiresAt DateTime?
278-
metadata Json
279-
scopes String[]
280-
281-
dataReference SecretReference @relation(fields: [dataReferenceId], references: [id], onDelete: Cascade, onUpdate: Cascade)
282-
dataReferenceId String
283-
284-
integration Integration @relation(fields: [integrationId], references: [id], onDelete: Cascade, onUpdate: Cascade)
285-
integrationId String
286-
287-
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade, onUpdate: Cascade)
288-
organizationId String
289-
290-
externalAccount ExternalAccount? @relation(fields: [externalAccountId], references: [id], onDelete: Cascade, onUpdate: Cascade)
291-
externalAccountId String?
292-
293-
createdAt DateTime @default(now())
294-
updatedAt DateTime @updatedAt
295-
296-
/// If enabled is false, OAuth refreshing will not be attempted
297-
enabled Boolean @default(true)
298-
}
299-
300268
enum ConnectionType {
301269
EXTERNAL
302270
DEVELOPER
@@ -847,7 +815,6 @@ model SecretReference {
847815
key String @unique
848816
provider SecretStoreProvider @default(DATABASE)
849817
850-
connections IntegrationConnection[]
851818
integrations Integration[]
852819
httpEndpoints TriggerHttpEndpoint[]
853820
environmentVariableValues EnvironmentVariableValue[]

0 commit comments

Comments
 (0)