aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-04 17:17:00 -0700
committerfriendica <info@friendica.com>2013-08-04 17:17:00 -0700
commit68d907803a4521d9f0c0b69c4e875864f9058a8d (patch)
treecebbd9d749974b87eb92c8fe5f468bb23c161eef /install
parent1b7b53f4093a6a2b277f2b85b0962adbf1fa759e (diff)
downloadvolse-hubzilla-68d907803a4521d9f0c0b69c4e875864f9058a8d.tar.gz
volse-hubzilla-68d907803a4521d9f0c0b69c4e875864f9058a8d.tar.bz2
volse-hubzilla-68d907803a4521d9f0c0b69c4e875864f9058a8d.zip
basic *account* removal, but the channel removal which it calls still needs (lots of) work. Oh and the intro table is no longer used and won't be - so it's gone.
Diffstat (limited to 'install')
-rw-r--r--install/database.sql22
-rw-r--r--install/update.php9
2 files changed, 8 insertions, 23 deletions
diff --git a/install/database.sql b/install/database.sql
index 0c4b868d2..cd1c72ac6 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -386,28 +386,6 @@ CREATE TABLE IF NOT EXISTS `hubloc` (
KEY `hubloc_connected` (`hubloc_connected`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE IF NOT EXISTS `intro` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uid` int(10) unsigned NOT NULL,
- `fid` int(11) NOT NULL DEFAULT '0',
- `contact-id` int(11) NOT NULL,
- `knowyou` tinyint(1) NOT NULL,
- `duplex` tinyint(1) NOT NULL DEFAULT '0',
- `note` text NOT NULL,
- `hash` char(255) NOT NULL,
- `datetime` datetime NOT NULL,
- `blocked` tinyint(1) NOT NULL DEFAULT '1',
- `ignore` tinyint(1) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `uid` (`uid`),
- KEY `fid` (`fid`),
- KEY `hash` (`hash`),
- KEY `datetime` (`datetime`),
- KEY `blocked` (`blocked`),
- KEY `ignore` (`ignore`),
- KEY `contact-id` (`contact-id`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
CREATE TABLE IF NOT EXISTS `issue` (
`issue_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`issue_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
diff --git a/install/update.php b/install/update.php
index f953e3f09..c09bc9d64 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1057 );
+define( 'UPDATE_VERSION' , 1058 );
/**
*
@@ -663,3 +663,10 @@ ADD INDEX ( `xchan_instance_url` ) ");
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1057() {
+ $r = q("drop table intro");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}