Add note about engine=innodb to migration docs

This commit is contained in:
Will Kahn-Greene 2012-07-24 19:52:16 -04:00
Родитель 9784a83612
Коммит 085cc3a7e6
1 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -49,6 +49,23 @@ the output of::
for the app that you made changes to, then editing that down to the
bits needed.
.. Note::
If you have CREATE TABLE statements, make sure they end with setting
the engine to InnoDB. For example::
CREATE TABLE `topics_topic` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
`title` varchar(255) NOT NULL,
`slug` varchar(50) NOT NULL,
`description` longtext NOT NULL,
`image` varchar(250),
`parent_id` integer,
`display_order` integer NOT NULL,
`visible` bool NOT NULL
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;
.. Note::
If you created new models, make sure to insert the content type and