protected function createVersionTable() { $this->db->exec('create table if not exists ' . Nano_Migrate::VERSION_TABLE . '( id integer primary key , version text )'); }
/** * @return void * @param Nano_Db $db */ public static function sqlite(Nano_Db $db) { $db->exec('create table ' . Nano_Migrate::VERSION_TABLE . '( id integer not null primary key , version text )'); }
public function run(Nano_Db $db) { $db->exec('insert into migration_test(id, comment) values (301, ' . $db->quote('3rd migration script') . ')'); }