Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/masoniteorm/schema/Blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ def table_comment(self, comment):
self.table.add_comment(comment)
return self

def rename(self, old_column, new_column, data_type, length=None):
def rename(self, old_column, new_column, data_type, length=None, nullable=False, default=None):
"""Rename a column from the old value to a new value.

Arguments:
Expand All @@ -1012,7 +1012,7 @@ def rename(self, old_column, new_column, data_type, length=None):
Returns:
self
"""
self.table.rename_column(old_column, new_column, data_type, length=length)
self.table.rename_column(old_column, new_column, data_type, length=length, nullable=nullable, default=default)
return self

def after(self, old_column):
Expand Down
Loading