aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-01 17:07:55 -0700
committerfriendica <info@friendica.com>2013-09-01 17:07:55 -0700
commitde3345f5f39f080e00c2572b48a53d85c7f65b5c (patch)
tree6a3fbad7c70ebd561a5e0e085907480de952a91b /install/update.php
parent00622779f3fd68bf9ae4860d776c65c82ae1c0c0 (diff)
downloadvolse-hubzilla-de3345f5f39f080e00c2572b48a53d85c7f65b5c.tar.gz
volse-hubzilla-de3345f5f39f080e00c2572b48a53d85c7f65b5c.tar.bz2
volse-hubzilla-de3345f5f39f080e00c2572b48a53d85c7f65b5c.zip
This isn't optimal, but on the short term we'll clone the page editor to use as a block editor, and probably a layout editor as well. Eventually, these should all probably just be switches onto a single editor instance. Decided to put the layout_mid into the item table directory rather than re-use resource_id, so that we can still have pages attached to different resources like photos and events and stuff. The block editor is far from finished, at this point I've only cloned it and changed the name and type of item it looks for.
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 13dded6fe..4f004e651 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1065 );
+define( 'UPDATE_VERSION' , 1066 );
/**
*
@@ -759,3 +759,10 @@ ADD INDEX ( `ud_guid` )");
return UPDATE_FAILED;
}
+function update_r1065() {
+ $r = q("ALTER TABLE `item` DROP `wall`, ADD `layout_mid` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `target` ,
+ADD INDEX ( `layout_mid` ) ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}