GET /stark/:version/mobile/find_shipments
?pickupStateCode=<string>
&pickupCity=<string>
&deliveryStateCode=<string>
&deliveryCity=<string>
&pickupMiles=<number>
&deliveryMiles=<number>
Do you have to go in and edit your alembic revisions generated with alembic revision --autogenerate
all the
time because it's generating a bunch of schema changes that shouldn't be there? This basically means that your
local database schema is out of date with the production database schema. It's easy to ignore this and just go
in and delete all of the irrelevant schema changes that make it into your revision, but who has the time for that?
This is actually a pretty simple problem to solve, just follow these instructions:
- Checkout the
master
branch, and make sure it's up to date:~$ git checkout master && git pull
- Get your local database up to date with the most recent revision
~$ alembic upgrade head
- Try autogenerating a revision without having made any changes to models
~$ alembic revision --autogenerate
- If the generated revision is empty, congrats! Your local schema is in the right place. Otherwise keep going...
I hereby claim:
- I am azrosen92 on github.
- I am azrosen (https://keybase.io/azrosen) on keybase.
- I have a public key whose fingerprint is E1BA DAAF 3C6C 3DCF 22F5 EFF6 16C0 A481 F5DD CFC3
To claim this, I am signing this object: