add warning for sqlite which cannot put table mods into transaction

This commit is contained in:
Uwe Steinmann 2017-04-28 13:10:25 +02:00
parent cdbb70f3b9
commit b57e91e675

View File

@ -4,7 +4,12 @@ Caution when you update an sqlite database
The database changes for this version will require to change the
definition of various columns. This is not easily possible when using
sqlite. Therefore, the affected tables are first renamed, than
new tables with the modified columns are created in the old table
content will be copied into the new table. The old tables will not
be removed and are prefixed with '__'. You may manunally remove them
once you have successfully checked the update.
new tables with the modified columns are created and the old table
contents will be copied into the new tables. The old tables will
be removed afterwards.
Because sqlite does not support transactions on alter, create and drop
table these changes cannot not be undone in case of an error. Backup
your database before and consider to do the update manually by running
cat install/update-5.1.0/update-sqlite.sql | sqlite data/content.db