From 5cd0054058a718e5694c8542f72f586f06b69fc8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 24 Sep 2011 20:42:57 -0300 Subject: Basic working code for an item request --- muamba.install | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'muamba.install') diff --git a/muamba.install b/muamba.install index e6b3ead..4d2ba42 100644 --- a/muamba.install +++ b/muamba.install @@ -89,7 +89,6 @@ function muamba_update_7000(&$sandbox) { array( 'description' => t('The primary identifier for a muamba transaction.'), 'type' => 'int', - 'unsigned' => TRUE, 'not null' => TRUE, ) ); @@ -124,3 +123,15 @@ function muamba_update_7000(&$sandbox) { ) ); } + +/** + * Adds autoincrement to mid field. + */ +function muamba_update_7001(&$sandbox) { + db_change_field('muamba', 'mid', 'mid', + array( + 'type' => 'serial', + 'not null' => TRUE, + ) + ); +} -- cgit v1.2.3