Re: Alembic: Change the order of the columns for a table

2020-03-04 Thread Mike Bayer
On Wed, Mar 4, 2020, at 10:27 AM, David Siller wrote: > Hello Mike, > > and thank you very much for the solution. It is working flawlessly for > ordering the columns. > > For others finding this thread: Mike created an entry in the Alembic cookbook >

Re: Alembic: Change the order of the columns for a table

2020-03-04 Thread David Siller
An addition: It keeps the correct name if the UniqueConstraint involves multiple columns. The duplication only happens if the constraint checks the uniqueness on a single column. Also the CreateTableOp does not seem to duplicate the UniqueConstraints, so it must happen later on. Best regards

Re: Alembic: Change the order of the columns for a table

2020-03-04 Thread David Siller
Hello Mike, and thank you very much for the solution. It is working flawlessly for ordering the columns. For others finding this thread: Mike created an entry in the Alembic cookbook