-
Notifications
You must be signed in to change notification settings - Fork 26
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
deploy doesn't set the version but install and upgrade do #61
Comments
Also the status quo means that you can't get a hold of the |
Why are you calling deploy instead of install? |
@Altreus Could you help me understand this by saying why deploy instead of install? Otherwise I can't help you and will have to close this. |
This is related to this module: https://github.com/Altreus/DBIx-Class-DeploymentHandler-VersionStorage-WithSchema The module allows you to deploy more than one DBIC schema into the same DB. For modular systems. This meant that the first schema must install the DH table, but later schemata must not, or it will crash. This meant that I needed to The underlying issue is essentially one of semantics; the implication of having a public To work around it I have to manually set the database version in the handler script, whereas I'd really expect DH to handle its own versions: https://github.com/OpusVL/OpusVL-FB11/blob/master/bin/fb11-dbh#L209-L234 I still think this is an issue, but I don't know whether it can be fixed backwardly-compatibly. |
It certainly seems a reasonable "ask" that one DB could contain >1 DBIC schema. The |
Interesting historical note: the original reason I wrote DBICDH was to have multiple schemas in one database. It supports it just fine as is and as far as I know that company still has related databases in some places. |
@frioux That IS interesting - did the different schemas have independent versions, or was it one version = all the schemas? |
Different versions; I'm not sure how they could be different schemas otherwise :) |
Yes, we still have a multi-schema database over here. The versions are indeed independent but we keep the two versions matched with shim migrations. |
@wesQ3 Are you using DBICDH? |
@mohawk2 Yes, we use DBICDH. Our split-schema was implemented back in 2014. We use a simple subclass of DeploymentHandler with an overridden RE: this issue, we don't ever use |
This seems wonky because if I deploy a version I should be on that version - but I also understand that deploy is handled directly by the
HandlesDeploy
. But I'm working with more than one schema, so if I useinstall
again it dies.I feel like I want to call this an issue but my only real problem is that it's odd that the user has to know to deploy and then manually add the version, where it would seem sensible that a deployment would be a procedure that adds the version for you.
Seems like one of three things would be nice:
deploy
when weinstall
(a ladeploy
should not run__VERSION
#50) but that might break a bunch of stuffdeploy
so it adds the versioninstall
if version storage is already installed, but just skip__VERSION
The text was updated successfully, but these errors were encountered: