aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--boot.php2
-rw-r--r--database.sql1
-rw-r--r--update.php4
3 files changed, 6 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 5c2d74b44..5070f7bac 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', "<br />\r\n" );
diff --git a/database.sql b/database.sql
index d256fc659..7526be41d 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 91883b716..9f122f53e 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