From 422aeef56ff7cd5109d954e75de322e20dc832ef Mon Sep 17 00:00:00 2001
From: brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Date: Tue, 2 Mar 2010 18:22:56 +0000
Subject: Fixes #1562: Added a default value for entities.last_action in the
 schema and as an upgraded.  Bumped version number to 1.7 final.

git-svn-id: http://code.elgg.org/elgg/trunk@3984 36083f99-b078-4883-b0ff-0f9b5a30f544
---
 engine/schema/mysql.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'engine/schema/mysql.sql')

diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql
index 638f7ce26..56c2a4077 100644
--- a/engine/schema/mysql.sql
+++ b/engine/schema/mysql.sql
@@ -130,7 +130,7 @@ CREATE TABLE `prefix_entities` (
   `access_id` int(11) NOT NULL,
   `time_created` int(11) NOT NULL,
   `time_updated` int(11) NOT NULL,
-  `last_action` int(11) NOT NULL,
+  `last_action` int(11) NOT NULL DEFAULT '0',
   `enabled` enum('yes','no') NOT NULL DEFAULT 'yes',
   PRIMARY KEY (`guid`),
   KEY `type` (`type`),
-- 
cgit v1.2.3

