diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-19 17:15:00 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-19 17:15:00 -0700 |
commit | bf727dc3e8e9159e59bded135aaf3f790306e6e0 (patch) | |
tree | 9b229da3f181dc71f99737d03729b96e6ae9e704 | |
parent | d58ff1a8df2b2ed041fb2be899844ecf4e4a930b (diff) | |
download | volse-hubzilla-bf727dc3e8e9159e59bded135aaf3f790306e6e0.tar.gz volse-hubzilla-bf727dc3e8e9159e59bded135aaf3f790306e6e0.tar.bz2 volse-hubzilla-bf727dc3e8e9159e59bded135aaf3f790306e6e0.zip |
db support for relationship->with in profiles
-rw-r--r-- | boot.php | 2 | ||||
-rw-r--r-- | database.sql | 1 | ||||
-rw-r--r-- | update.php | 4 |
3 files changed, 6 insertions, 1 deletions
@@ -2,7 +2,7 @@ set_time_limit(0); -define ( 'BUILD_ID', 1008 ); +define ( 'BUILD_ID', 1009 ); define ( 'DFRN_PROTOCOL_VERSION', '2.0' ); define ( 'EOL', "<br />\r\n" ); diff --git a/database.sql b/database.sql index 8b1f35cd2..d256fc659 100644 --- a/database.sql +++ b/database.sql @@ -280,6 +280,7 @@ CREATE TABLE IF NOT EXISTS `profile` ( `country-name` char(255) NOT NULL, `gender` char(32) NOT NULL, `marital` char(255) NOT NULL, + `with` text NOT NULL, `sexual` char(255) NOT NULL, `politic` char(255) NOT NULL, `religion` char(255) NOT NULL, diff --git a/update.php b/update.php index 43101855c..91883b716 100644 --- a/update.php +++ b/update.php @@ -67,4 +67,8 @@ function update_1006() { function update_1007() { q("ALTER TABLE `user` ADD `page-flags` INT NOT NULL DEFAULT '0' AFTER `notify-flags`"); q("ALTER TABLE `user` ADD INDEX ( `nickname` )"); +} + +function update_1008() { + q("ALTER TABLE `profile` ADD `with` TEXT NOT NULL AFTER `marital` "); }
\ No newline at end of file |