Closed kivilahtio closed 5 years ago
This is not belongs to your problem. but may you please comment this idea: #95?
I've made a branch (handle-version-obj
) with DBICM's half of the required fixes. However, until https://github.com/frioux/DBIx-Class-DeploymentHandler/pull/63 is merged and released, it can't be merged (with updated dependency requirement) and released.
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
printsGiven my
MusicBase/Schema.pm
has package declarationpackage MusicBase::Schema 1;
instead of usingour $VERSION = 1;
When running command
dbic-migration prepare
I get a warningoperation 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 runningdbic-migration prepare
with the versioning schemeour $VERSION = 1;
I get the expected warningThere 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.