-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add migration to support InstanceLink changes
- Add forwards method to create a receptor address for any existing Instance that has listener_port defined - Add forwards method to modify each InstanceLink object that changes target to the newly created receptor addresses This migration was implemented as follows: 1. Add a target_new to InstanceLink which is a foreign key to ReceptorAddress 2. create receptor addresses 3. link to these receptor addresses using the target_new field 4. rename target_new to target 5. drop listener_port and peers_from_control_nodes from Instance Signed-off-by: Seth Foster <[email protected]>
- Loading branch information
1 parent
70638ba
commit 34dbde3
Showing
4 changed files
with
72 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
awx/main/migrations/0190_instance_receptor_installation_method.py
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
awx/main/migrations/0191_alter_receptoraddress_canonical.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters