diff --git a/src/main/kotlin/com/openlattice/mechanic/upgrades/ExportOrganizationMembers.kt b/src/main/kotlin/com/openlattice/mechanic/upgrades/ExportOrganizationMembers.kt index 6f087ca1..45df393a 100644 --- a/src/main/kotlin/com/openlattice/mechanic/upgrades/ExportOrganizationMembers.kt +++ b/src/main/kotlin/com/openlattice/mechanic/upgrades/ExportOrganizationMembers.kt @@ -41,6 +41,7 @@ class ExportOrganizationMembers( val members = principalService.getOrganizationMembers(organizationsIds) hds.connection.use { connection -> + connection.createStatement().use { stmt -> stmt.execute(USERS_EXPORT_TABLE) } connection.prepareStatement(INSERT_USER_SQL).use { ps -> members.forEach { (orgId, orgMembers) -> orgMembers.forEach { orgMember ->