-- DropIndex DROP INDEX "ProjectSearchDocument_normalizedBreadcrumb_trgm_idx"; -- DropIndex DROP INDEX "ProjectSearchDocument_normalizedCode_trgm_idx"; -- DropIndex DROP INDEX "ProjectSearchDocument_normalizedName_trgm_idx"; -- DropIndex DROP INDEX "ProjectSearchDocument_normalizedSearchText_trgm_idx"; -- DropIndex DROP INDEX "Team_archivedAt_idx"; -- AlterTable ALTER TABLE "ExternalDirectoryConnection" ALTER COLUMN "updatedAt" DROP DEFAULT; -- AlterTable ALTER TABLE "Organization" ALTER COLUMN "updatedAt" DROP DEFAULT; -- AlterTable ALTER TABLE "ProjectSearchDocument" ALTER COLUMN "updatedAt" DROP DEFAULT; -- CreateTable CREATE TABLE "FileLibRecentVisit" ( "id" TEXT NOT NULL, "organizationId" TEXT NOT NULL, "userId" TEXT NOT NULL, "nodeId" TEXT NOT NULL, "filePath" TEXT NOT NULL DEFAULT '', "openedAt" TIMESTAMP(3) NOT NULL, CONSTRAINT "FileLibRecentVisit_pkey" PRIMARY KEY ("id") ); -- CreateIndex CREATE INDEX "FileLibRecentVisit_organizationId_userId_openedAt_idx" ON "FileLibRecentVisit"("organizationId", "userId", "openedAt"); -- CreateIndex CREATE UNIQUE INDEX "FileLibRecentVisit_organizationId_userId_nodeId_filePath_key" ON "FileLibRecentVisit"("organizationId", "userId", "nodeId", "filePath"); -- RenameForeignKey ALTER TABLE "OrganizationFeishuApplicationConnection" RENAME CONSTRAINT "OrganizationFeishuApplicationConnection_activeSecretVersionId_f" TO "OrganizationFeishuApplicationConnection_activeSecretVersio_fkey"; -- RenameIndex ALTER INDEX "ExternalPrincipalMembership_principalType_principalId_revokedAt" RENAME TO "ExternalPrincipalMembership_principalType_principalId_revok_idx"; -- RenameIndex ALTER INDEX "ExternalPrincipalMembership_userId_principalType_principalId_co" RENAME TO "ExternalPrincipalMembership_userId_principalType_principalI_key"; -- RenameIndex ALTER INDEX "OrganizationAgentRoleSkill_organizationId_agentRoleId_sortOrder" RENAME TO "OrganizationAgentRoleSkill_organizationId_agentRoleId_sortO_idx"; -- RenameIndex ALTER INDEX "OrganizationCapabilityConnection_organizationId_capabilityId_ke" RENAME TO "OrganizationCapabilityConnection_organizationId_capabilityI_key"; -- RenameIndex ALTER INDEX "OrganizationFeishuApplicationConnection_activeSecretVersionId_k" RENAME TO "OrganizationFeishuApplicationConnection_activeSecretVersion_key"; -- RenameIndex ALTER INDEX "OrganizationFeishuApplicationConnection_appIdentityFingerprint_" RENAME TO "OrganizationFeishuApplicationConnection_appIdentityFingerpr_key"; -- RenameIndex ALTER INDEX "TeamExternalBinding_teamId_principalType_principalId_revokedAt_" RENAME TO "TeamExternalBinding_teamId_principalType_principalId_revoke_key";