作者归档:在线疯狂

RSS feed of 在线疯狂

SAE zinnia 0.13升级0.15.2

1. 备份数据库,然后执行MySQL数据库表变更,SQL如下:

ALTER TABLE `zinnia_entry`
     ADD COLUMN `image_caption` LONGTEXT NULL AFTER `detail_template`,
     ADD COLUMN `lead` LONGTEXT NULL AFTER `image_caption`,
     ADD COLUMN `publication_date` DATETIME NULL AFTER `lead`;

ALTER TABLE `zinnia_entry` ADD INDEX `zinnia_entry_slug_4505cfe2_idx` (`slug`, `publication_date`);

ALTER TABLE `zinnia_entry` ADD ...

继续阅读