In order to keep things nicely separated I would always prefix tables and columns from extensions with
vendor_extensionname_
. But 30 characters is way too short for doing this. Is there any reason why there is a 30 character limit?vendor_extensionname_
. But 30 characters is way too short for doing this. Is there any reason why there is a 30 character limit?That would imply that anyone using Oracle would not be installing extensions (may possibly be true, but cannot be guaranteed)martti wrote: Mon Apr 23, 2018 9:31 am How about keeping the 30 character limit for the core, but allowing 63 bytes for the extensions?
david63 wrote: Mon Apr 23, 2018 9:59 amThat would imply that anyone using Oracle would not be installing extensions (may possibly be true, but cannot be guaranteed)martti wrote: Mon Apr 23, 2018 9:31 am How about keeping the 30 character limit for the core, but allowing 63 bytes for the extensions?
That's good for now, but it would be cleaner if you use the same prefix everywhere (instant recognisable) for anything related to your extension.3Di wrote: Tue Apr 24, 2018 5:20 am Using shorthands/acronyms is the way to go. As it is now, no need to add rules/regulations here IMHO.
mae_settings --->MyAwesomeExtension_settings
Doctrine ORM trims column-names and adds a counter-number, but there is an open bug on it. And I don't know about the indexes and tables.DavidIQ wrote: Tue Apr 24, 2018 12:15 pm It's also not just table names. There's limitations on index names as well. In any case I'm not sure that adding conditionals to the dbal for doing different things depending on dbms versions is something we'd want to do (more of). However there's been some discussions about just going with Doctrine's ORM instead of continuing with our dbal so maybe this would get addressed at that point.
Isn't it Doctrine DBAL instead of ORM? I hope it's not ORM!DavidIQ wrote: Tue Apr 24, 2018 12:15 pm However there's been some discussions about just going with Doctrine's ORM instead of continuing with our dbal so maybe this would get addressed at that point.