aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-19 20:35:19 -0700
committerfriendica <info@friendica.com>2013-03-19 20:35:19 -0700
commit117da45c70481623f3eeb7d2ef745e6f3c8632dc (patch)
tree42865b2b6f727a93b2cecd5c88671f3c0aafe9a4
parent9d6a4093baf805891d03eca871c6e3b5ff66eec3 (diff)
parent897910b5c96d9ce58eda8c40ea0a8ab19acb151a (diff)
downloadvolse-hubzilla-117da45c70481623f3eeb7d2ef745e6f3c8632dc.tar.gz
volse-hubzilla-117da45c70481623f3eeb7d2ef745e6f3c8632dc.tar.bz2
volse-hubzilla-117da45c70481623f3eeb7d2ef745e6f3c8632dc.zip
Merge pull request #37 from beardy-unixer/master
Add channels to profile table
-rw-r--r--boot.php2
-rw-r--r--install/database.sql1
-rw-r--r--install/update.php6
3 files changed, 7 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index d424a44d7..91148a018 100644
--- a/boot.php
+++ b/boot.php
@@ -17,7 +17,7 @@ require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica Red');
define ( 'FRIENDICA_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1036 );
+define ( 'DB_UPDATE_VERSION', 1037 );
define ( 'EOL', '<br />' . "\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/install/database.sql b/install/database.sql
index c321af401..138213fbd 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -698,6 +698,7 @@ CREATE TABLE IF NOT EXISTS `profile` (
`work` text NOT NULL,
`education` text NOT NULL,
`contact` text NOT NULL,
+ `channels` text NOT NULL,
`homepage` char(255) NOT NULL,
`photo` char(255) NOT NULL,
`thumb` char(255) NOT NULL,
diff --git a/install/update.php b/install/update.php
index 0c7c6e0df..533fd63e5 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1036 );
+define( 'UPDATE_VERSION' , 1037 );
/**
*
@@ -462,3 +462,7 @@ KEY `k` ( `k` )
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1036() {
+ q("ALTER TABLE `profile` ADD `channels` TEXT NOT NULL AFTER `contact` ");
+}