Unable to update schema if run locally

Bug #1548110 reported by Zisu Andrei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mail
Fix Released
Medium
Zisu Andrei

Bug Description

This is related to #15456765, but I filed a new one since that one was marked "Fix committed".

If the sqlite database does not exist, it tries to create it. But if you're running locally, it tries to look for the migration files in the wrong location. The attached patch fixes it.

Related branches

Revision history for this message
Zisu Andrei (matzipan) wrote :
Changed in pantheon-mail:
assignee: nobody → Zisu Andrei (matzipan)
status: New → In Progress
Revision history for this message
Zisu Andrei (matzipan) wrote :

Whoops. Attached the wrong fix file.

Revision history for this message
Danielle Foré (danrabbit) wrote :

Hey Zisu, thanks for your patch! Any way you can propose it as a branch merge request instead? Unfortunately the merge bot doesn't recognize patches.

Revision history for this message
Zisu Andrei (matzipan) wrote : Re: [Bug 1548110] Re: Unable to update schema if run locally

I need to figure out how to do that first.

On Sun, 21 Feb 2016, 20:40 Daniel Fore <email address hidden> wrote:

> Hey Zisu, thanks for your patch! Any way you can propose it as a branch
> merge request instead? Unfortunately the merge bot doesn't recognize
> patches.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1548110
>
> Title:
> Unable to update schema if run locally
>
> Status in Mail:
> In Progress
>
> Bug description:
> This is related to #15456765, but I filed a new one since that one was
> marked "Fix committed".
>
> If the sqlite database does not exist, it tries to create it. But if
> you're running locally, it tries to look for the migration files in
> the wrong location. The attached patch fixes it.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pantheon-mail/+bug/1548110/+subscriptions
>

Revision history for this message
Zisu Andrei (matzipan) wrote :

Sure. I need to figure out how to do it first :P

Revision history for this message
Mike Seese (seesemichaelj) wrote :

Zisu, it's quite simple.

If you're not familiar with Bazaar, head over to https://elementary.io/docs/code/getting-started#bazaar

But the jist is (after setting up Bazaar with your account/ssh keys):

cd project_folder (i.e. ~/elementary is where i keep elementary projects)
bzr branch lp:pantheon-mail branch-name (i.e. `bzr branch lp:pantheon-mail update-schema-locally`)
cd branch-name
# make your changes
bzr commit -m "Fixed ability to update schema if ran locally" # change your commit message to something that is meaningful
# it doesnt hurt, and sometimes helps, to make multiple commits to show your progress rather than one big commit but either works.
bzr push lp:~matzipan/pantheon-mail/branch-name

Then you navigate to https://code.launchpad.net/~matzipan/pantheon-mail/branch-name in your browser and find the link for "Propose for merging"

Hope this helps

Changed in pantheon-mail:
status: In Progress → Fix Committed
milestone: none → loki-alpha1
Cody Garver (codygarver)
Changed in pantheon-mail:
importance: Undecided → Medium
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.