Blow away the alembic versions table from the database and the folder with the versions file and patches files on disk and you should be good to go.

HTH
AM

On 12/30/2014 06:01 PM, dewey wrote:
Ok, I went ahead and just copied all the data into the clean new schema.
So now my actual DB is in sync with my SA declarative models.

How do I get Alembic to start tracking fresh from this point (ie delete any old revisions or old history)??

Thanks,
D


On Tuesday, December 30, 2014 7:49:03 PM UTC-6, dewey wrote:

    I first installed Alembic and while practicing, I created a first
    revision.

    I made some changes in my Declarative models in code
    And then I used SA to blow away my DB and recreate the whole
    schema new again

    And then I made a few more changes to my models  (oops)  AND
    loaded a bunch of data

    Now, I can't figure out how to get Alembic back into parity....

    Can I point it at the DB to get it's "base" and then point it at
    my models to create a brand-new, first revision??

    I'm kind of stumped.....

    As a worst case, I've used SA to create a new parallel schema (in
    sync with current models) and I can select all the old data into
    it but I still need to know how to tell Alembic to forget (delete)
    all prior revisions and start over.

    Thanks for any tips!!
    Dewey

--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to