<p>In <a href="https://github.com/dbsrgits/sql-translator/pull/47#discussion-diff-22586062">t/56-sqlite-producer.t</a>:</p>
<pre style='color:#555'>&gt; @@ -165,6 +165,24 @@ $SQL::Translator::Producer::SQLite::NO_QUOTES = 0;
&gt;  }
&gt;  
&gt;  {
&gt; +   my $table = SQL::Translator::Schema::Table-&gt;new(
&gt; +       name =&gt; &#39;some_table&#39;,
&gt; +   );
&gt; +   $table-&gt;add_field(
&gt; +       name =&gt; &#39;id&#39;,
&gt; +       data_type =&gt; &#39;integer&#39;,
&gt; +       is_auto_increment =&gt; 1,
&gt; +       is_nullable =&gt; 0,
&gt; +       extra =&gt; {
&gt; +           auto_increment_method =&gt; &#39;sequence&#39;,
&gt; +       },
&gt; +   );
&gt; +   my $expected = [ qq&lt;CREATE TABLE &quot;some_table&quot; (\n  &quot;id&quot; integer AUTOINCREMENT NOT NULL\n)&gt;];
</pre>
<p>This is not actually valid in SQLite, <code>AUTOINCREMENT</code> can only be used immediately after <code>INTEGER PRIMARY KEY</code>, so <code>field_autoinc()</code> should be checking <code>$self-&gt;_ipk($field)</code> as well as <code>$field-&gt;is_auto_increment</code> and <code>auto_increment_method</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/47/files#r22586062">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AASeApDa5G0JLIgG3lfWZOOtHQx5zq_4ks5nfS_0gaJpZM4DFbLf.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/dbsrgits/sql-translator/pull/47/files#r22586062"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>