? md5.js Index: cram.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/cram/cram.install,v retrieving revision 1.2.4.2 diff -u -p -r1.2.4.2 cram.install --- cram.install 21 Feb 2008 05:57:18 -0000 1.2.4.2 +++ cram.install 21 Feb 2008 17:46:15 -0000 @@ -11,10 +11,12 @@ function cram_schema() { 'default' => ''), 'issued' => array( 'type' => 'int', + 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), 'valid' => array( 'type' => 'int', + 'size' => 'tiny', 'not null' => TRUE, 'default' => 0), ), @@ -43,3 +45,26 @@ function cram_update_1() { db_drop_table($ret, 'cram_challenge'); } } + +function cram_update_2() { + $ret = array(); + + $new_issued = array( + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ); + $new_valid = array( + 'type' => 'int', + 'size' => 'tiny', + 'not null' => TRUE, + 'default' => 0, + ); + + db_change_field($ret, 'cram_nonce', 'issued', 'issued', $new_issued); + db_add_primary_key($ret, 'cram_nonce', array('nonce', 'issued')); + db_change_field($ret, 'cram_nonce', 'valid', 'valid', $new_valid); + + return $ret; +}