Skip to content

Commit

Permalink
Notice of having to be logged in before upgrading, as well as upgrade…
Browse files Browse the repository at this point in the history
… status after upgrading.

git-svn-id: file:///home/oestrich/tmp/img/trunk@1312 ea04b438-0a61-0410-93d0-9bc465a3bab0
  • Loading branch information
oestrich committed Jul 24, 2009
1 parent 9a811b2 commit 1c07c71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 22 deletions.
4 changes: 4 additions & 0 deletions upgrade.php
Expand Up @@ -165,4 +165,8 @@ function upgrade_modules_install(){

if($lncln->user->permissions['isAdmin'] == true){
upgrade_modules_install();
echo "Upgrade successful";
}
else{
echo "You must be an admin to access this page.";
}
27 changes: 5 additions & 22 deletions upgrade.txt
@@ -1,33 +1,16 @@
/* $Id$ */

Upgrading from 0.12.0
Upgrading from 0.13.0
---------------------

Make sure your site is backed up before attempting an upgrade.

Also, make sure you are logged in as an admin before upgrading.
I cannot stress this enough, the upgrade WILL NOT WORK if you
are not logged in.

The recommended way to upgrade is to remove everything but the
images folder. Upload the new version of lncln and apply these
SQL commands:

ALTER TABLE `groups` CHANGE `tag` `tags` INT( 1 ) NOT NULL ;

ALTER TABLE `groups` CHANGE `album` `albums` INT( 1 ) NOT NULL ;

ALTER TABLE `groups` CHANGE `caption` `captions` INT( 1 ) NOT NULL ;

RENAME TABLE `rating` TO `ratings` ;

ALTER TABLE `ratings` CHANGE `upDown` `rating` INT( 1 ) NOT NULL;

ALTER TABLE `groups` CHANGE `rate` `ratings` INT( 1 ) NOT NULL ,
CHANGE `rateValue` `ratingsValue` INT( 2 ) NOT NULL DEFAULT '0' ;

ALTER TABLE `images` DROP `numComments` ;

ALTER TABLE `images` ADD `tags` TEXT NOT NULL ;

UPDATE `settings` SET `name` = 'default_group' WHERE `settings`.`id` =6 LIMIT 1 ;

INSERT INTO `settings` ( `id` , `name` , `value` ) VALUES ( NULL , 'default_rss_keyword', 'safe');

If you have any other problems, please visit the forums.

0 comments on commit 1c07c71

Please sign in to comment.