schema/mysql: prepare a migration for this feature

This commit is contained in:
Thomas Gelf 2016-10-24 21:38:47 +00:00
parent a735df89a0
commit fb5f0bb9f9

View File

@ -0,0 +1,8 @@
UPDATE director_deployment_log dl
JOIN icinga_endpoint e ON dl.peer_identity = e.host
SET dl.peer_identity = e.object_name
WHERE dl.peer_identity != e.object_name;
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (XXX, NOW());