From 05177ea989cbc687ea828ba3046c722f0381e688 Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Sun, 22 May 2011 21:50:49 -0400
Subject: [PATCH] Issue #159346 by bjaspan, pillarsdotnet: Remove semantically incorrect default values.

---
 modules/aggregator/aggregator.install          |   17 --------
 modules/block/block.install                    |    4 --
 modules/book/book.install                      |    3 -
 modules/comment/comment.install                |    9 ----
 modules/contact/contact.install                |    1 -
 modules/dblog/dblog.install                    |    8 +---
 modules/field/field.install                    |    5 --
 modules/field/tests/field_test.install         |    7 ---
 modules/filter/filter.install                  |    3 -
 modules/forum/forum.install                    |    7 ---
 modules/image/image.install                    |    1 -
 modules/locale/locale.install                  |   10 +----
 modules/menu/menu.install                      |    2 -
 modules/node/node.install                      |   22 +----------
 modules/openid/openid.install                  |    3 -
 modules/poll/poll.install                      |    4 --
 modules/profile/profile.install                |    5 +--
 modules/search/search.install                  |    7 ---
 modules/shortcut/shortcut.install              |    4 --
 modules/simpletest/simpletest.install          |   10 +----
 modules/simpletest/tests/database_test.install |   11 +-----
 modules/simpletest/tests/module_test.install   |    1 -
 modules/simpletest/tests/taxonomy_test.install |    2 -
 modules/statistics/statistics.install          |    5 --
 modules/system/system.install                  |   49 ++----------------------
 modules/taxonomy/taxonomy.install              |    8 ----
 modules/tracker/tracker.install                |    4 --
 modules/trigger/trigger.install                |    2 -
 modules/user/user.install                      |   24 ++----------
 29 files changed, 16 insertions(+), 222 deletions(-)

diff --git a/modules/aggregator/aggregator.install b/modules/aggregator/aggregator.install
index eecd14fb27f1d66ff08d97160a8f820303a18043..0155e5e75ad0c844f14ca73afcb13cc3a24e9849 100644
--- a/modules/aggregator/aggregator.install
+++ b/modules/aggregator/aggregator.install
@@ -35,7 +35,6 @@ function aggregator_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Title of the category.',
       ),
       'description' => array(
@@ -64,13 +63,11 @@ function aggregator_schema() {
       'fid' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => "The feed's {aggregator_feed}.fid.",
       ),
       'cid' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {aggregator_category}.cid to which the feed is being assigned.',
       )
     ),
@@ -92,13 +89,11 @@ function aggregator_schema() {
       'iid' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => "The feed item's {aggregator_item}.iid.",
       ),
       'cid' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {aggregator_category}.cid to which the feed item is being assigned.',
       )
     ),
@@ -126,14 +121,12 @@ function aggregator_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Title of the feed.',
       ),
       'url' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'URL to the feed.',
       ),
       'refresh' => array(
@@ -145,7 +138,6 @@ function aggregator_schema() {
       'checked' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Last time feed was checked for new items, as Unix timestamp.',
       ),
       'queued' => array(
@@ -158,7 +150,6 @@ function aggregator_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The parent website of the feed; comes from the <link> element in the feed.',
       ),
       'description' => array(
@@ -177,26 +168,22 @@ function aggregator_schema() {
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Calculated hash of the feed data, used for validating cache.',
       ),
       'etag' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Entity tag HTTP response header, used for validating cache.',
       ),
       'modified' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'When the feed was last modified, as a Unix timestamp.',
       ),
       'block' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'size' => 'tiny',
         'description' => "Number of items to display in the feed's block.",
       )
