aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-18 16:17:08 -0800
committerfriendica <info@friendica.com>2012-12-18 16:17:08 -0800
commita12264193ffe9daa04155aff78a1feaff82b7670 (patch)
tree2a852d9fe1c91fa2fce5e6b03e021190249e1765 /install
parente9b5b0f0b424930b87708080c4e6ce671016177b (diff)
downloadvolse-hubzilla-a12264193ffe9daa04155aff78a1feaff82b7670.tar.gz
volse-hubzilla-a12264193ffe9daa04155aff78a1feaff82b7670.tar.bz2
volse-hubzilla-a12264193ffe9daa04155aff78a1feaff82b7670.zip
modularise the notification popups
Diffstat (limited to 'install')
-rw-r--r--install/database.sql4
-rw-r--r--install/update.php12
2 files changed, 13 insertions, 3 deletions
diff --git a/install/database.sql b/install/database.sql
index 574aaa38e..342d93055 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -299,7 +299,7 @@ CREATE TABLE IF NOT EXISTS `deliverq` (
CREATE TABLE IF NOT EXISTS `event` (
`id` int(11) NOT NULL AUTO_INCREMENT,
- `account` int(10) unsigned NOT NULL DEFAULT '0',
+ `aid` int(10) unsigned NOT NULL DEFAULT '0',
`uid` int(11) NOT NULL,
`cid` int(11) NOT NULL,
`message_id` char(255) NOT NULL,
@@ -328,7 +328,7 @@ CREATE TABLE IF NOT EXISTS `event` (
KEY `adjust` (`adjust`),
KEY `nofinish` (`nofinish`),
KEY `ignore` (`ignore`),
- KEY `account` (`account`)
+ KEY `aid` (`aid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `fcontact` (
diff --git a/install/update.php b/install/update.php
index f767c2f22..e3394b5bc 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1002 );
+define( 'UPDATE_VERSION' , 1003 );
/**
*
@@ -61,3 +61,13 @@ function update_r1001() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+
+function update_r1002() {
+ $r = q("ALTER TABLE `event` CHANGE `account` `aid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'");
+ $r2 = q("alter table `event` drop index `account`, add index (`aid`)");
+
+ if($r && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}