Hi all,
this is my first time with drupal and I'm getting some troubles.

I am responsible for data migration between our old framework and drupal.
With user profiles, articles and other data I had no problem. I am using CCK module to create new content types.

Now I'm in troubles with comments. Our old framework has lots of sensitive data attached to each comment which I must move to drupal database.

I could not find a way to use CCK with comments so: how can I extend dupal«s comment data model (database)?
I suppose I can draw my own tables, with a foreign key referencing comments table and store extra data there. Am I right?

Thanks in advance.

Comments

WorldFallz’s picture

Default comments are not very extendable without code (at least not until d7 where they are fully fieldable entities). For d6 there's the http://drupal.org/project/nodecomment module.

PauloASilva’s picture

Do you have any experience with Node comments module?

Our current framework has some extra control fields, not visible from frontend.
They are used to evaluate comment thread order, user karma and some other stuffs.

I can evaluate almost everything with database stored procedures or functions. That's why I suggested to use my own database tables.
What is your opinion?

Thanks

WorldFallz’s picture

Nope, i've not used it. But thread order and user karma with drupal are usually handled differently --not as fields on the comment itself. Thread order is an option in the content type form and user karma can be added with contributed modules. My advice is forget modifying the db and/or entities, figure out what the desired functionality is, and find the drupal equivalent.

PauloASilva’s picture

As we want to keep our algorithm maybe my best chance is to develop a new module.

Thanks