[development] Extend database abstraction layer, to include table creation.

Chris Johnson chris at tinpixel.com
Thu May 11 22:19:58 UTC 2006

Karoly Negyesi wrote:
> On Thu, 11 May 2006 20:31:32 +0200, Adrian Rossouw <adrian at bryght.com> 
> wrote:
>> http://drupal.org/node/63049
>> Now that we have .install files for modules, I believe it is time we 
>> extended our database abstraction layer.
>> I recommend we create the following extra functions :
>> 1. db_create_table($tablename, $columns); // columns is an associative 
>> array with the 'name' => 'type'
> Ah yes. And between 'character variable' of postgres and 'varchar' of 
> mysql, which one ?

Recent version of postgres accept 'varchar' as a synonym for 'character 
varying' but does mysql accept the latter?  If not, use 'varchar'.


More information about the development mailing list