@@ -222,28 +209,24 @@ function aggregator_schema() {
       'fid' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {aggregator_feed}.fid to which this item belongs.',
       ),
       'title' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Title of the feed item.',
       ),
       'link' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Link to the feed item.',
       ),
       'author' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Author of the feed item.',
       ),
       'description' => array(
diff --git a/modules/block/block.install b/modules/block/block.install
index deed13af3d1bfbeaca244777641114be551541b0..1189fafaba71528a6df2769b3b6c18d174248735 100644
--- a/modules/block/block.install
+++ b/modules/block/block.install
@@ -21,21 +21,18 @@ function block_schema() {
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => "The module from which the block originates; for example, 'user' for the Who's Online block, and 'block' for any custom blocks.",
       ),
       'delta' => array(
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '0',
         'description' => 'Unique ID for block within a module.',
       ),
       'theme' => array(
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The theme under which the block settings apply.',
       ),
       'status' => array(
@@ -55,7 +52,6 @@ function block_schema() {
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Theme region within which the block is set.',
       ),
       'custom' => array(
diff --git a/modules/book/book.install b/modules/book/book.install
index 1bd094c230e55823d4e277a384c296d1a72ecca9..b23280d014bd0152afbf7b8989958c0ce451b204 100644
--- a/modules/book/book.install
+++ b/modules/book/book.install
@@ -57,21 +57,18 @@ function book_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => "The book page's {menu_links}.mlid.",
       ),
       'nid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => "The book page's {node}.nid.",
       ),
       'bid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => "The book ID is the {book}.nid of the top-level page.",
       ),
     ),
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index 1dd67f4dddf5f421d4caec27b12cf56b2d8812c8..2b2c719c4d9af5c2a9095609eada49fa62841ea3 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -99,7 +99,6 @@ function comment_schema() {
       'nid' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {node}.nid to which this comment is a reply.',
       ),
       'uid' => array(
@@ -112,26 +111,22 @@ function comment_schema() {
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The comment title.',
       ),
       'hostname' => array(
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => "The author's host name.",
       ),
       'created' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The time that the comment was created, as a Unix timestamp.',
       ),
       'changed' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The time that the comment was last edited, as a Unix timestamp.',
       ),
       'status' => array(
@@ -171,7 +166,6 @@ function comment_schema() {
         'type' => 'varchar',
         'length' => 12,
         'not null' => TRUE,
-        'default' => '',
       ),
     ),
     'indexes' => array(
@@ -201,19 +195,16 @@ function comment_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {node}.nid for which the statistics are compiled.',
       ),
       'cid' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {comment}.cid of the last comment.',
       ),
       'last_comment_timestamp' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The Unix timestamp of the last comment that was posted within this node, from {comment}.timestamp.',
       ),
       'last_comment_name' => array(
diff --git a/modules/contact/contact.install b/modules/contact/contact.install
index 7ddea4562665a5953364f226428fb2b5a067bf16..081fdf43c361ad9b276cb9ae3a29befb3365b6b5 100644
--- a/modules/contact/contact.install
+++ b/modules/contact/contact.install
@@ -22,7 +22,6 @@ function contact_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Category name.',
         'translatable' => TRUE,
       ),
diff --git a/modules/dblog/dblog.install b/modules/dblog/dblog.install
index 23f85ba2594b5bf0c4f085f791efaa23d2ebb18d..c7840b33de7908c46fad7ea5ccdc82deb8aa272f 100644
--- a/modules/dblog/dblog.install
+++ b/modules/dblog/dblog.install
@@ -27,7 +27,6 @@ function dblog_schema() {
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Type of log message, for example "user" or "page not found."',
       ),
       'message' => array(
@@ -46,15 +45,14 @@ function dblog_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
+        'default' => 5,
         'size' => 'tiny',
-        'description' => 'The severity level of the event; ranges from 0 (Emergency) to 7 (Debug)',
+        'description' => 'The severity level of the event; ranges from 0 (Emergency) to 7 (Debug).  The default level is 5 (Notice).',
       ),
       'link' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => FALSE,
-        'default' => '',
         'description' => 'Link to view the result of the event.',
       ),
       'location'  => array(
@@ -71,13 +69,11 @@ function dblog_schema() {
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Hostname of the user who triggered the event.',
       ),
       'timestamp' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Unix timestamp of when event occurred.',
       ),
     ),
diff --git a/modules/field/field.install b/modules/field/field.install
index 16b09e1c9251e9c520a9dddb61f541093bc6a34e..f56f5560146e4ec8fc871010167a31143477c8f2 100644
--- a/modules/field/field.install
+++ b/modules/field/field.install
@@ -33,7 +33,6 @@ function field_schema() {
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The module that implements the field type.',
       ),
       'active' => array(
@@ -53,7 +52,6 @@ function field_schema() {
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The module that implements the storage backend.',
       ),
       'storage_active' => array(
@@ -127,19 +125,16 @@ function field_schema() {
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => ''
       ),
       'entity_type'       => array(
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => ''
       ),
       'bundle' => array(
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => ''
       ),
       'data' => array(
         'type' => 'blob',
diff --git a/modules/field/tests/field_test.install b/modules/field/tests/field_test.install
index 59575611033c5fec5f1453b8b3b58c598597588b..63b72ef07e8f58634625ffe4ea80366f60767df2 100644
--- a/modules/field/tests/field_test.install
+++ b/modules/field/tests/field_test.install
@@ -34,21 +34,18 @@ function field_test_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'fttype' => array(
         'description' => 'The type of this test_entity.',
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '',
       ),
       'ftlabel' => array(
         'description' => 'The label of this test_entity.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
     ),
     'unique keys' => array(
@@ -64,14 +61,12 @@ function field_test_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'fttype' => array(
         'description' => 'The type of this test_entity.',
         'type' => 'varchar',
         'length' => 32,
         'not null' => FALSE,
-        'default' => '',
       ),
     ),
   );
@@ -83,7 +78,6 @@ function field_test_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
     ),
   );
