No subject


Sun Nov 20 20:48:46 GMT 2022


```
Adding dependency on the sqlt support ticket - without having an sqlt
infrastructure to consume index lengths, there's no point of adding this
to dbic.
```


-- 
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class-schema-loader/issues/48
You are receiving this because you are subscribed to this thread.

Message ID: <dbsrgits/dbix-class-schema-loader/issues/48 at github.com>
----==_mimepart_637a935845658_7f91c67018864b7
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p></p>
<p dir="auto">Migrated from <a href="https://rt.cpan.org/Ticket/Display.html?id=68734" rel="nofollow">rt.cpan.org#68734</a> (status was 'open')</p>
<p dir="auto">Requestors:</p>
<ul dir="auto">
<li><a href="mailto:michael.du-pont at dress-for-less.de">michael.du-pont at dress-for-less.de</a></li>
</ul>
<p dir="auto">From <a href="mailto:michael.du-pont at dress-for-less.de">michael.du-pont at dress-for-less.de</a> on 2011-06-10 10:12:31<br>
:</p>
<pre class="notranslate"><code class="notranslate">This table cannot be round tripped via the 

CREATE TABLE GOOD (
  sometext text NOT NULL,
  UNIQUE KEY sometext2 ( sometext(150))
) 

dbicdump -o dump_directory=./lib  -o
components='["InflateColumn::DateTime"]' DFL::Schema::TEST
"dbi:mysql:database=$1:host=dbslave2" UID PWD '{ overwrite_modifications
=&gt; 1, quote_char =&gt; "`" }'

Produces :

__PACKAGE__-&gt;add_unique_constraint("sometext2", [ "sometext"]);

This produces bad sql when deployed:


my $schema = Test::Schema::TEST-&gt;connect("dbi:mysql:dbname=${db}",
$user, $pass);
    $schema-&gt;create_ddl_dir(['MySQL', 'SQLite', 'PostgreSQL'],
			    '0.1',
			    './sql/'
	);

    $schema-&gt;deploy({ add_drop_table =&gt; 1});

############

CREATE TABLE BAD (
  sometext text NOT NULL,
  UNIQUE KEY sometext2 ( sometext)
) 
</code></pre>
<p dir="auto">From <a href="mailto:ribasushi at leporine.io">ribasushi at leporine.io</a> on 2011-06-10 10:23:23<br>
:</p>
<pre class="notranslate"><code class="notranslate">Adding dependency on the sqlt support ticket - without having an sqlt
infrastructure to consume index lengths, there's no point of adding this
to dbic.
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />Reply to this email directly, <a href="https://github.com/dbsrgits/dbix-class-schema-loader/issues/48">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AACJ4AUHQ3KXHYVSGQGUCBDWJKFNRANCNFSM6AAAAAASGAV6ZE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AACJ4AWTR3FKUJYJLV5WVXDWJKFNRA5CNFSM6AAAAAASGAV6ZGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFNWFSE4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span>&lt;dbsrgits/dbix-class-schema-loader/issues/48</span><span>@</span><span>github</span><span>.</span><span>com&gt;</span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/dbsrgits/dbix-class-schema-loader/issues/48",
"url": "https://github.com/dbsrgits/dbix-class-schema-loader/issues/48",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
----==_mimepart_637a935845658_7f91c67018864b7--



More information about the DBIx-Class-Devel mailing list