--- /creativecommons.1.1.2.21.install	Sun Jan 30 01:42:43 2011
+++ /creativecommons/creativecommons.install	Tue Feb 08 11:08:31 2011
@@ -24,6 +24,7 @@
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       // from http://creativecommons.org/ns
       'attributionName' => array(
@@ -31,18 +32,21 @@
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       'attributionURL' => array(
         'description' => 'The URL the creator of a Work would like used when attributing re-use.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       'morePermissions' => array(
         'description' => 'The URL where additional permissions or alternative licenses for a Work are available.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       // from http://dublincore.org/documents/dces/
       'title' => array(
@@ -50,12 +54,14 @@
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       'type' => array(
         'description' => 'The nature of genre of the work.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       'description' => array(
         'description' => 'An account of the work.',
@@ -68,24 +74,28 @@
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       'rights' => array(
         'description' => "Copyright holder's name.",
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       'date' => array(
         'description' => 'Year of Copyright.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       'source' => array(
         'description' => 'Source work URL',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
     ),
     'primary key' => array('nid'),
@@ -105,12 +115,14 @@
         'type' => 'varchar',
         'length' => 12,
         'not null' => TRUE,
+        'default' => '',
       ),
       'jurisdiction' => array(
         'description' => 'Creative Commons default license jurisdiction.',
         'type' => 'varchar',
         'length' => 4,
         'not null' => TRUE,
+        'default' => '',
       ),
       // from http://creativecommons.org/ns
       'attributionName' => array(
@@ -118,12 +130,14 @@
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
       'attributionURL' => array(
         'description' => 'The URL the User would like used when attributing re-use.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
+        'default' => '',
       ),
     ),
     'primary key' => array('uid'),
@@ -280,4 +294,26 @@
   db_query("DELETE FROM {variable} WHERE name LIKE 'creativecommons_api_%'");
   
   return $ret;
+}
+
+function creativecommons_update_6() {
+	$schema = drupal_get_schema('creativecommons_node');
+	$ret = array();
+	foreach ($schema['fields'] as $field => $data) {
+		if (isset($data['default'])) {
+			db_change_field($ret, 'creativecommons_node', $field, $field, $data);
+		}
+	}
+
+	$schema = drupal_get_schema('creativecommons_user');
+	foreach ($schema['fields'] as $field => $data) {
+		if (isset($data['default'])) {
+			db_change_field($ret, 'creativecommons_user', $field, $field, $data);
+		}
+	}
+	
+	return $ret;
 }
