Bonfire core migrations apply automatically?
  • sourcejedisourcejedi
    Posts: 10Member

    Hi

    I've written a migration to replace Activities.{User,Module,Date}.View with Activities.All.View. Each of them let you view all activities, so there's no real distinction, and it clutters up the permissions list.

    I'm trying to test my down() method. But if I ask Bonfire to downgrade to the previous schema version... I get a success message, but the actual schema version is unchanged. I think Bonfire is automatically upgrading the schema when the page loads. Is there some way to disable the automatic upgrade, so I can check the effect of my down() method on the database?

  • svizionsvizion
    Posts: 399Member, Moderator

    I noticed there is a bug in some Migrations there is a error in your Migration then it claims it works when it does not. Otherwise just turn of automigration in your config file, config/application.php

    Shawn Crigger
    S-Vizion Web Developments
    @svizion
    Remember the golden rule of programming before you ask a question
    1) What did you expect 2) What did you try 3) What did you get 4) Did you read the docs?
  • sourcejedisourcejedi
    Posts: 10Member

    Thanks, that helped! The installer gave me an error message, and knowing that I was able to find the error.

  • svizionsvizion
    Posts: 399Member, Moderator

    I'm working on a more fail proof error reporting method for the migrations atm actually, the first time that happened to me it thru me for a loop for a hour or so until I finally just ran the query in a controller to see what was going on.

    Shawn Crigger
    S-Vizion Web Developments
    @svizion
    Remember the golden rule of programming before you ask a question
    1) What did you expect 2) What did you try 3) What did you get 4) Did you read the docs?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Poll

No poll attached to this discussion.

In this Discussion