Index: bookingsapi.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/bookingsapi/bookingsapi.install,v
retrieving revision 1.7.2.2.2.10
diff -u -p -r1.7.2.2.2.10 bookingsapi.install
--- bookingsapi.install	22 Dec 2009 14:02:50 -0000	1.7.2.2.2.10
+++ bookingsapi.install	27 Dec 2009 18:45:13 -0000
@@ -78,11 +78,11 @@ function bookingsapi_schema() {
         'size' => 'tiny',
         'not null' => TRUE,
         'default' => 0,
-        'description' => "enum('booking', 'una_r', 'una_f', 'ava_r', 'ava_f')",
+        'description' => "enum('booking', 'unavailable', 'available')",
       ),
@@ -104,7 +104,7 @@ function bookingsapi_schema() {
       ),
       'description' => array(
         'type' => 'text',
-        'not null' => TRUE,
+        'not null' => FALSE,
         'description' => t('Description of the record.'),
       ),
       'rrule' => array(
@@ -115,8 +115,8 @@ function bookingsapi_schema() {
       ),
       'rrule_until' => array(
         'type' => 'datetime',
-        'not null' => TRUE,
-        'description' => t('iCal RRULE UNTIL. Separate from the RRULE to allow queries to efficiently determine relevance.'),
+        'not null' => FALSE,
+        'description' => t('iCal RRULE UNTIL. Separate from the RRULE to allow queries to efficiently determine relevance. Must not be NULL if an rrule is defined.'),
       ),
       'priority' => array(
         'type' => 'int',
@@ -132,7 +132,7 @@ function bookingsapi_schema() {
       ),
       'changed' => array(
         'type' => 'datetime',
-        'not null' => TRUE,
+        'not null' => FALSE,
         'description' => t('When this record was last modified.'),
       ),
       'status' => array(
@@ -481,3 +481,42 @@ function bookingsapi_update_6055() {
   db_drop_table($ret, "bookings_free_cache");
   return $ret;
 }

function bookingsapi_update_6056() {
	$ret = array();
  $schema = array(
        'type' => 'varchar',
        'not null' => FALSE,
        'length' => 20,
        'description' => t('Record subtype, if your implementation utilizes it.'),
		);
	db_change_field($ret, "bookings_records", "subtype", "subtype", $schema);

	return $ret;
}
+
+function bookingsapi_update_6057() {
+	$ret = array();
+	$schema = array(
+			'description' => array(
+				'type' => 'text',
+				'not null' => FALSE,
+				'description' => t('Description of the record.'),
+				),
+			'rrule_until' => array(
+				'type' => 'datetime',
+				'not null' => FALSE,
+				'description' => t('iCal RRULE UNTIL. Separate from the RRULE to allow queries to efficiently determine relevance. Must not be NULL if an rrule is defined.'),
+				),
+			'changed' => array(
+				'type' => 'datetime',
+				'not null' => FALSE,
+				'description' => t('When this record was last modified.'),
+				),
+			);
+	foreach ( list('description', 'rrule_until', 'changed') as $name ) {
+		db_change_field($ret, "bookings_records", $name, $name, $schema[$name]);
+	}
+
+	return $ret;
+}
