Skip to content

Commit

Permalink
[优化]alter_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
longfengpili committed Mar 1, 2024
1 parent f403a6e commit 159871c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pydbapi/db/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @Author: longfengpili
# @Date: 2023-06-02 15:27:41
# @Last Modified by: longfengpili
# @Last Modified time: 2024-03-01 12:26:21
# @Last Modified time: 2024-03-01 12:31:00
# @github: https://github.com/longfengpili


Expand Down Expand Up @@ -291,8 +291,6 @@ def alter_column(self, tablename: str, colname: str, newname: str = None, newtyp
if alter_col.newname == newcol.newname and alter_col.coltype == newcol.coltype:
return newcol

sys.tablename

alter_columns = old_columns.alter(colname, newcol)

return alter_columns
Expand Down

0 comments on commit 159871c

Please sign in to comment.