src/Phinx/Db/Adapter/SQLiteAdapter.php
protected function getDeclaringSql($tableName)
    {
        $rows = $this->fetchAll('select * from sqlite_master where `type` = \'table\'');

        $sql = '';
        foreach ($rows as $table) {
            if ($table['tbl_name'] === $tableName) {
                $sql = $table['sql'];
            }
        }

        return $sql;
    }
protected function getDeclaringSql($tableName)
    {
        $rows = $this->fetchAll('select * from sqlite_master where `type` = \'table\'');

        $sql = '';
        foreach ($rows as $table) {
            if ($table['tbl_name'] === $tableName) {
                $sql = $table['sql'];
            }
        }

        return $sql;
    }
protected function getDeclaringSql ( $ tableName ) { $ rows = $ this -> fetchAll ( 'select * from sqlite_master where `type` = \'table\'' ) ; $ sql = '' ; foreach ( $ rows as $ table ) { if ( $ table [ 'tbl_name' ] === $ tableName ) { $ sql = $ table [ 'sql' ] ; } } return $ sql ; }
Returns the original CREATE statement for the give table

@param string $tableName The table name to get the create statement for
@return string
Returns the original CREATE statement for the give table