aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-15 22:33:37 -0700
committerfriendica <info@friendica.com>2012-08-15 22:33:37 -0700
commitf7c6a6ff9071c120f5bd6efe51cdb934e0c30cc7 (patch)
tree586454a21f87a8f9a5e75073ac065cfbbae935a4 /update.php
parent77b334efbce9eb9aef825b968a2c852da21bfe94 (diff)
downloadvolse-hubzilla-f7c6a6ff9071c120f5bd6efe51cdb934e0c30cc7.tar.gz
volse-hubzilla-f7c6a6ff9071c120f5bd6efe51cdb934e0c30cc7.tar.bz2
volse-hubzilla-f7c6a6ff9071c120f5bd6efe51cdb934e0c30cc7.zip
item table rename parent-uri, target-type, object-type (more to come later)
Diffstat (limited to 'update.php')
-rw-r--r--update.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/update.php b/update.php
index 19e6cf3bd..756bc7a51 100644
--- a/update.php
+++ b/update.php
@@ -42,8 +42,8 @@ function update_1000() {
q("ALTER TABLE `item` DROP `like`, DROP `dislike` ");
q("ALTER TABLE `item` ADD `verb` CHAR( 255 ) NOT NULL AFTER `body` ,
- ADD `object-type` CHAR( 255 ) NOT NULL AFTER `verb` ,
- ADD `object` TEXT NOT NULL AFTER `object-type` ");
+ ADD `obj_type` CHAR( 255 ) NOT NULL AFTER `verb` ,
+ ADD `object` TEXT NOT NULL AFTER `obj_type` ");
q("ALTER TABLE `intro` ADD `duplex` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `knowyou` ");
q("ALTER TABLE `contact` ADD `duplex` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `rel` ");
@@ -136,8 +136,8 @@ function update_1012() {
}
function update_1013() {
- q("ALTER TABLE `item` ADD `target-type` CHAR( 255 ) NOT NULL
- AFTER `object` , ADD `target` TEXT NOT NULL AFTER `target-type`");
+ q("ALTER TABLE `item` ADD `tgt_type` CHAR( 255 ) NOT NULL
+ AFTER `object` , ADD `target` TEXT NOT NULL AFTER `tgt_type`");
}
function update_1014() {
@@ -221,7 +221,7 @@ function update_1019() {
function update_1020() {
q("ALTER TABLE `profile` DROP `showwith`");
- q("ALTER TABLE `item` ADD `thr-parent` CHAR( 255 ) NOT NULL AFTER `parent-uri` ");
+ q("ALTER TABLE `item` ADD `thr-parent` CHAR( 255 ) NOT NULL AFTER `parent_uri` ");
}
function update_1021() {
@@ -479,7 +479,7 @@ function update_1052() {
function update_1053() {
- q("ALTER TABLE `item` ADD `extid` CHAR( 255 ) NOT NULL AFTER `parent-uri` , ADD INDEX ( `extid` ) ");
+ q("ALTER TABLE `item` ADD `extid` CHAR( 255 ) NOT NULL AFTER `parent_uri` , ADD INDEX ( `extid` ) ");
}
function update_1054() {
@@ -940,7 +940,7 @@ function update_1109() {
function update_1110() {
q("ALTER TABLE `mail` ADD `reply` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `seen`,
ADD INDEX ( `reply` ), ADD INDEX ( `uid` ), ADD INDEX ( `guid` ), ADD INDEX ( `seen` ),
- ADD INDEX ( `uri` ), ADD INDEX ( `parent-uri`), ADD INDEX ( `created` ), ADD INDEX ( `convid` ) ");
+ ADD INDEX ( `uri` ), ADD INDEX ( `parent_uri`), ADD INDEX ( `created` ), ADD INDEX ( `convid` ) ");
}