No subject


Sun Nov 20 20:48:46 GMT 2022


```
An update on this ticket:

the warning is now gone.

The proper fix for this is to detect views separately from tables and generate proper 
DBIx::Class::ResultSource::View classes with the view SQL so that they can be 
redeployed.

Until that is done, leaving this ticket open.
```


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

Message ID: <dbsrgits/dbix-class-schema-loader/issues/44 at github.com>
----==_mimepart_637a9323596ec_67c9c67018020cf
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=25944" rel="nofollow">rt.cpan.org#25944</a> (status was 'open')</p>
<p dir="auto">Requestors:</p>
<ul dir="auto">
<li><a href="mailto:radek at pld-linux.org">radek at pld-linux.org</a></li>
</ul>
<p dir="auto">From <a href="mailto:radek at pld-linux.org">radek at pld-linux.org</a> on 2007-03-30 09:34:24<br>
:</p>
<pre class="notranslate"><code class="notranslate">I'm loading a schema which contains views.

DBIx::Class::Schema::Loader::Base-&gt;_load_classess() unconditionally
whines about the lack of a primary key in tables it found.  For views,
this is pointless, as (at least in Postgres) it's not possible to mark
a column as one.
</code></pre>
<p dir="auto">From <a href="mailto:aimass at cpan.org">aimass at cpan.org</a> on 2009-04-12 22:47:21<br>
:</p>
<pre class="notranslate"><code class="notranslate">I second this [old] request. 

It's an annoying -feature- ... perhaps a quick fix would be to 1) ignore
pk definition altogether for views, or 2) look for first column of view
to be named id and if so, add it is pk for ResultSource definition.

Does this affect anybody else? Are there any workarounds, suggestions of
a fix? I would gladly write up a patch if any comments received from the
comments above...
</code></pre>
<p dir="auto">From <a href="mailto:rkitover at cpan.org">rkitover at cpan.org</a> on 2012-09-09 16:28:56<br>
:</p>
<pre class="notranslate"><code class="notranslate">An update on this ticket:

the warning is now gone.

The proper fix for this is to detect views separately from tables and generate proper 
DBIx::Class::ResultSource::View classes with the view SQL so that they can be 
redeployed.

Until that is done, leaving this ticket open.
</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/44">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AACJ4ATRRABPHB4UFZVUW3LWJKFKHANCNFSM6AAAAAASGAVTZE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AACJ4ARL7QDVBHDHYCPBEZLWJKFKHA5CNFSM6AAAAAASGAVTZGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFNWFRGM.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/44</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/44",
"url": "https://github.com/dbsrgits/dbix-class-schema-loader/issues/44",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
----==_mimepart_637a9323596ec_67c9c67018020cf--



More information about the DBIx-Class-Devel mailing list