CE-2435: Prepare DB to integrate with netbox
A Flyway script with version 23 has been added to assign host IDs from NetBox to all deployments. Two new columns, is_vm and netbox_migration_log has been added to the ioc_deployment table. The is_vm indicates which NetBox endpoint we should call between the two when querying host data. An the netbox_migration_log can be helpful for us during migration, we can delete it afterwards. Also, an initial service that can communicate with the NetBox API has been added.
Please do not deploy it any of the environment!
UPDATE: The NetBox host ID migration has been moved away from the FlyWay, to a separate endpoint. The endpoint usage is requires admin privileges. And it returns the details of the migration.
Closes CE-2435
Edited by Domonkos Gulyas