Skip to content

Commit 5541c72

Browse files
committed
Prod changes because prod and dev are different
1 parent 2c5e778 commit 5541c72

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

legacy_migrate/prisma/source-auth.schema.prisma

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ model RoleAssignment {
4141
createdAt DateTime? @db.Timestamp(0)
4242
modifiedBy Int?
4343
modifiedAt DateTime? @db.Timestamp(0)
44-
subjectType Int @default(1) @map("subject_type")
4544
46-
@@unique([roleId, subjectId, subjectType], map: "role_subject_id_subject_type")
4745
@@index([subjectId], map: "subject_id_idx")
4846
@@index([roleId], map: "role_id_idx")
4947
@@map("role_assignment")

legacy_migrate/src/migrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async function migrateRoleAssignments() {
158158
roleId_subjectId_subjectType: {
159159
roleId: ra.roleId,
160160
subjectId: ra.subjectId,
161-
subjectType: ra.subjectType ?? 1,
161+
subjectType: 1,
162162
},
163163
},
164164
create: {

0 commit comments

Comments
 (0)