aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-03-20 03:17:07 +0000
committerThomas Willingham <founder@kakste.com>2013-03-20 03:17:07 +0000
commit897910b5c96d9ce58eda8c40ea0a8ab19acb151a (patch)
tree42865b2b6f727a93b2cecd5c88671f3c0aafe9a4 /install
parent9d6a4093baf805891d03eca871c6e3b5ff66eec3 (diff)
downloadvolse-hubzilla-897910b5c96d9ce58eda8c40ea0a8ab19acb151a.tar.gz
volse-hubzilla-897910b5c96d9ce58eda8c40ea0a8ab19acb151a.tar.bz2
volse-hubzilla-897910b5c96d9ce58eda8c40ea0a8ab19acb151a.zip
Add "channels" field to profile table.
Diffstat (limited to 'install')
-rw-r--r--install/database.sql1
-rw-r--r--install/update.php6
2 files changed, 6 insertions, 1 deletions
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` ");
+}