Skip to content

Commit ed1d6a0

Browse files
authored
Merge pull request #876 from trycompai/mariano/comp-166-osquery-agent-integration
[dev] [Marfuen] mariano/comp-166-osquery-agent-integration
2 parents 55bca3e + 98efdea commit ed1d6a0

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

packages/db/prisma/migrations/20250611142949_add_fleetdm/migration.sql renamed to packages/db/prisma/migrations/20250605184740_add_device_agent_details_to_org/migration.sql

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ BEGIN
1111
END;
1212
$$ LANGUAGE plpgsql;
1313

14-
-- AlterTable
15-
ALTER TABLE "Organization" ADD COLUMN "fleetDmLabelId" INTEGER,
16-
ADD COLUMN "fleetDmSecret" TEXT NOT NULL DEFAULT generate_random_secret(32),
17-
ADD COLUMN "isFleetSetupCompleted" BOOLEAN NOT NULL DEFAULT false,
18-
ADD COLUMN "osqueryAgentDownloadUrl" TEXT;
1914

2015
-- AlterTable
21-
ALTER TABLE "Member" ADD COLUMN "fleetDmLabelId" INTEGER;
16+
ALTER TABLE "Organization" ADD COLUMN "fleetDmSecret" TEXT NOT NULL DEFAULT generate_random_secret(32);
17+
ALTER TABLE "Organization" ADD COLUMN "fleetDmLabelId" INT;
18+
ALTER TABLE "Organization" ADD COLUMN "osqueryAgentDownloadUrl" TEXT;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "Member" ADD COLUMN "fleetDmLabelId" INTEGER;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "Organization" ADD COLUMN "isFleetSetupCompleted" BOOLEAN NOT NULL DEFAULT false;

packages/db/prisma/schema/auth.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ model Member {
8383
department Departments @default(none)
8484
isActive Boolean @default(true)
8585
employeeTrainingVideoCompletion EmployeeTrainingVideoCompletion[]
86+
fleetDmLabelId Int?
8687
8788
assignedPolicies Policy[] @relation("PolicyAssignee") // Policies where this member is an assignee
8889
approvedPolicies Policy[] @relation("PolicyApprover") // Policies where this member is an approver

0 commit comments

Comments
 (0)