diff --git a/config/migrations/2023/20231205094325-mandaat-date-to-datetime.sparql b/config/migrations/2023/20231205094344-mandaat-date-to-datetime.sparql similarity index 76% rename from config/migrations/2023/20231205094325-mandaat-date-to-datetime.sparql rename to config/migrations/2023/20231205094344-mandaat-date-to-datetime.sparql index 0b7c557..6e81b83 100644 --- a/config/migrations/2023/20231205094325-mandaat-date-to-datetime.sparql +++ b/config/migrations/2023/20231205094344-mandaat-date-to-datetime.sparql @@ -20,7 +20,7 @@ WHERE { } - BIND(xsd:dateTime(?o) AS ?converteddate). + BIND(IF(strlen(str(?o)) = 10, strdt(concat(str(?o), 'T02:00:00'), xsd:dateTime), ?o) as ?converteddate). } ; DELETE { @@ -41,7 +41,7 @@ DELETE { } - BIND(xsd:dateTime(?o) AS ?converteddate). + BIND(IF(strlen(str(?o)) = 10, strdt(concat(str(?o), 'T02:00:00'), xsd:dateTime), ?o) as ?converteddate). } ; DELETE { @@ -62,7 +62,7 @@ DELETE { } - BIND(xsd:dateTime(?o) AS ?converteddate). + BIND(IF(strlen(str(?o)) = 10, strdt(concat(str(?o), 'T02:00:00'), xsd:dateTime), ?o) as ?converteddate). } ; DELETE { @@ -83,7 +83,7 @@ DELETE { } - BIND(xsd:dateTime(?o) AS ?converteddate). + BIND(IF(strlen(str(?o)) = 10, strdt(concat(str(?o), 'T02:00:00'), xsd:dateTime), ?o) as ?converteddate). } ; DELETE { @@ -104,7 +104,7 @@ WHERE { } - BIND(xsd:dateTime(?o) AS ?converteddate). + BIND(IF(strlen(str(?o)) = 10, strdt(concat(str(?o), 'T02:00:00'), xsd:dateTime), ?o) as ?converteddate). } ; DELETE { @@ -125,7 +125,7 @@ DELETE { } - BIND(xsd:dateTime(?o) AS ?converteddate). + BIND(IF(strlen(str(?o)) = 10, strdt(concat(str(?o), 'T02:00:00'), xsd:dateTime), ?o) as ?converteddate). } ; DELETE { @@ -146,6 +146,6 @@ DELETE { } - BIND(xsd:dateTime(?o) AS ?converteddate). + BIND(IF(strlen(str(?o)) = 10, strdt(concat(str(?o), 'T02:00:00'), xsd:dateTime), ?o) as ?converteddate). } ; \ No newline at end of file