Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 6. jún 2026

Súbor: [Platon] / Metafox / sql / updates / 0.9.0 / update.sql (stiahnutie)

Revízia 1.10, Mon Jan 24 16:44:49 2011 UTC (15 years, 4 months ago) by igor


Zmeny od 1.9: +23 -1 [lines]

added article and section checkboxes
Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/

--
-- Home text for global sections
-- (created for www.amrophever.sk)
--
alter table ezin_articles add ghometext text after atitle;
alter table ezin_articles add ghometext_wordcount int(11) after datetime;
alter table ezin_articles add ghometext_flags varchar(10) after bodytext_wordcount;

--
-- ezin_authors indexes
--
alter table ezin_authors add key ezin_authors_type (type);
alter table ezin_authors add key ezin_authors_access_key (access_key);
alter table ezin_authors add key ezin_authors_template_key (template_key);

--
-- IP address fields resize
--
alter table ezin_sessions    modify ip varchar(255);
alter table ezin_counts_temp modify ip varchar(255);

--
-- New authors fields
--
alter table ezin_authors add location varchar(150) after name;
alter table ezin_authors add position varchar(150) after name;
alter table ezin_authors modify email varchar(150);

--
-- Article relation to editorial
--
alter table ezin_editorials add article_id int(11) default NULL after section_id;
alter table ezin_editorials add key ezin_editorials_article_id (article_id);

--
-- New authors field for bind
--
ALTER TABLE `ezin_authors` ADD `bind` INT NULL DEFAULT NULL AFTER `type` ;

--
-- Flag for Calendar
--
ALTER TABLE `ezin_articles` ADD `calendar_flag` DATE NULL AFTER `bodytext` ;

--
-- Flag for Featured Articles
--
ALTER TABLE `ezin_articles` ADD `featured_articles_flag` DATETIME NULL AFTER `calendar_flag` ;

--
-- New Article status and Section type, transform value from old type to new
--
ALTER TABLE `ezin_articles` ADD `display` SET('enabled','in_normal','in_global') AFTER `status` ;

UPDATE `ezin_articles` SET `display` = 'enabled,in_normal,in_global' WHERE `status` = 'showed' ;
UPDATE `ezin_articles` SET `display` = 'enabled,in_normal' WHERE `status` = 'partly_showed' ;
UPDATE `ezin_articles` SET `display` = 'enabled' WHERE `status` = 'hidden' ;
UPDATE `ezin_articles` SET `display` = '' WHERE `status` = 'disabled' ;

ALTER TABLE `ezin_sections` ADD `type2` SET('global') AFTER `type` ;
ALTER TABLE `ezin_sections` ADD `display` SET('in_list','articles_enabled','articles_in_normal','articles_in_global') AFTER `type2` ;
ALTER TABLE `ezin_sections` ADD `select` SET('articles','pages','editorials') AFTER `display` ;

UPDATE `ezin_sections` SET `type2` = 'global', `display` = 'in_list,articles_enabled,articles_in_normal,articles_in_global', `select` = 'articles,pages,editorials' WHERE `type` = 'global' ;
UPDATE `ezin_sections` SET `type2` = '', `display` = 'in_list,articles_enabled,articles_in_normal,articles_in_global', `select` = 'articles,pages,editorials' WHERE `type` = 'normal' ;
UPDATE `ezin_sections` SET `type2` = '', `display` = 'articles_enabled,articles_in_normal,articles_in_global', `select` = 'articles,pages,editorials' WHERE `type` = 'hidden' ;
UPDATE `ezin_sections` SET `type2` = '', `display` = 'articles_enabled,articles_in_normal', `select` = 'articles,pages,editorials' WHERE `type` = 'hidden2' ;
UPDATE `ezin_sections` SET `type2` = '', `display` = 'articles_enabled', `select` = 'articles,pages,editorials' WHERE `type` = 'full_hidden' ;
UPDATE `ezin_sections` SET `type2` = '', `display` = '', `select` = '' WHERE `type` = 'disabled' ;


Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok