Select the database version

SELECT * FROM defaults WHERE setting_key = 'version';

Topic: