From 50d1cb2e3afe265004c7c08c8a63876c4b541469 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 1 Jan 2013 23:56:27 -0800 Subject: start building social graph --- install/database.sql | 11 +++++++++++ install/update.php | 16 +++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/database.sql b/install/database.sql index 6876514f2..5a17346e1 100644 --- a/install/database.sql +++ b/install/database.sql @@ -846,6 +846,17 @@ CREATE TABLE IF NOT EXISTS `xchan` ( KEY `xchan_connurl` (`xchan_connurl`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; +CREATE TABLE IF NOT EXISTS `xlink` ( + `xlink_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `xlink_xchan` char(255) NOT NULL DEFAULT '', + `xlink_link` char(255) NOT NULL DEFAULT '', + `xlink_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`xlink_id`), + KEY `xlink_xchan` ( `xlink_xchan` ), + KEY `xlink_link` ( `xlink_link` ), + KEY `xlink_updated` ( `xlink_updated` ) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE IF NOT EXISTS `xprof` ( `xprof_hash` char(255) NOT NULL, `xprof_desc` char(255) NOT NULL DEFAULT '', diff --git a/install/update.php b/install/update.php index 614887709..075b2f8a6 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ Date: Wed, 2 Jan 2013 01:30:53 -0800 Subject: typos etc. --- install/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/update.php b/install/update.php index 075b2f8a6..6ba2f8254 100644 --- a/install/update.php +++ b/install/update.php @@ -199,7 +199,7 @@ ADD INDEX ( `xchan_connurl` )"); } function update_r1013() { - $r = q"CREATE TABLE if not exists `xlink` ( + $r = q("CREATE TABLE if not exists `xlink` ( `xlink_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , `xlink_xchan` CHAR( 255 ) NOT NULL DEFAULT '', `xlink_link` CHAR( 255 ) NOT NULL DEFAULT '', -- cgit v1.2.3 From 4108598133eae97e7c8a0b8e13ead4856f423cff Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 2 Jan 2013 02:00:46 -0800 Subject: yikes that's a lot of typos --- install/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/update.php b/install/update.php index 6ba2f8254..549ae63ed 100644 --- a/install/update.php +++ b/install/update.php @@ -206,7 +206,7 @@ function update_r1013() { `xlink_updated` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE = MYISAM "); - $r2 = q("alter table xlink add index ( xlink_xchan ), add index ( xlink link ), add index ( xlink_updated ) "); + $r2 = q("alter table xlink add index ( xlink_xchan ), add index ( xlink_link ), add index ( xlink_updated ) "); if($r && $r2) return UPDATE_SUCCESS; return UPDATE_FAILED; -- cgit v1.2.3