the module uses auto_increment for mysql:

db_query("CREATE TABLE {privatemsg} (
          id            int(10) unsigned NOT NULL auto_increment primary key,

instead of using the {sequence} table: http://drupal.org/node/1395

Comments

mindless’s picture

is there an api to initialize a sequence value? upgrade code here would need to get the max value of the auto_increment columns to initialize the sequences. i guess it could call db_next_id N times, else it would have to write sql knowing the name/structures of the sequences table.

mindless’s picture

bump

mindless’s picture

Assigned: Unassigned » mindless
Status: Active » Fixed

i used sql as in system.install to initialize the sequences.. this means i'm dependent on internals of db_next_id (mysql uses sequences table with name,id and pgsql uses sequence with _seq suffix on the name), but i won't have to call db_next_id 7000 times to upgrade my site..

Anonymous’s picture

Status: Fixed » Closed (fixed)