This is what I was talking about when I said that you need to make sure the new system is DBMS-agnostic. This CREATE TABLE statement is MySQL-dependent. You should move this logic inside the MySQL adapter, even if all you do is copy this exact SQL code inside the adapter, in a createRevisionsTable() or something like that.