From 7c9b323e250316cde39c2856b648bca7b2eb7b18 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 19 Oct 2010 17:30:15 -0700 Subject: [PATCH] provide choice of using browser geotag --- boot.php | 2 +- database.sql | 1 + update.php | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 5c2d74b445..5070f7bac6 100644 --- a/boot.php +++ b/boot.php @@ -2,7 +2,7 @@ set_time_limit(0); -define ( 'BUILD_ID', 1009 ); +define ( 'BUILD_ID', 1010 ); define ( 'DFRN_PROTOCOL_VERSION', '2.0' ); define ( 'EOL', "
\r\n" ); diff --git a/database.sql b/database.sql index d256fc6591..7526be41d1 100644 --- a/database.sql +++ b/database.sql @@ -347,6 +347,7 @@ CREATE TABLE IF NOT EXISTS `user` ( `email` char(255) NOT NULL, `timezone` char(128) NOT NULL, `default-location` char(255) NOT NULL, + `allow_location` tinyint(1) NOT NULL DEFAULT '0', `theme` char(255) NOT NULL, `pubkey` text NOT NULL, `prvkey` text NOT NULL, diff --git a/update.php b/update.php index 91883b716c..9f122f53e0 100644 --- a/update.php +++ b/update.php @@ -71,4 +71,8 @@ function update_1007() { function update_1008() { q("ALTER TABLE `profile` ADD `with` TEXT NOT NULL AFTER `marital` "); +} + +function update_1009() { + q("ALTER TABLE `user` ADD `allow_location` TINYINT( 1 ) NOT NULL AFTER `default-location` "); } \ No newline at end of file