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