Index: modules/locale/locale.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/locale/locale.install,v
retrieving revision 1.47
diff -u -p -r1.47 locale.install
--- modules/locale/locale.install	17 Aug 2009 19:14:40 -0000	1.47
+++ modules/locale/locale.install	29 Aug 2009 23:38:31 -0000
@@ -46,6 +46,20 @@ function locale_update_7000() {
 }
 
 /**
+ * Add translation status column.
+ */
+function locale_update_7001() {
+  $ret = array();
+  db_add_field($ret, 'locales_target', 'status', array(
+    'type' => 'int',
+    'not null' => TRUE,
+    'default' => 1,
+    'description' => 'Boolean indicating whether this translation is up to date.',
+  ));
+  return $ret;
+}
+
+/**
  * @} End of "defgroup updates-6.x-to-7.x"
  */
 
@@ -219,6 +233,7 @@ function locale_schema() {
     'primary key' => array('lid'),
     'indexes' => array(
       'source_context' => array(array('source', 30), 'context'),
+      'textgroup_location' => array(array('textgroup', 30), 'location'),
     ),
   );
 
@@ -244,9 +259,16 @@ function locale_schema() {
         'default' => '',
         'description' => 'Language code. References {languages}.language.',
       ),
+      'status' => array(
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 1,
+        'description' => 'Boolean indicating whether this translation is up to date.',
+      ),
+      // @todo This should be NULL for no referenced string, not zero.
       'plid' => array(
         'type' => 'int',
-        'not null' => TRUE, // This should be NULL for no referenced string, not zero.
+        'not null' => TRUE,
         'default' => 0,
         'description' => 'Parent lid (lid of the previous string in the plural chain) in case of plural strings. References {locales_source}.lid.',
       ),
