From 71cf79042841efc56c2e0639942c3678d6bfcd35 Mon Sep 17 00:00:00 2001 From: Kyrela <44508673+Kyrela@users.noreply.github.com> Date: Wed, 13 Aug 2025 19:20:11 +0200 Subject: [PATCH] Update Blueprint.py --- src/masoniteorm/schema/Blueprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/masoniteorm/schema/Blueprint.py b/src/masoniteorm/schema/Blueprint.py index b2865c54..ce1ce6e0 100644 --- a/src/masoniteorm/schema/Blueprint.py +++ b/src/masoniteorm/schema/Blueprint.py @@ -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: @@ -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):