From 8c845f5d506e333ecd8eaed3139bcd7e344ef346 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 7 Feb 2014 22:47:03 -0800 Subject: set default for account_level in DB --- boot.php | 2 +- install/database.sql | 2 +- install/update.php | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 1d462eff8..41282bb13 100755 --- a/boot.php +++ b/boot.php @@ -46,7 +46,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' ); define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R'); define ( 'ZOT_REVISION', 1 ); -define ( 'DB_UPDATE_VERSION', 1096 ); +define ( 'DB_UPDATE_VERSION', 1097 ); define ( 'EOL', '
' . "\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/install/database.sql b/install/database.sql index 86531a415..cd31a0285 100644 --- a/install/database.sql +++ b/install/database.sql @@ -54,7 +54,7 @@ CREATE TABLE IF NOT EXISTS `account` ( `account_expires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `account_expire_notified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `account_service_class` char(32) NOT NULL DEFAULT '', - `account_level` int(10) unsigned NOT NULL, + `account_level` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`account_id`), KEY `account_email` (`account_email`), KEY `account_service_class` (`account_service_class`), diff --git a/install/update.php b/install/update.php index 93442a81f..ccfec9ddf 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@