File: downgrade_3.3cvs4.sql

package info (click to toggle)
sitebar 3.3.8-7etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,168 kB
  • ctags: 3,234
  • sloc: php: 52,374; sql: 570; sh: 331; makefile: 35
file content (48 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
ALTER TABLE `sitebar_config`
    DROP `changed`;

ALTER TABLE `sitebar_link`
    CHANGE `changed` `changed` TIMESTAMP(14);

ALTER TABLE `sitebar_link`
    CHANGE `tested` `tested` TIMESTAMP(14);

ALTER TABLE `sitebar_link`
    DROP `added`;

ALTER TABLE `sitebar_link`
    DROP `visited`;

ALTER TABLE `sitebar_link`
    DROP `target`;

ALTER TABLE `sitebar_visit`
    CHANGE `visited` `visit` TIMESTAMP(14);

UPDATE `sitebar_node`
   SET sort_mode='visit'
 WHERE sort_mode='waiting';

ALTER TABLE `sitebar_node`
    DROP `type`;

ALTER TABLE `sitebar_session`
    CHANGE `uid` `uid` INT(10) UNSIGNED DEFAULT '0' NOT NULL;

DROP TABLE IF EXISTS `sitebar_favicon`;
CREATE TABLE `sitebar_favicon` (
  `favicon_md5` char(32) NOT NULL,
  `ico` mediumblob NOT NULL,
  `changed` timestamp(14) NOT NULL,
  PRIMARY KEY  (`favicon_md5`)
) TYPE=MyISAM COMMENT='Contains the favicon cache.';

INSERT INTO `sitebar_favicon`
SELECT `ckey`, `cvalue`, `created`
FROM `sitebar_cache`
WHERE `type` = 'favicon';

DROP TABLE IF EXISTS `sitebar_cache`;

UPDATE `sitebar_config`
    SET `release` = '3.2.6';