Am 12.07.2016 um 17:02 schrieb Brad Jorsch (Anomie):
> On Tue, Jul 12, 2016 at 4:40 AM, Daniel Kinzler <[email protected]
>
> One simple method: assign the numeric IDs by making the numeric ID column
> auto-increment, and insert the model strings into the table as needed.

When exactly? When update.php runs? Should work fine, but I'd like a nice
interface that extensions can use for this. Or should we check and auto-insert
on every page edit?

To answer my own question about config in the database: unlike interwiki/sites
and namespaces, this isn't realyl configuration, it's a registry used by
extensions. Users may freely derfine namespaces for their wiki, but they can't
freely define content models.

> The disadvantage is that there wouldn't be any cross-wiki mapping between
> model names and ids, which can be mitigated somewhat by never exposing the
> ids externally.

Yes, we should definitly not expose those!

> Does the registry idea work all that smoothly for namespaces, though?

I don't think it was ever really tried for namespace. But it's not a perfect
solution. Just a possibility.


-- daniel

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to