Page MenuHomePhabricator

Convert Deutsche Bahn station code (P8671) from String to External Identifier
Closed, ResolvedPublic3 Estimated Story Points

Description

Problem:
P8671 has datatype string. It should be converted to have datatype external identifier.

Community consensus is at https://www.wikidata.org/wiki/Wikidata:Project_chat#Change_property_type

Acceptance criteria:

  • P8671 has datatype external identifier

Event Timeline

noarave set the point value for this task to 3.Apr 7 2021, 10:35 AM

Mentioned in SAL (#wikimedia-operations) [2021-04-15T01:19:00Z] <Amir1> mwscript extensions/Wikibase/repo/maintenance/changePropertyDataType.php wikidatawiki --property-id P8671 --new-data-type external-id (T278427)

Basically ran this command on mwmaint1002:

mwscript extensions/Wikibase/repo/maintenance/changePropertyDataType.php wikidatawiki --property-id P8671 --new-data-type external-id

mwscript is a wrapper around php that enables us tun maintenance scripts. The first argument is the database name of the wiki you want the script to be run on (as context), the rest is being fed to original maintenance script.

I could see external identifier in the P8671 as shown in the image. @Ladsgroup Could you tell me if this ticket is only with this regard or are there any other testing scenarios?

It should show up in "identifier" section in items using the property and it has happened: https://www.wikidata.org/wiki/Q165368