aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-16 00:59:43 -0800
committerfriendica <info@friendica.com>2013-01-16 00:59:43 -0800
commita9f4a47a35eecad03c9c0da58a3febc99fd87453 (patch)
tree603afbbde45be1e32398a6d458b73144858057f8 /install
parentddd8a0e062964cc18a7ef54828019ee28e63175b (diff)
downloadvolse-hubzilla-a9f4a47a35eecad03c9c0da58a3febc99fd87453.tar.gz
volse-hubzilla-a9f4a47a35eecad03c9c0da58a3febc99fd87453.tar.bz2
volse-hubzilla-a9f4a47a35eecad03c9c0da58a3febc99fd87453.zip
import events (not just event posts) from zot
Diffstat (limited to 'install')
-rw-r--r--install/database.sql1
-rw-r--r--install/update.php8
2 files changed, 7 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql
index c8b9d4867..914add2d8 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -224,7 +224,6 @@ CREATE TABLE IF NOT EXISTS `event` (
`uid` int(11) NOT NULL,
`event_xchan` char(255) NOT NULL DEFAULT '',
`event_hash` char(255) NOT NULL DEFAULT '',
- `message_id` char(255) NOT NULL,
`created` datetime NOT NULL,
`edited` datetime NOT NULL,
`start` datetime NOT NULL,
diff --git a/install/update.php b/install/update.php
index 5479f1e26..a6fecbef5 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1019 );
+define( 'UPDATE_VERSION' , 1020 );
/**
*
@@ -279,3 +279,9 @@ ADD INDEX ( `event_hash` )");
}
+function update_r1019() {
+ $r = q"ALTER TABLE `event` DROP `message_id` ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}