@@ -95,7 +89,6 @@ function field_test_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'ftvid' => array(
         'description' => 'The primary identifier for this version.',
diff --git a/modules/filter/filter.install b/modules/filter/filter.install
index da9ecb84a80b503a34002498aeb3c1604b9cbc50..cf3749d178f67c74b01c78e501f77209c6cd3bc6 100644
--- a/modules/filter/filter.install
+++ b/modules/filter/filter.install
@@ -22,14 +22,12 @@ function filter_schema() {
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The origin module of the filter.',
       ),
       'name' => array(
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Name of the filter being referenced.',
       ),
       'weight' => array(
@@ -70,7 +68,6 @@ function filter_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Name of the text format (Filtered HTML).',
         'translatable' => TRUE,
       ),
diff --git a/modules/forum/forum.install b/modules/forum/forum.install
index b5817ab2992f53f80be7fd6ba3d8d90cc86eef22..815544cc8c9ff1b82f5b87d3c6ecccb368c323f9 100644
--- a/modules/forum/forum.install
+++ b/modules/forum/forum.install
@@ -126,21 +126,18 @@ function forum_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {node}.nid of the node.',
       ),
       'vid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Primary Key: The {node}.vid of the node.',
       ),
       'tid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {taxonomy_term_data}.tid of the forum term assigned to the node.',
       ),
     ),
