removed obsolete se2de-lift code

This commit is contained in:
following
2013-04-05 23:02:33 +02:00
parent 2a2b847d2b
commit e7342ffc9c
20 changed files with 0 additions and 914 deletions

View File

@ -1,4 +0,0 @@
<FilesMatch "*">
Order Deny,Allow
Deny from All
</FilesMatch>

View File

@ -1,65 +0,0 @@
/*
delete from cache_type where id = '11';
delete from cache_type where id = '12';
delete from cache_type where id = '13';
delete from cache_type where id = '14';
*/
INSERT INTO `cache_type` (`id`, `name`, `trans_id`, `ordinal`, `short`, `de`, `en`, `icon_large`) VALUES ('11', 'Podcache', '1043', '11', 'Pod', 'Podcast', 'Podcast', 'cache/podcache.png');
INSERT INTO `cache_type` (`id`, `name`, `trans_id`, `ordinal`, `short`, `de`, `en`, `icon_large`) VALUES ('12', 'Educache', '1044', '12', 'Edu', 'Educache', 'Educache', 'cache/edu.png');
INSERT INTO `cache_type` (`id`, `name`, `trans_id`, `ordinal`, `short`, `de`, `en`, `icon_large`) VALUES ('13', 'Challenge', '1045', '13', 'Chlg.', 'Challenge', 'Challenge', 'cache/challenge.png');
INSERT INTO `cache_type` (`id`, `name`, `trans_id`, `ordinal`, `short`, `de`, `en`, `icon_large`) VALUES ('14', 'Guestbook', '1046', '14', 'Guest', 'Guestbook', 'Guestbook', 'cache/guestbook.png');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('11', '1');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('11', '2');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('11', '3');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('12', '1');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('12', '2');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('12', '3');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('13', '1');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('13', '2');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('13', '3');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('14', '1');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('14', '2');
INSERT INTO `cache_logtype` (`cache_type_id`, `log_type_id`) VALUES ('14', '3');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES
(1043, 'Podcache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES
(1044, 'Educache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES
(1045, 'Challengecache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES
(1046, 'Guestbookcache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES
(1043, './lang/de/ocstyle/search.tpl.php', 336),
(1043, 'table:cache_type;field=name', 0);
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES
(1044, './lang/de/ocstyle/search.tpl.php', 336),
(1044, 'table:cache_type;field=name', 0);
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES
(1045, './lang/de/ocstyle/search.tpl.php', 336),
(1045, 'table:cache_type;field=name', 0);
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES
(1046, './lang/de/ocstyle/search.tpl.php', 336),
(1046, 'table:cache_type;field=name', 0);
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES
(1043, 'EN', 'Podcast Cache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES
(1043, 'SV', 'Podcast Cache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES
(1044, 'EN', 'Educational Cache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES
(1044, 'SV', 'Utbildningscache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES
(1045, 'EN', 'Challenge Cache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES
(1045, 'SV', 'Utmaningscache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES
(1046, 'EN', 'Guest Book Cache', '2011-01-15 22:00:01');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES
(1046, 'SV', 'G<EFBFBD>stbokscache', '2011-01-15 22:00:01');

View File

@ -1,230 +0,0 @@
/* this must be the first script for counters to updated properly */
/* Please note that triggers must be installed before running this script */
/* Please note that this script drops some triggers to they MUST be reinstalled after running this script */
/* Please check that logentries.date_created has not been destroyed (insufficient privileges to drop trigger) */
/* this is to fool most triggers not to update dates */
set @XMLSYNC=1;
/*
delete from user;
delete from user_options;
delete from email_user;
delete from logentries;
*/
/* clear statistics counters, these will be updated by the triggers */
delete from stat_caches;
delete from stat_cache_logs;
delete from stat_user;
INSERT INTO `user` (
`user_id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`last_login`,
`username`,
`password`,
`email`,
`latitude`,
`longitude`,
`is_active_flag`,
`last_name`,
`first_name`,
`country`,
`pmr_flag`,
`new_pw_code`,
`new_pw_date`,
`new_email_code`,
`new_email_date`,
`new_email`,
`permanent_login_flag`,
`watchmail_mode`,
`watchmail_hour`,
`watchmail_nextmail`,
`watchmail_day`,
`activation_code`,
`statpic_logo`,
`statpic_text`,
`no_htmledit_flag`,
`notify_radius`,
`admin`)
select
`user_id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`last_login`,
`username`,
`password`,
`email`,
`latitude`,
`longitude`,
`is_active_flag`,
NULL, -- `last_name`,
NULL, -- `first_name`,
`country`,
`pmr_flag`,
`new_pw_code`,
`new_pw_date`,
`new_email_code`,
`new_email_date`,
`new_email`,
`permanent_login_flag`,
if(`watchmail_mode`=1, 0, if(`watchmail_mode`=0, 1, `watchmail_mode`)),
`watchmail_hour`,
`watchmail_nextmail`,
`watchmail_day`,
`activation_code`,
`statpic_logo`,
`statpic_text`,
`no_htmledit_flag`,
`notify_radius`,
`admin`
-- `login_faults`
-- `login_id`
-- `was_loggedin`
-- `post_news`
-- `hidden_count`
-- `log_notes_count`
-- `founds_count`
-- `notfounds_count`
-- `cache_watches`
-- `cache_ignores`
-- `stat_ban`
-- `description`
-- `rules_confirmed`
-- `get_bulletin`
-- `ozi_filips`
-- `hide_flag`
from
ocpl.user
where user_id>=0;
INSERT INTO `user_options` (
`user_id`,
`option_id`,
`option_visible`,
`option_value` )
select
`user_id`,
1,
0,
'11'
from
ocpl.user
where user_id>=0;
INSERT INTO `user_options` (
`user_id`,
`option_id`,
`option_visible`,
`option_value` )
select
`user_id`,
2,
0,
''
from
ocpl.user
where user_id>=0;
INSERT INTO `user_options` (
`user_id`,
`option_id`,
`option_visible`,
`option_value` )
select
`user_id`,
3,
1,
`description`
from
ocpl.user
where user_id>=0;
INSERT INTO `user_options` (
`user_id`,
`option_id`,
`option_visible`,
`option_value` )
select
`user_id`,
4,
0,
''
from
ocpl.user
where user_id>=0;
INSERT INTO `user_options` (
`user_id`,
`option_id`,
`option_visible`,
`option_value` )
select
`user_id`,
5,
0,
'1'
from
ocpl.user
where user_id>=0;
/* This trigger destroys date so drop it. */
DROP TRIGGER emailUserBeforeInsert;
INSERT INTO `email_user` (
`id`,
`date_created`,
`ipaddress`,
`from_user_id`,
`from_email`,
`to_user_id`,
`to_email` )
select
`id`,
`date_generated` as `date_created`,
`ipaddress`,
`from_user_id`,
`from_email`,
`to_user_id`,
`to_email`
-- `mail_subject`,
-- `mail_text`,
-- `send_emailaddress`,
-- `date_sent`
from ocpl.email_user;
/* This trigger destroys date so drop it. */
DROP TRIGGER `logentriesBeforeInsert`;
INSERT INTO `logentries` (
`id`,
`date_created`,
`module`,
`eventid`,
`userid`,
`objectid1`,
`objectid2`,
`logtext`,
`details` )
select
`id`,
`logtime` as `date_created`,
`module`,
`eventid`,
`userid`,
`objectid1`,
`objectid2`,
`logtext`,
`details`
from ocpl.logentries;
set @XMLSYNC=0;

View File

@ -1,298 +0,0 @@
/* Please note that triggers must be installed before running this script */
/* this is to fool triggers not to update dates */
set @XMLSYNC=1;
/*
delete from caches;
delete from caches_attributes;
delete from cache_desc;
delete from cache_visits;
delete from cache_rating;
delete from cache_ignore;
delete from cache_watches;
delete from cache_logs;
*/
DROP TRIGGER cacheAttributesAfterInsert;
DROP TRIGGER cacheAttributesAfterUpdate;
DROP TRIGGER cacheAttributesAfterDelete;
DROP TRIGGER cacheVisitsBeforeInsert;
DROP TRIGGER cacheVisitsBeforeUpdate;
DROP TRIGGER cacheLogsAfterInsert;
DROP PROCEDURE sp_notify_new_cache;
CREATE PROCEDURE sp_notify_new_cache (IN nCacheId INT(10) UNSIGNED, IN nLongitude DOUBLE, IN nLatitude DOUBLE)
BEGIN
END;
/* map
pl-type de-type description
1 1 Other
2 2 Trad
3 3 Multi
4 4 Virt
5 5 Webcam
6 6 Event
7 7 Quiz
8 Math/Physics-Cache
8 9 Moving
10 Drive-In
9 11 Podcast
10 12 Educache
11 13 Challenge
12 14 Guestbook
*/
create table type_conversion (
pltype tinyint(3) unsigned NOT NULL,
detype tinyint(3) unsigned NOT NULL );
insert into type_conversion ( pltype, detype ) values ( 1, 1 );
insert into type_conversion ( pltype, detype ) values ( 2, 2 );
insert into type_conversion ( pltype, detype ) values ( 3, 3 );
insert into type_conversion ( pltype, detype ) values ( 4, 4 );
insert into type_conversion ( pltype, detype ) values ( 5, 5 );
insert into type_conversion ( pltype, detype ) values ( 6, 6 );
insert into type_conversion ( pltype, detype ) values ( 7, 7 );
insert into type_conversion ( pltype, detype ) values ( 8, 9 );
insert into type_conversion ( pltype, detype ) values ( 9, 11 );
insert into type_conversion ( pltype, detype ) values ( 10, 12 );
insert into type_conversion ( pltype, detype ) values ( 11, 13 );
insert into type_conversion ( pltype, detype ) values ( 12, 14 );
/*
(select detype from type_conversion where pltype = `type`) as `type`
*/
INSERT INTO `caches` (
`cache_id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`user_id`,
`name`,
`longitude`,
`latitude`,
`type`,
`status`,
`country`,
`date_hidden`,
`size`,
`difficulty`,
`terrain`,
`logpw`,
`search_time`,
`way_length`,
`wp_gc`,
`wp_nc`,
`wp_oc`,
`desc_languages`,
`default_desclang`,
`date_activate`,
`need_npa_recalc` )
select
`cache_id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`user_id`,
`name`,
`longitude`,
`latitude`,
(select detype from type_conversion where pltype = `type`) as `type`,
`status`,
`country`,
`date_hidden`,
`size`,
`difficulty`,
`terrain`,
`logpw`,
`search_time`,
`way_length`,
`wp_gc`,
`wp_nc`,
`wp_oc`,
`desc_languages`,
`default_desclang`,
`date_activate`,
`need_npa_recalc`
-- `founds`
-- `notfounds`
-- `notes`
-- `images`
-- `last_found`
-- `watcher`
-- `picturescount`
-- `topratings`
-- `ignorer_count`
-- `votes`
-- `score`
-- `mp3count`
-- `solution`
-- `solved`
-- `not_solved`
from ocpl.caches;
DROP TABLE IF EXISTS type_conversion;
insert into `cache_desc` (
`id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`cache_id`,
`language`,
`desc`,
`desc_html`,
`desc_htmledit`,
`hint`,
`short_desc` )
select
`id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`cache_id`,
`language`,
`desc`,
`desc_html`,
`desc_htmledit`,
`hint`,
`short_desc`
from ocpl.cache_desc;
/* no 60 wheelchair accessible is missing
*/
INSERT INTO `caches_attributes` (
`cache_id`,
`attrib_id`)
select
`cache_id`,
if(`attrib_id`=60, 63, `attrib_id`) `attrib_id`
from ocpl.caches_attributes;
INSERT INTO `cache_visits` (
`cache_id`,
`user_id_ip`,
`count`,
`last_modified` )
select
`cache_id`,
`user_id_ip`,
`count`,
last_visited as `last_modified`
from ocpl.cache_visits;
INSERT INTO `cache_rating` (
`cache_id`,
`user_id` )
select
`cache_id`,
`user_id`
from ocpl.cache_rating;
INSERT INTO `cache_ignore` (
`cache_id`,
`user_id` )
select
`cache_id`,
`user_id`
from ocpl.cache_ignore;
INSERT INTO `cache_watches` (
`cache_id`,
`user_id`,
`last_executed` )
select
`cache_id`,
`user_id`,
`last_executed`
from ocpl.cache_watches;
/*
automatic archived logs does not have a valid uuid
if(`uuid`=-1,upper(uuid()),`uuid`),
*/
INSERT INTO `cache_logs` (
`id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`cache_id`,
`user_id`,
`type`,
`date`,
`text`,
`text_html`,
`text_htmledit`,
`owner_notified`,
`picture`)
select
`id`,
if(`uuid`=-1,upper(uuid()),`uuid`),
`node`,
`date_created`,
`last_modified`,
`cache_id`,
`user_id`,
`type`,
`date`,
`text`,
`text_html`,
`text_htmledit`,
`owner_notified`,
`picturescount` as `picture`
-- `mp3count`
from ocpl.cache_logs
where `deleted` = 0 and `hidden` = 0;
update cache_logs
set text = replace(text, 'lib/tinymce/plugins/emotions/images/', 'resource2/tinymce/plugins/emotions/img/')
update cache_logs
set text = replace(text, 'lib/tinymce/plugins/emotions/img/', 'resource2/tinymce/plugins/emotions/img/')
INSERT INTO `cache_logs_archived` (
`id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`cache_id`,
`user_id`,
`type`,
`date`,
`text`,
`text_html`,
`text_htmledit`,
`owner_notified`,
`picture`)
select
`id`,
if(`uuid`=-1,upper(uuid()),`uuid`),
`node`,
`date_created`,
`last_modified`,
`cache_id`,
`user_id`,
`type`,
`date`,
`text`,
`text_html`,
`text_htmledit`,
`owner_notified`,
`picturescount` as `picture`
-- `mp3count`
from ocpl.cache_logs
where `deleted` = 1 or `hidden` = 1;
set @XMLSYNC=0;

View File

@ -1,92 +0,0 @@
/* Please note that triggers must be installed before running this script */
/* Please note that this script drops some triggers to they MUST be reinstalled after running this script */
/* Please check that news.date_created has not been destroyed (insufficient privileges to drop trigger) */
/* this is to fool most triggers not to update dates */
set @XMLSYNC=1;
/*
delete from news;
delete from pictures;
delete from removed_objects;
*/
/* replace topics with relevant topics for this site */
delete from news_topics;
insert into news_topics ( `id`, `name` )
values ( 1, 'Opencaching' );
DROP TRIGGER newsBeforeInsert;
INSERT INTO `news` (
`id`,
`date_created`,
`content`,
`topic`,
`display` )
select
`id`,
`date_posted` as `date_created`,
`content`,
`topic`,
`display`
from ocpl.news;
INSERT INTO `pictures` (
`id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`url`,
`title`,
`last_url_check`,
`object_id`,
`object_type`,
`thumb_url`,
`thumb_last_generated`,
`spoiler`,
`local`,
`unknown_format`,
`display`)
select
`id`,
`uuid`,
`node`,
`date_created`,
`last_modified`,
`url`,
`title`,
`last_url_check`,
`object_id`,
`object_type`,
`thumb_url`,
`thumb_last_generated`,
`spoiler`,
`local`,
`unknown_format`,
`display`
-- `description`,
-- `desc_html`,
-- `user_id`,
from ocpl.pictures;
INSERT INTO `removed_objects` (
`id`,
`localID`,
`uuid`,
`type`,
`removed_date`,
`node` )
select
`id`,
`localID`,
`uuid`,
`type`,
`removed_date`,
`node`
from ocpl.removed_objects;
set @XMLSYNC=0;

View File

@ -1,81 +0,0 @@
/* this is to fool most triggers not to update dates */
set @XMLSYNC=1;
/*
delete from `coordinates` where `type`=1;
delete from `coordinates` where `type`=2;
*/
/*
old:
`type`,
4 Reference point
5 Parking
new:
type=1 coordinate
subtype
1 Parking
2 Reference point
6-old_type,
*/
INSERT INTO `coordinates` (
`type`,
`subtype`,
`latitude`,
`longitude`,
`cache_id`,
`user_id`,
`log_id`,
`description` )
SELECT
1,
6-`type`,
`latitude`,
`longitude`,
`cache_id`,
null,
null,
`desc`
FROM
ocpl.waypoints;
/*
`status`,
`stage`,
*/
/*
new:
type=2 note
subtype=1
*/
INSERT INTO `coordinates` (
`type`,
`subtype`,
`latitude`,
`longitude`,
`cache_id`,
`user_id`,
`log_id`,
`description` )
SELECT
2,
1,
0,
0,
`cache_id`,
`user_id`,
null,
`desc`
FROM
ocpl.cache_notes;
/*
`date`
*/
set @XMLSYNC=0;

View File

@ -1 +0,0 @@
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`) VALUES ('57', 'MNU_CACHES_PODCAST', 'Edit podcast', '741', 'Edit podcast', '908', '0', 'podcast.php', '0', '10', '7', '', '0');

View File

@ -1,2 +0,0 @@
INSERT INTO `sys_menu` (`id_string`, `title`, `menustring`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`) VALUES
('MNU_START_RSS', 'Feeds from opencaching', 'RSS', 0, 'rss.php', 1, 0, 5, '', 1);

View File

@ -1 +0,0 @@
INSERT INTO `cache_attrib` (`id`, `name`, `icon`, `trans_id`, `group_id`, `selectable`, `category`, `search_default`, `default`, `icon_large`, `icon_no`, `icon_undef`, `html_desc`, `html_desc_trans_id`) VALUES ('63', 'Wheelchair accessible', 'wheelchair', '1801', '2', '1', '0', '1', '0', 'resource2/ocstyle/images/attributes/wheelchair.png', 'resource2/ocstyle/images/attributes/wheelchair-no.png', 'resource2/ocstyle/images/attributes/wheelchair-disabled.png', 'This geocache is accessible from wheelchair.', '1802');

View File

@ -1,60 +0,0 @@
prerequsites:
old database name ocpl (if not, all scripts have to be changed to refer to other <database>.<table> instead)
new database name ocse (this name is only present in this readme and in the settings)
switch all mail-sending off for the server to prevent errors. on wamp-server this is done by commenting a few lines
about mail in php.ini.
this doc uses cli-access to the database, most tasks can be done through phomysql except big imports
this example have the source on D:\proj\oc\ocsemerge\se2degit\
create a new database: ocse, collation utf8_general_ci
grant if not already
create a full table insert:
cat *.sql > x.txt in the directory code\htdocs\doc\sql\tables
use script access through:
..\wamp\bin\mysql\mysql5.1.36\bin\mysql -u root ocse
load all tables:
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\tables\x.txt
load updates (these might already be in x.txt at the time of applying this!!!):
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\se2de-lift\structure\01_longer_password.sql
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\se2de-lift\structure\02_podcache.sql
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\se2de-lift\structure\03_coordinates.sql
load static data:
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\static-data\data.sql
load all triggers:
For a clean database the triggers does not exist and the script fails. Open
doc/sql/stored-proc/maintain.php
and edit, comment sql_dropFunction and sql_dropProcedure
do the same for distance.php
http://localhost:8080/doc/sql/stored-proc/maintain.php
http://localhost:8080/doc/sql/stored-proc/distance.php
(this might involve setting a the correct username password in code\htdocs\util\mysql_root\setting.inc.php)
restore the two files maintain.php and distance.php.
upgrade old database into new:
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\se2de-lift\data\00.01_new_cache_types.sql
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\se2de-lift\data\01_copy_users.sql
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\se2de-lift\data\02_copy_caches.sql
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\se2de-lift\data\03_copy_misc.sql
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\se2de-lift\data\04_copy_waypoint_and_note.sql
source D:\proj\oc\ocsemerge\se2degit\code\htdocs\doc\sql\se2de-lift\data\10_podcache.sql
// source 11_upgrader pod This isn't written since no pods exist in old system!
reapply the triggers:
http://localhost:8080/doc/sql/stored-proc/maintain.php
http://localhost:8080/doc/sql/stored-proc/distance.php
if you are running a testserver, prevent passwords and e-mails to be stolen:
update user set password = null, email = null where username <> 'OlofL';
update user and set all email to null except yours
update logentries set logtext = null, details = null;
update email_user set from_email = null, to_email = null;
switch on mail-sending again

View File

@ -1,2 +0,0 @@
alter table `user` modify column
`password` varchar(512) default NULL;

View File

@ -1,21 +0,0 @@
SET NAMES 'utf8';
DROP TABLE IF EXISTS `mp3`;
CREATE TABLE `mp3` (
`id` int(10) unsigned NOT NULL auto_increment,
`uuid` varchar(36) NOT NULL,
`node` tinyint(3) unsigned NOT NULL default '0',
`date_created` datetime NOT NULL COMMENT 'via Trigger (mp3)',
`last_modified` datetime NOT NULL COMMENT 'via Trigger (mp3)',
`url` varchar(255) NOT NULL,
`title` varchar(250) NOT NULL,
`last_url_check` datetime NOT NULL default '0000-00-00 00:00:00',
`object_id` int(10) unsigned NOT NULL default '0',
`local` tinyint(1) NOT NULL default '1',
`unknown_format` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `last_modified` (`last_modified`),
KEY `url` (`url`),
KEY `title` (`title`),
KEY `object_id` (`object_id`),
KEY `uuid` (`uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

View File

@ -1,17 +0,0 @@
SET NAMES 'utf8';
DROP TABLE IF EXISTS coordinates;
CREATE TABLE coordinates (
id int(11) NOT NULL auto_increment,
type int NOT NULL ,
subtype int NULL ,
latitude double NOT NULL,
longitude double NOT NULL,
cache_id int(11) NOT NULL,
user_id int(11) default NULL,
log_id int(11) default NULL,
description text default NULL,
PRIMARY KEY (id),
KEY cache_id (cache_id),
KEY user_id (user_id),
KEY log_id (log_id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;

View File

@ -1,18 +0,0 @@
SET NAMES 'utf8';
DROP TABLE IF EXISTS `cache_logs_archived`;
CREATE TABLE `cache_logs_archived` (
`id` int(10) unsigned NOT NULL,
`uuid` varchar(36) NOT NULL,
`node` tinyint(3) unsigned NOT NULL,
`date_created` datetime NOT NULL,
`last_modified` datetime NOT NULL,
`cache_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`type` tinyint(3) unsigned NOT NULL,
`date` date NOT NULL,
`text` mediumtext NOT NULL,
`text_html` tinyint(1) NOT NULL,
`text_htmledit` tinyint(1) NOT NULL,
`owner_notified` tinyint(1) NOT NULL,
`picture` smallint(5) unsigned NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;

View File

@ -1,2 +0,0 @@
ALTER TABLE `sys_menu`
ADD COLUMN `only_if_parent` tinyint(1);

View File

@ -1,2 +0,0 @@
ALTER TABLE `cache_attrib`
ADD COLUMN `hidden` tinyint(1);

View File

@ -1,8 +0,0 @@
SET NAMES 'utf8';
DROP TABLE IF EXISTS `rating_tops`;
CREATE TABLE `rating_tops` (
`cache_id` int(10) unsigned NOT NULL,
`rating` int(10) unsigned NOT NULL,
PRIMARY KEY (`cache_id`),
KEY `rating` (`rating`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;

View File

@ -1 +0,0 @@
ALTER TABLE `statpics` ADD COLUMN `trans_id` int(10) unsigned NOT NULL AFTER `description`;

View File

@ -1 +0,0 @@
ALTER TABLE `countries_options` DROP COLUMN `group`;

View File

@ -1,8 +0,0 @@
SET NAMES 'utf8';
DROP TABLE IF EXISTS `user_statpic`;
CREATE TABLE `user_statpic` (
`user_id` int(11) NOT NULL,
`lang` varchar(2) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`user_id`,`lang`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;