Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# leemhenson 1/31/2006 3:57 AM
Hi

I've just got the latest svn source and downloaded all the modules from this forum. The ContactUs and Downloads modules have installed correctly, but when I try to install the PhotoGallery the mssql script fails because it is attempting to create the cm_file table. This table already exists due to one of the previous module installations creating it.

I don't know if I've misunderstood the architecture here, but shouldn't there either be:

1) complete separate tables per module (doesn't seem right?)
2) in-built object detection in the install scripts to check whether the objects they require already exist

Also, looking at the uninstall script for the PhotoGallery module, I can see a drop table command for cm_file. Again, depending on the architecture choice above, this may or not be a good idea.

On the whole though, cuyahoga looks great and appears to be designed with some real thought. I'm off to try some customization now! :)

Cheers
Lee
# martijnb 1/31/2006 9:04 AM
leemhensonI don't know if I've misunderstood the architecture here, but shouldn't there either be:

1) complete separate tables per module (doesn't seem right?)

This should always be the case. In this case the modules were contributed by others and to be honest, I didn't look if there were potential naming conflicts when developing the Downloads module.

It might be wise for every module developer to prefix tables with their own prefix and not use cm_ for this because it's already in use for Cuyahoga's own modules.
# mgaerber 1/31/2006 10:19 AM
Maybe we consider to tackle this with the improvements for the next versions.
I can think of two possible solutions:

1. Module developers can apply to "reserve" a cm_ namespace for some of their tables, if they think it is likely to be used by or integrated into other modules as well.
Those would then be installed with the core tables and stay there. For example a Contacts Module which stores extendend user information could by a Newsletter module etc...

2. Add a module dependency descriptor to modules.
This shouldn't be too hard because the modules are "flat", no subcomponents and such, so:

if detect dependency then
ask for dependency

if circular dependency then
kill module developers ;-)

Could one of those be an option?

# martijnb 1/31/2006 2:00 PM
mgaerber1. Module developers can apply to "reserve" a cm_ namespace for some of their tables, if they think it is likely to be used by or integrated into other modules as well.
Those would then be installed with the core tables and stay there. For example a Contacts Module which stores extendend user information could by a Newsletter module etc...

I think modules shouldn't share tables or depend on each other. You create huge dependency issues that makes it almost impossible to upgrade a single module without looking at the other ones. That's not very module-like isn't it? ;)

If there is a need to share data between modules like in your example, it belongs in the core.

However, you can package and deploy related modules in one assembly. This forces to keep things up to date.