@@ -168,21 +165,18 @@ function forum_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'title' => array(
         'description' => 'The title of this node, always treated as non-markup plain text.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'tid' => array(
          'description' => 'The term ID.',
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
-         'default' => 0,
       ),
       'sticky' => array(
         'description' => 'Boolean indicating whether the node is sticky.',
@@ -201,7 +195,6 @@ function forum_schema() {
       'last_comment_timestamp' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The Unix timestamp of the last comment that was posted within this node, from {comment}.timestamp.',
       ),
       'comment_count' => array(
diff --git a/modules/image/image.install b/modules/image/image.install
index 121e8c73af49ed2c8c7e44edd8e693ad879bea71..faecf1415c62210a44b0b6d45fe1d136278bbc02 100644
--- a/modules/image/image.install
+++ b/modules/image/image.install
@@ -67,7 +67,6 @@ function image_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'weight' => array(
         'description' => 'The weight of the effect in the style.',
diff --git a/modules/locale/locale.install b/modules/locale/locale.install
index a144813bb04107f7ff6ff5bf46b476d1b4839001..c9bb3187b1d1f5c3b137124d4475fdc01841777e 100644
--- a/modules/locale/locale.install
+++ b/modules/locale/locale.install
@@ -87,21 +87,18 @@ function locale_schema() {
         'type' => 'varchar',
         'length' => 12,
         'not null' => TRUE,
-        'default' => '',
         'description' => "Language code, e.g. 'de' or 'en-US'.",
       ),
       'name' => array(
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Language name in English.',
       ),
       'native' => array(
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Native language name.',
       ),
       'direction' => array(
@@ -119,14 +116,14 @@ function locale_schema() {
       'plurals' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
+        'default' => 1,
         'description' => 'Number of plural indexes in this language.',
       ),
       'formula' => array(
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
+        'default' => '0',
         'description' => 'Plural formula in PHP code to evaluate to get plural indexes.',
       ),
       'domain' => array(
@@ -217,7 +214,6 @@ function locale_schema() {
       'lid' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Source string ID. References {locales_source}.lid.',
       ),
       'translation' => array(
@@ -230,13 +226,11 @@ function locale_schema() {
         'type' => 'varchar',
         'length' => 12,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Language code. References {languages}.language.',
       ),
       'plid' => array(
         'type' => 'int',
         'not null' => TRUE, // This should be NULL for no referenced string, not zero.
-        'default' => 0,
         'description' => 'Parent lid (lid of the previous string in the plural chain) in case of plural strings. References {locales_source}.lid.',
       ),
       'plural' => array(
diff --git a/modules/menu/menu.install b/modules/menu/menu.install
index 05aed283fae4eb21d033ece93026f05975b9411f..de0d96ed7448cfd1c4894415f133e680052b923a 100644
--- a/modules/menu/menu.install
+++ b/modules/menu/menu.install
@@ -16,14 +16,12 @@ function menu_schema() {
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Primary Key: Unique key for menu. This is used as a block delta so length is 32.',
       ),
       'title' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Menu title; displayed at top of block.',
         'translatable' => TRUE,
       ),
diff --git a/modules/node/node.install b/modules/node/node.install
index e322e81c0a41ce190e2325143ca1e311cfb1d498..839198416a592e73d1225ff30ec6c5f87174eedc 100644
--- a/modules/node/node.install
+++ b/modules/node/node.install
@@ -23,34 +23,30 @@ function node_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'type' => array(
         'description' => 'The {node_type}.type of this node.',
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '',
       ),
       'language' => array(
         'description' => 'The {languages}.language of this node.',
         'type' => 'varchar',
         'length' => 12,
         'not null' => TRUE,
-        'default' => '',
+        'default' => 'und',
       ),
       'title' => array(
         'description' => 'The title of this node, always treated as non-markup plain text.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'uid' => array(
         'description' => 'The {users}.uid that owns this node; initially, this is the user that created it.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'status' => array(
         'description' => 'Boolean indicating whether the node is published (visible to non-administrators).',
@@ -62,13 +58,11 @@ function node_schema() {
         'description' => 'The Unix timestamp when the node was created.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'changed' => array(
         'description' => 'The Unix timestamp when the node was most recently saved.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'comment' => array(
         'description' => 'Whether comments are allowed on this node: 0 = no, 1 = closed (read only), 2 = open (read/write).',
@@ -93,7 +87,6 @@ function node_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'translate' => array(
         'description' => 'A boolean indicating whether this translation page needs to be updated.',
@@ -137,21 +130,18 @@ function node_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'gid' => array(
         'description' => "The grant ID a user must possess in the specified realm to gain this row's privileges on the node.",
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'realm' => array(
         'description' => 'The realm in which the user must possess the grant ID. Each node access node can define one or more realms.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'grant_view' => array(
         'description' => 'Boolean indicating whether a user with the realm/grant pair can view this node.',
@@ -195,7 +185,6 @@ function node_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'vid' => array(
         'description' => 'The primary identifier for this version.',
@@ -207,14 +196,12 @@ function node_schema() {
         'description' => 'The {users}.uid that created this version.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'title' => array(
         'description' => 'The title of this version.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'log' => array(
         'description' => 'The log entry explaining the changes in this version.',
@@ -226,7 +213,6 @@ function node_schema() {
         'description' => 'A Unix timestamp indicating when this version was created.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'status' => array(
         'description' => 'Boolean indicating whether the node (at the time of this revision) is published (visible to non-administrators).',
@@ -284,7 +270,6 @@ function node_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'translatable' => TRUE,
       ),
       'base' => array(
@@ -325,7 +310,6 @@ function node_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'translatable' => TRUE,
       ),
       'custom' => array(
@@ -361,7 +345,6 @@ function node_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
     ),
     'primary key' => array('type'),
@@ -402,19 +385,16 @@ function node_schema() {
         'description' => 'The {users}.uid that read the {node} nid.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'nid' => array(
         'description' => 'The {node}.nid that was read.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'timestamp' => array(
         'description' => 'The Unix timestamp at which the read occurred.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
     ),
     'primary key' => array('uid', 'nid'),
diff --git a/modules/openid/openid.install b/modules/openid/openid.install
index 2df39aa6969f609815ffcce64e2ed01044821e3d..f426d02d439189db7abac8d9154a8f51b0601264 100644
--- a/modules/openid/openid.install
+++ b/modules/openid/openid.install
@@ -41,7 +41,6 @@ function openid_schema() {
       'created' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'UNIX timestamp for when the association was created.',
       ),
       'expires_in' => array(
@@ -70,7 +69,6 @@ function openid_schema() {
       'expires' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'A Unix timestamp indicating when the entry should expire.',
       ),
     ),
@@ -142,7 +140,6 @@ function openid_update_6000() {
       'expires' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'A Unix timestamp indicating when the entry should expire.',
         ),
       ),
diff --git a/modules/poll/poll.install b/modules/poll/poll.install
index c848445fc5db3e5ffaaa5572ab389a362c05d620..d8c5444f80d3706c7f146dcfcb467b674913cbca 100644
--- a/modules/poll/poll.install
+++ b/modules/poll/poll.install
@@ -16,7 +16,6 @@ function poll_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => "The poll's {node}.nid.",
       ),
       'runtime' => array(
@@ -55,14 +54,12 @@ function poll_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {node}.nid this choice belongs to.',
       ),
       'chtext' => array(
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The text for this choice.',
         'translatable' => TRUE,
       ),
@@ -123,7 +120,6 @@ function poll_schema() {
       'timestamp' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The timestamp of the vote creation.',
       ),
     ),
diff --git a/modules/profile/profile.install b/modules/profile/profile.install
index c5747cf56be3861412113bc714b52456f30124f3..9ed09a1e63d7adc47cbb034f2d79d72f0740cae4 100644
--- a/modules/profile/profile.install
+++ b/modules/profile/profile.install
@@ -34,7 +34,6 @@ function profile_schema() {
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Internal name of the field used in the form HTML and URLs.',
       ),
       'explanation' => array(
@@ -83,7 +82,7 @@ function profile_schema() {
       'visibility' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
+        'default' => 2,
         'size' => 'tiny',
         'description' => 'The level of visibility for the field. (0 = hidden, 1 = private, 2 = public on profile but not member list pages, 3 = public on profile and list pages)',
       ),
@@ -116,14 +115,12 @@ function profile_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {profile_field}.fid of the field.',
       ),
       'uid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {users}.uid of the profile user.',
       ),
       'value' => array(
diff --git a/modules/search/search.install b/modules/search/search.install
index c450f0593ff17beb1b2d35edf3b337baaf26fc60..02ead75392b8fd134c12c49615469e6e0ed65605 100644
--- a/modules/search/search.install
+++ b/modules/search/search.install
@@ -25,7 +25,6 @@ function search_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Search item ID, e.g. node ID for nodes.',
       ),
       'type' => array(
@@ -58,14 +57,12 @@ function search_schema() {
         'type' => 'varchar',
         'length' => 50,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The {search_total}.word that is associated with the search item.',
       ),
       'sid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {search_dataset}.sid of the searchable item to which the word belongs.',
       ),
       'type' => array(
@@ -103,7 +100,6 @@ function search_schema() {
         'type' => 'varchar',
         'length' => 50,
         'not null' => TRUE,
-        'default' => '',
       ),
       'count' => array(
         'description' => "The count of the word in the index using Zipf's law to equalize the probability distribution.",
@@ -121,21 +117,18 @@ function search_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {search_dataset}.sid of the searchable item containing the link to the node.',
       ),
       'type' => array(
         'type' => 'varchar',
         'length' => 16,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The {search_dataset}.type of the searchable item containing the link to the node.',
       ),
       'nid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {node}.nid that this item links to.',
       ),
       'caption' => array(
diff --git a/modules/shortcut/shortcut.install b/modules/shortcut/shortcut.install
index 209a90754ea9f0ec2e81197f3e806b1b42cf2172..c3c9fa631166c1e9159f55301381ffba73807ad5 100644
--- a/modules/shortcut/shortcut.install
+++ b/modules/shortcut/shortcut.install
@@ -49,14 +49,12 @@ function shortcut_schema() {
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '',
         'description' => "Primary Key: The {menu_links}.menu_name under which the set's links are stored.",
       ),
       'title' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The title of the set.',
       ),
     ),
@@ -76,14 +74,12 @@ function shortcut_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {users}.uid for this set.',
       ),
       'set_name' => array(
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '',
         'description' => "The {shortcut_set}.set_name that will be displayed for this user.",
       ),
     ),
diff --git a/modules/simpletest/simpletest.install b/modules/simpletest/simpletest.install
index 0f017e75f0640f08fd216161502bbf6f9c45f1e6..53ca15c143e8f20801739c87a4b988441eac755f 100644
--- a/modules/simpletest/simpletest.install
+++ b/modules/simpletest/simpletest.install
@@ -86,21 +86,18 @@ function simpletest_schema() {
       'test_id' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Test ID, messages belonging to the same ID are reported together',
       ),
       'test_class' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The name of the class that created this message.',
       ),
       'status' => array(
         'type' => 'varchar',
         'length' => 9,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Message status. Core understands pass, fail, exception.',
       ),
       'message' => array(
@@ -112,27 +109,23 @@ function simpletest_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The message group this message belongs to. For example: warning, browser, user.',
       ),
       'function' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Name of the assertion function or method that created this message.',
       ),
       'line' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Line number on which the function is called.',
       ),
       'file' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Name of the file where the function is called.',
       ),
     ),
@@ -147,8 +140,7 @@ function simpletest_schema() {
       'test_id'  => array(
         'type' => 'serial',
         'not null' => TRUE,
-        'description' => 'Primary Key: Unique simpletest ID used to group test results together. Each time a set of tests
-                            are run a new test ID is used.',
+        'description' => 'Primary Key: Unique simpletest ID used to group test results together. Each time a set of tests are run a new test ID is used.',
       ),
       'last_prefix' => array(
         'type' => 'varchar',
diff --git a/modules/simpletest/tests/database_test.install b/modules/simpletest/tests/database_test.install
index 4dce2b19af886d0489f9a7a1ae63605b419cf747..fb86ec8f5c5381103646a3ebcfcd2ca173c16337 100644
--- a/modules/simpletest/tests/database_test.install
+++ b/modules/simpletest/tests/database_test.install
@@ -27,14 +27,12 @@ function database_test_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'age' => array(
         'description' => "The person's age",
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'job' => array(
         'description' => "The person's job",
@@ -63,21 +61,18 @@ function database_test_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'age' => array(
         'description' => "The person's age",
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'job' => array(
         'description' => "The person's job",
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
     ),
     'primary key' => array('job'),
@@ -135,14 +130,12 @@ function database_test_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'task' => array(
         'description' => 'The task to be completed.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'priority' => array(
         'description' => 'The priority of the task.',
@@ -168,14 +161,13 @@ function database_test_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => FALSE,
-        'default' => '',
       ),
       'age' => array(
         'description' => "The person's age.",
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => FALSE,
-        'default' => 0),
+      ),
     ),
     'primary key' => array('id'),
     'unique keys' => array(
@@ -199,7 +191,6 @@ function database_test_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => FALSE,
-        'default' => '',
       ),
       'info' => array(
         'description' => "The person's data in serialized form.",
diff --git a/modules/simpletest/tests/module_test.install b/modules/simpletest/tests/module_test.install
index 4cc09df5a8d2b21479cca1484e3b52fc34d0bb31..6b4c6a980ad26be618be003d0530a854a1007085 100644
--- a/modules/simpletest/tests/module_test.install
+++ b/modules/simpletest/tests/module_test.install
@@ -16,7 +16,6 @@ function module_test_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'An example data column for the module.',
       ),
     ),
diff --git a/modules/simpletest/tests/taxonomy_test.install b/modules/simpletest/tests/taxonomy_test.install
index d5c94da5f7b23ecf433f2851bba0f00919342b98..2c8391cabbbf888553ec10d09383ef256f8cd11a 100644
--- a/modules/simpletest/tests/taxonomy_test.install
+++ b/modules/simpletest/tests/taxonomy_test.install
@@ -16,14 +16,12 @@ function taxonomy_test_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {taxonomy_term_data}.tid of the term.',
       ),
       'name' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The name of the antonym.',
       ),
     ),
