PromucFlow_constructor/app/server/appsmith-server/src
Trisha Anand 55a00b1de4
fix: drop the organization collection (ex workspace) before inserting the default organization (tenant) (#39416)
## Description
This is for old deployments which existed before the ACL changes came in
migrating organization to workspace.


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Enhanced the data migration process to automatically clear outdated
organization records before migrating tenant data, reducing potential
conflicts and ensuring a smoother update process.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-02-24 17:08:22 +05:30
..
main fix: drop the organization collection (ex workspace) before inserting the default organization (tenant) (#39416) 2025-02-24 17:08:22 +05:30
test chore: git changes for new contract (#39376) 2025-02-21 12:49:53 +05:30