CREATE TABLE @extschema@.migrationhistory( id serial, version varchar(255), applied timestamp default current_timestamp ); INSERT INTO @extschema@.migrationhistory(version) VALUES('@MADLIB_VERSION_STRING@'::text);