diff --git a/modules/statistics/statistics.install b/modules/statistics/statistics.install
index a5dc7f8f950ef7ad10b73108d4f5d6255335fd12..16e6c96a363529a60fc39d29426a492a3338d85d 100644
--- a/modules/statistics/statistics.install
+++ b/modules/statistics/statistics.install
@@ -35,7 +35,6 @@ function statistics_schema() {
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Browser session ID of user that visited page.',
       ),
       'title' => array(
@@ -72,14 +71,12 @@ function statistics_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Time in milliseconds that the page took to load.',
       ),
       'timestamp' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Timestamp of when the page was visited.',
       ),
     ),
@@ -103,7 +100,6 @@ function statistics_schema() {
         'description' => 'The {node}.nid for these statistics.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'totalcount' => array(
         'description' => 'The total number of times the {node} has been viewed.',
@@ -126,7 +122,6 @@ function statistics_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
     ),
     'primary key' => array('nid'),
diff --git a/modules/system/system.install b/modules/system/system.install
index 6d2fc80975af0363ae3ffde7164262ab378d2211..07290e41e9eccc5b8f9f107b0a0504953a679b3c 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -535,7 +535,6 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
       ),
       'value' => array(
         'description' => 'The value of the variable.',
@@ -556,14 +555,12 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '0',
       ),
       'type' => array(
         'description' => 'The object that that action acts on (node, user, comment, system or custom types.)',
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '',
       ),
       'callback' => array(
         'description' => 'The callback function that executes when the action runs.',
@@ -638,7 +635,6 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 40,
         'not null' => TRUE,
-        'default' => '',
       ),
     ),
     'indexes' => array(
@@ -655,7 +651,6 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'data' => array(
         'description' => 'A collection of data to cache.',
@@ -667,13 +662,11 @@ function system_schema() {
         'description' => 'A Unix timestamp indicating when the cache entry should expire, or 0 for never.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'created' => array(
         'description' => 'A Unix timestamp indicating when the cache entry was created.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'serialized' => array(
         'description' => 'A flag to indicate whether content is serialized (1) or not (0).',
@@ -802,28 +795,25 @@ function system_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'filename' => array(
         'description' => 'Name of the file with no path components. This may differ from the basename of the URI if the file is renamed to avoid overwriting an existing file.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'uri' => array(
         'description' => 'The URI to access the file (either local or remote).',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'filemime' => array(
         'description' => "The file's MIME type.",
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
+        'default' => 'application/octet-stream',
       ),
       'filesize' => array(
         'description' => 'The size of the file in bytes.',
@@ -844,7 +834,6 @@ function system_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
     ),
     'indexes' => array(
@@ -878,21 +867,18 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'type' => array(
         'description' => 'The name of the object type in which the file is used.',
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
       ),
       'id' => array(
         'description' => 'The primary key of the object using the file.',
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'count' => array(
         'description' => 'The number of times this file is used by this object.',
@@ -923,26 +909,22 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
       ),
       'identifier' => array(
         'description' => 'Identifier of the visitor, such as an IP address or hostname.',
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
       ),
       'timestamp' => array(
         'description' => 'Timestamp of the event.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'expiration' => array(
         'description' => 'Expiration timestamp. Expired events are purged on cron run.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
     ),
     'primary key' => array('fid'),
@@ -960,7 +942,6 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'load_functions' => array(
         'description' => 'A serialized array of function names (like node_load) to be called to load an object corresponding to a part of the current path.',
@@ -1013,7 +994,7 @@ function system_schema() {
         'description' => 'Number of parts in this router path.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
+        'default' => 1,
         'size' => 'small',
       ),
       'context' => array(
@@ -1034,14 +1015,12 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'title' => array(
         'description' => 'The title for the current page, or the title for the tab if this is a local task.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'title_callback' => array(
         'description' => 'A function which will alter the title. Defaults to t()',
@@ -1117,7 +1096,6 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '',
       ),
       'mlid' => array(
         'description' => 'The menu link ID (mlid) is the integer primary key.',
@@ -1137,14 +1115,12 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'router_path' => array(
         'description' => 'For links corresponding to a Drupal path (external = 0), this connects the link to a {menu_router}.path for joins.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'link_title' => array(
       'description' => 'The text displayed for the link, which may be modified by a title callback stored in {menu_router}.',
@@ -1220,7 +1196,6 @@ function system_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'p2' => array(
         'description' => 'The second mlid in the materialized path. See p1.',
@@ -1279,7 +1254,7 @@ function system_schema() {
         'default' => 0,
       ),
       'updated' => array(
-        'description' => 'Flag that indicates that this link was generated during the update from Drupal 5.',
+        'description' => 'Flag that indicates that this link was generated during the update from Drupal 5.', // Can we get rid of this field for d8?
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
@@ -1308,7 +1283,6 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The queue name.',
       ),
       'data' => array(
@@ -1321,13 +1295,11 @@ function system_schema() {
       'expire' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Timestamp when the claim lease expires on the item.',
       ),
       'created' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Timestamp when the item was created.',
       ),
     ),
@@ -1346,14 +1318,12 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'type'   => array(
         'description' => 'Either function or class or interface.',
         'type' => 'varchar',
         'length' => 9,
         'not null' => TRUE,
-        'default' => '',
       ),
       'filename'   => array(
         'description' => 'Name of the file.',
@@ -1366,7 +1336,6 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => ''
       ),
       'weight' => array(
         'description' => "The order in which this module's hooks should be invoked relative to other modules. Equal-weighted modules are ordered by name.",
@@ -1408,7 +1377,6 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => ''
       ),
       'value' => array(
         'description' => 'A value for the semaphore.',
@@ -1464,26 +1432,22 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
       ),
       'hostname' => array(
         'description' => 'The IP address that last used this session ID (sid).',
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
       ),
       'timestamp' => array(
         'description' => 'The Unix timestamp when this session last requested a page. Old records are purged by PHP automatically.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'cache' => array(
         'description' => "The time of this user's last post. This is used when the site has specified a minimum_cache_lifetime. See cache_get().",
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
       ),
       'session' => array(
         'description' => 'The serialized contents of $_SESSION, an array of name/value pairs that persists across page requests by this session ID. Drupal loads $_SESSION from here at the start of each request and saves it at the end.',
@@ -1517,21 +1481,18 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'name' => array(
         'description' => 'The name of the item; e.g. node.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'type' => array(
         'description' => 'The type of the item, either module, theme, or theme_engine.',
         'type' => 'varchar',
         'length' => 12,
         'not null' => TRUE,
-        'default' => '',
       ),
       'owner' => array(
         'description' => "A theme's 'parent' . Can be either a theme or an engine.",
@@ -1592,21 +1553,19 @@ function system_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'alias' => array(
         'description' => 'The alias for this path; e.g. title-of-the-story.',
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ),
       'language' => array(
         'description' => "The language this alias is for; if 'und', the alias will be used for unknown languages. Each Drupal path can have an alias for each supported language.",
         'type' => 'varchar',
         'length' => 12,
         'not null' => TRUE,
-        'default' => '',
+        'default' => 'und',
       ),
     ),
     'primary key' => array('pid'),
diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install
index 10009d66739d0f4a5ce4ea387898fd0a59d68ab3..b710366deded5e14689913f237b902dd9c489cc7 100644
--- a/modules/taxonomy/taxonomy.install
+++ b/modules/taxonomy/taxonomy.install
@@ -31,14 +31,12 @@ function taxonomy_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'The {taxonomy_vocabulary}.vid of the vocabulary to which the term is assigned.',
       ),
       'name' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The term name.',
         'translatable' => TRUE,
       ),
@@ -83,7 +81,6 @@ function taxonomy_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Primary Key: The {taxonomy_term_data}.tid of the term.',
       ),
       'parent' => array(
@@ -119,7 +116,6 @@ function taxonomy_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Name of the vocabulary.',
         'translatable' => TRUE,
       ),
@@ -127,7 +123,6 @@ function taxonomy_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The vocabulary machine name.',
       ),
       'description' => array(
@@ -149,7 +144,6 @@ function taxonomy_schema() {
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'The module which created the vocabulary.',
       ),
       'weight' => array(
@@ -176,14 +170,12 @@ function taxonomy_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'tid' => array(
          'description' => 'The term ID.',
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
-         'default' => 0,
       ),
       'sticky' => array(
         'description' => 'Boolean indicating whether the node is sticky.',
diff --git a/modules/tracker/tracker.install b/modules/tracker/tracker.install
index cfe8dc7b61fab64305f6068a4e93f69ffb6ec462..a064927b728399a9f1aba6008ac1d76e59eb774d 100644
--- a/modules/tracker/tracker.install
+++ b/modules/tracker/tracker.install
@@ -33,7 +33,6 @@ function tracker_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'published' => array(
         'description' => 'Boolean indicating whether the node is published.',
@@ -47,7 +46,6 @@ function tracker_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
     ),
     'indexes' => array(
@@ -70,7 +68,6 @@ function tracker_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
       'uid' => array(
         'description' => 'The {users}.uid of the node author or commenter.',
@@ -90,7 +87,6 @@ function tracker_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
       ),
     ),
     'indexes' => array(
diff --git a/modules/trigger/trigger.install b/modules/trigger/trigger.install
index 7dded60648aec0afb7c7900ca9ae31b5ef5ec9aa..32123ec630510c1635a86734719c7433563babcf 100644
--- a/modules/trigger/trigger.install
+++ b/modules/trigger/trigger.install
@@ -16,14 +16,12 @@ function trigger_schema() {
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Primary Key: The name of the internal Drupal hook; for example, node_insert.',
       ),
       'aid' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => "Primary Key: Action's {actions}.aid.",
       ),
       'weight' => array(
diff --git a/modules/user/user.install b/modules/user/user.install
index 370427f86be6b6e68dbc0f9bb1a69a5472881b48..e26f31bab53de08ecbdabcd0077e14495520239f 100644
--- a/modules/user/user.install
+++ b/modules/user/user.install
@@ -21,21 +21,18 @@ function user_schema() {
       'uid' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => "User's {users}.uid.",
       ),
       'authname' => array(
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Unique authentication name.',
       ),
       'module' => array(
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Module which is controlling the authentication.',
       ),
     ),
@@ -64,14 +61,12 @@ function user_schema() {
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'A single permission granted to the role identified by rid.',
       ),
       'module' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
         'description' => "The module declaring the permission.",
       ),
     ),
@@ -100,7 +95,6 @@ function user_schema() {
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Unique role name.',
         'translatable' => TRUE,
       ),
@@ -128,27 +122,23 @@ function user_schema() {
         'unsigned' => TRUE,
         'not null' => TRUE,
         'description' => 'Primary Key: Unique user ID.',
-        'default' => 0,
       ),
       'name' => array(
         'type' => 'varchar',
         'length' => 60,
         'not null' => TRUE,
-        'default' => '',
         'description' => 'Unique user name.',
       ),
       'pass' => array(
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
-        'default' => '',
         'description' => "User's password (hashed).",
       ),
       'mail' => array(
         'type' => 'varchar',
         'length' => 254,
         'not null' => FALSE,
-        'default' => '',
         'description' => "User's e-mail address.",
       ),
       'theme' => array(
@@ -174,25 +164,22 @@ function user_schema() {
       'created' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Timestamp for when user was created.',
       ),
       'access' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Timestamp for previous time user accessed the site.',
       ),
       'login' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
         'description' => "Timestamp for user's last login.",
       ),
       'status' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
+        'default' => 1,
         'size' => 'tiny',
         'description' => 'Whether the user is active(1) or blocked(0).',
       ),
@@ -206,20 +193,19 @@ function user_schema() {
         'type' => 'varchar',
         'length' => 12,
         'not null' => TRUE,
-        'default' => '',
+        'default' => 'und',
         'description' => "User's default language.",
       ),
       'picture' => array(
         'type' => 'int',
-        'not null' => TRUE,
-        'default' => 0,
+        'not null' => TRUE,  // Should this be FALSE?
+        'default' => 0, // Should this be NULL?
         'description' => "Foreign key: {file_managed}.fid of user's picture.",
       ),
       'init' => array(
         'type' => 'varchar',
         'length' => 254,
         'not null' => FALSE,
-        'default' => '',
         'description' => 'E-mail address used for initial account creation.',
       ),
       'data' => array(
@@ -254,14 +240,12 @@ function user_schema() {
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Primary Key: {users}.uid for user.',
       ),
       'rid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'default' => 0,
         'description' => 'Primary Key: {role}.rid for role.',
       ),
     ),
-- 
1.7.4.1

