diff options
author | Zach Prezkuta <fermion@gmx.com> | 2012-06-03 14:52:42 -0600 |
---|---|---|
committer | Zach Prezkuta <fermion@gmx.com> | 2012-06-03 14:53:30 -0600 |
commit | 2a01ae8149e8a16ea0c0c5619a8dd0b682dba21c (patch) | |
tree | 3ec279fab94641faa31d9a031dab93260bc416f3 | |
parent | 9920fb39e566a10c44aa7ead9603ff3d1893a01a (diff) | |
download | volse-hubzilla-2a01ae8149e8a16ea0c0c5619a8dd0b682dba21c.tar.gz volse-hubzilla-2a01ae8149e8a16ea0c0c5619a8dd0b682dba21c.tar.bz2 volse-hubzilla-2a01ae8149e8a16ea0c0c5619a8dd0b682dba21c.zip |
database updates
-rw-r--r-- | boot.php | 2 | ||||
-rw-r--r-- | database.sql | 6 | ||||
-rw-r--r-- | update.php | 7 |
3 files changed, 7 insertions, 8 deletions
@@ -11,7 +11,7 @@ require_once('include/cache.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_VERSION', '3.0.1362' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1147 ); +define ( 'DB_UPDATE_VERSION', 1148 ); define ( 'EOL', "<br />\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/database.sql b/database.sql index b20846bad..c1d1b27e4 100644 --- a/database.sql +++ b/database.sql @@ -944,12 +944,14 @@ CREATE TABLE IF NOT EXISTS `session` ( CREATE TABLE IF NOT EXISTS `sign` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `iid` int(10) unsigned NOT NULL, + `iid` int(10) unsigned NOT NULL DEFAULT '0', + `retract_iid` int(10) unsigned NOT NULL DEFAULT '0', `signed_text` mediumtext NOT NULL, `signature` text NOT NULL, `signer` char(255) NOT NULL, PRIMARY KEY (`id`), - KEY `iid` (`iid`) + KEY `iid` (`iid`), + KEY `retract_iid` (`retract_iid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- diff --git a/update.php b/update.php index b542d75ba..35a6771b0 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1147 ); +define( 'UPDATE_VERSION' , 1148 ); /** * @@ -1274,8 +1274,7 @@ function update_1146() { return UPDATE_SUCCESS ; } -/* -function update_xxxx() { +function update_1147() { $r1 = q("ALTER TABLE `sign` ALTER `iid` SET DEFAULT '0'"); $r2 = q("ALTER TABLE `sign` ADD `retract_iid` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `iid`"); $r3 = q("ALTER TABLE `sign` ADD INDEX ( `retract_iid` )"); @@ -1283,6 +1282,4 @@ function update_xxxx() { return UPDATE_FAILED ; return UPDATE_SUCCESS ; } -*/ -// dump DB schema: mysqldump -d -h localhost -u root -pmypassword databasename > dumpfile.sql |