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