1
vote
1answer
61 views

While developing a custom module, which function creates table in database?

While developing a custom module in Drupal 7, which function actually creates tables in the database? I have implemented hook_schema in mymodule.install, mymodule.info, mymodule.module file and ...
-3
votes
1answer
43 views

Propagate changes inside module.install schema to database

Using schema module, I was able to easily describe tables that I included in Drupal DB, by creating .install files to appropriate modules. Now i have updated field descriptions for each field ...
0
votes
1answer
32 views

How to create a Hook_Schema for Fieldset Form?

i have a form i would like to have the values submitted into a table in mysql database using hook_schema in a .install file. problem is i have no idea how to properly write it out being new to php ...
1
vote
1answer
64 views

how to create db table with initial data from custom module [duplicate]

Possible Duplicate: Adding content to a database table during module install rewrite: I've got a question about Db tables. I'm building a custom module, and used hook_install and ...
1
vote
2answers
283 views

Convert a SQL database design to a drupal schema installation file

I have a, rather big, application that I would like to integrate into Drupal reusing the current database design / logic. Is there a tool out there that can help me to build the PHP part of the ...
6
votes
3answers
507 views

How do I specify in which database my schema should be created?

When using multiple databases in Drupal 7, how can I specify that a table is to be created in a different database on a different server? By default, when you install a module, Drupal assumes that ...
1
vote
1answer
451 views

Database schema for image field

I have a module which behaves much like question and answers. Each question needs to have a help image. So far, I have written the schema as this: function mymodule_schema() { ...
1
vote
1answer
476 views

'serialized' field in schema still needs manual unserialization?

I've modified my schema so that I can store an array of items in one field: "required_product" => array( "type" => "text", "length" => 'medium', "not null" => TRUE, "default" ...