Just two notes:
1) I'm not very sure about how the Home page is handled, so I set manually its position to 1 when the first customized page is created. Sure there's a better method. Look for a FIXME comment in the code to find this part.
2) I added a new column in the pages table, so existent databases should issue an ALTER TABLE command or re-initialize the database.
Patch coming!
Just two notes:
1) I'm not very sure about how the Home page is handled, so I set manually its position to 1 when the first customized page is created. Sure there's a better method. Look for a FIXME comment in the code to find this part.
2) I added a new column in the pages table, so existent databases should issue an ALTER TABLE command or re-initialize the database.