<p>In t/postgresql-rename-table-and-field.t:</p>
<pre style='color:#555'>&gt; +
&gt; +my $table = $target_sqlt-&gt;get_table(&#39;fluff&#39;);
&gt; +$table-&gt;extra( renamed_from =&gt; &#39;foo&#39; );
&gt; +my $field = $table-&gt;get_field(&#39;biff&#39;);
&gt; +$field-&gt;extra( renamed_from =&gt; &#39;bar&#39; );
&gt; +
&gt; +my @diff = SQL::Translator::Diff-&gt;new({
&gt; +    output_db =&gt; &#39;PostgreSQL&#39;,
&gt; +    source_schema =&gt; $source_sqlt,
&gt; +    target_schema =&gt; $target_sqlt,
&gt; +})-&gt;compute_differences-&gt;produce_diff_sql;
&gt; +
&gt; +foreach my $line (@diff) {
&gt; +    $line =~ s/\n//g;
&gt; +    next if $line =~ /^--/;
&gt; +    lives_ok { $dbh-&gt;do($line) || die } &quot;$line&quot;;
</pre>
<p>Instead of <code>lives_ok { … || die }</code>, set <code>RaiseError</code> (preferrably) or just use <code>ok( … )</code>.  </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/dbsrgits/sql-translator/pull/44/files#r16600503">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/302594__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNDMzNzE2NSwiZGF0YSI6eyJpZCI6NDAzODg2NjF9fQ==--740c0ea04711b3e4eeab6e93e18d7e4ca9edd109.gif" width="1" /></p>