You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm loading a schema which contains views.
DBIx::Class::Schema::Loader::Base->_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.
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...
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.
The text was updated successfully, but these errors were encountered:
Migrated from rt.cpan.org#25944 (status was 'open')
Requestors:
From [email protected] on 2007-03-30 09:34:24
:
From [email protected] on 2009-04-12 22:47:21
:
From [email protected] on 2012-09-09 16:28:56
:
The text was updated successfully, but these errors were encountered: