Database prefix


Is it possible to use a prefix for tables in database? It was possible with Omeka2, but I don’t find how to do it in Omeka S.


Omeka S doesn’t allow database prefixes. That’s mostly due to our use of Doctrine to manage DB interactions, it doesn’t work with prefixes.

Oh. I’m disappointed, because it’s a nice feature: we are often limited to only one database.

It seems to be implementable with Doctrine. Do you think a module can implement this feature? It would require to be loaded before OmekaS installation.

On quick inspection it appears to be implementable from within our EntityManagerFactory, but there may be some issues with enforcing the prefix on tables created by modules. It’ll take some experimentation.

1 Like