lifecycle: fix outpost service connections not being migrated
This commit is contained in:
parent
1cfe1aff13
commit
e0bc4f1da5
|
@ -65,7 +65,7 @@ class AuthentikOutpostConfig(AppConfig):
|
||||||
socket = Path(unix_socket_path)
|
socket = Path(unix_socket_path)
|
||||||
if socket.exists() and access(socket, R_OK):
|
if socket.exists() and access(socket, R_OK):
|
||||||
LOGGER.debug("Detected local docker socket")
|
LOGGER.debug("Detected local docker socket")
|
||||||
if not DockerServiceConnection.objects.filter(local=True).exists():
|
if len(DockerServiceConnection.objects.filter(local=True)) == 0:
|
||||||
LOGGER.debug("Created Service Connection for docker")
|
LOGGER.debug("Created Service Connection for docker")
|
||||||
DockerServiceConnection.objects.create(
|
DockerServiceConnection.objects.create(
|
||||||
name="Local Docker connection",
|
name="Local Docker connection",
|
||||||
|
|
|
@ -22,6 +22,9 @@ ALTER TABLE passbook_flows_flowstagebinding RENAME TO authentik_flows_flowstageb
|
||||||
ALTER TABLE passbook_flows_stage RENAME TO authentik_flows_stage;
|
ALTER TABLE passbook_flows_stage RENAME TO authentik_flows_stage;
|
||||||
ALTER TABLE passbook_outposts_outpost RENAME TO authentik_outposts_outpost;
|
ALTER TABLE passbook_outposts_outpost RENAME TO authentik_outposts_outpost;
|
||||||
ALTER TABLE passbook_outposts_outpost_providers RENAME TO authentik_outposts_outpost_providers;
|
ALTER TABLE passbook_outposts_outpost_providers RENAME TO authentik_outposts_outpost_providers;
|
||||||
|
ALTER TABLE passbook_outposts_dockerserviceconnection RENAME TO authentik_outposts_dockerserviceconnection;
|
||||||
|
ALTER TABLE passbook_outposts_kubernetesserviceconnection RENAME TO authentik_outposts_kubernetesserviceconnection;
|
||||||
|
ALTER TABLE passbook_outposts_outpostserviceconnection RENAME TO authentik_outposts_outpostserviceconnection;
|
||||||
ALTER TABLE passbook_policies_dummy_dummypolicy RENAME TO authentik_policies_dummy_dummypolicy;
|
ALTER TABLE passbook_policies_dummy_dummypolicy RENAME TO authentik_policies_dummy_dummypolicy;
|
||||||
ALTER TABLE passbook_policies_expiry_passwordexpirypolicy RENAME TO authentik_policies_expiry_passwordexpirypolicy;
|
ALTER TABLE passbook_policies_expiry_passwordexpirypolicy RENAME TO authentik_policies_expiry_passwordexpirypolicy;
|
||||||
ALTER TABLE passbook_policies_expression_expressionpolicy RENAME TO authentik_policies_expression_expressionpolicy;
|
ALTER TABLE passbook_policies_expression_expressionpolicy RENAME TO authentik_policies_expression_expressionpolicy;
|
||||||
|
|
Reference in New Issue