Bases: sqlalchemy.sql.expression.UpdateBase
This method is used to drop all old rows that have the same values for columns in uc_columns.
This method drops UC from table and works for mysql, postgresql and sqlite. In mysql and postgresql we are able to use “alter table” constuction. In sqlite is only one way to drop UC:
- Create new table with same columns, indexes and constraints (except one that we want to drop).
- Copy data from old table to new.
- Drop old table.
- Rename new table to the name of old table.
Parameters: |
|
---|