ERROR: cannot execute CREATE TABLE in a read-only transaction Where: SQL statement

@flamber Can you please point out the commit which introduced readOnly. I tried to find it out from the commit messages but it was not clear and was not able to find it.