]> git.mxchange.org Git - friendica.git/blobdiff - update.php
another typo
[friendica.git] / update.php
index 82ae0587296f5a43098a274603c966f36e4615ef..723f12c1ac8cc084ec163d83b15d8f6210bd2a23 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1088 );
+define( 'UPDATE_VERSION' , 1094 );
 
 /**
  *
@@ -743,3 +743,47 @@ function update_1087() {
                }
        }
 }
+
+function update_1088() {
+       q("ALTER TABLE `user` ADD `account_expired` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `expire` ,
+               ADD `account_expires_on` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `account_expired` ,
+               ADD `expire_notification_sent` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `account_expires_on` ");
+}
+
+function update_1089() {
+       q("ALTER TABLE `user` ADD `blocktags` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `hidewall` ");
+}
+
+function update_1090() {
+       q("ALTER TABLE `contact` ADD `batch` char(255) NOT NULL AFTER `prvkey` ");
+
+       q("UPDATE `contact` SET `batch` = concat(substring_index(`url`,'/',3),'/receive/public') WHERE `network` = 'dspr' ");
+
+}
+
+function update_1091() {
+
+       // catch a few stragglers that may have crept in before we added this on remote connects
+       q("UPDATE `contact` SET `batch` = concat(substring_index(`url`,'/',3),'/receive/public') WHERE `network` = 'dspr' AND `batch` = '' ");
+       q("ALTER TABLE `queue` ADD `batch` TINYINT( 1 ) NOT NULL DEFAULT '0' ");
+       q("ALTER TABLE `fcontact` ADD `batch` char(255) NOT NULL AFTER `addr` ");
+
+}
+
+function update_1092() {
+       q("ALTER TABLE `user` ADD INDEX ( `login_date` ) ");
+       q("ALTER TABLE `user` ADD INDEX ( `account_expired` ) ");
+}
+
+function update_1093() {
+       q("CREATE TABLE IF NOT EXISTS `fserver` (
+       `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+       `server` CHAR( 255 ) NOT NULL ,
+       `posturl` CHAR( 255 ) NOT NULL ,
+       `key` TEXT NOT NULL,
+       INDEX ( `server` )
+       ) ENGINE = MYISAM ");
+
+       q("ALTER TABLE `group` ADD `visible` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `uid` ");
+
+}
\ No newline at end of file