Esempio n. 1
0
    protected function createVersionTable()
    {
        $this->db->exec('create table if not exists ' . Nano_Migrate::VERSION_TABLE . '(
			  id integer primary key
			, version text
		)');
    }
Esempio n. 2
0
    /**
     * @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
		)');
    }
Esempio n. 3
0
 public function run(Nano_Db $db)
 {
     $db->exec('insert into migration_test(id, comment) values (301, ' . $db->quote('3rd migration script') . ')');
 }