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 ...

继续阅读

[LeetCode]Peeking Iterator

题目描述:

Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- it essentially peek() at the element that will be returned by the next call to next().

Here is an ...

继续阅读

年度归档