Hi all.
I have more than 20 content types CCK and I want install it on other site.
I choose CCK export + importexportapi modules. And I get more than 20 files with php code. So I must, in my other site(and sites), from cck import form install all content types from files. It's hard. But, when I install a content type, in my data base appear new tables and rows in some tables, so install/import it's just correct and right sql commands. So if it's just sql, I can maybe, create mymodule_name.install file and end? I think it's better then copy/paste from cck import form.
I recently installed Drupal 6 RC1 to create a story website.
I love the changes that are made. Great thinking :)
However, when I started entering the terms, I stumpled upon a problem in the term_data table. There is a UNIQUE index on vid/name.
I tried to enter a structure as follows:
I don't have Postgres and I'd like to make a change to a module that I support. For MySql, I know I can use "INSERT ... ON DUPLICATE KEY UPDATE ..." for part of my change and it will make the code so much simpler. (http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html)
Does Postgres support this syntax? How about all the other DBs that are being considered for Drupal?
The fix above is not the best since it does not handle multiple fields. I guess I will patch it more if more problems pops up. This is going to be a pain to fix.