-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dbic-migration prepare - warning message when Schema version from package declaration #113
Comments
Please read this. If I wrong, please provide further comments. |
This is not belongs to your problem. but may you please comment this idea: #95? |
I've made a branch ( |
Now released as 0.065. DBICDH released as 0.002223. |
Hi!
To reproduce the warning:
Initially
Having no database installed yet, running
dbic-migration status
prints
Given my
MusicBase/Schema.pm
has package declaration
package MusicBase::Schema 1;
instead of using
our $VERSION = 1;
When running command
dbic-migration prepare
I get a warning
operation not supported with version object at /usr/local/share/perl/5.26.1/DBIx/Class/Migration.pm line 274.
But it looks like the files generated in the share-dir are the same when using package or $VERSION versioning scheme.
When running
dbic-migration prepare
with the versioning scheme
our $VERSION = 1;
I get the expected warning
There is no current database deployed, so I can't prepare upgrades or downgrades
What I was expecting:
To not see a warning, but still receive correct functionality.
OR
The warning to be escalated to an exception and the program to stop doing anything useful looking.
The text was updated successfully, but these errors were encountered: