Modified char migration to support table prefixes and custom table names