]> git.mxchange.org Git - friendica.git/commitdiff
db support for relationship->with in profiles
authorMike Macgirvin <mike@macgirvin.com>
Wed, 20 Oct 2010 00:15:00 +0000 (17:15 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Wed, 20 Oct 2010 00:15:00 +0000 (17:15 -0700)
boot.php
database.sql
update.php

index 7c114fd431dcce3c85f609b319e243dc0923bb1f..5c2d74b445d5f9a05b43a477a1f7fece9c622e4f 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -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"     );
index 8b1f35cd21bf052a50b494742d1c4ca654cc6ffe..d256fc65916dcab15708e1b3df95b208e0f55be1 100644 (file)
@@ -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,
index 43101855cccd55978d0b4dfa1baf4f1d902c26b3..91883b716cc6298f3e12ec741fbdd54d44b96cf0 100644 (file)
@@ -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