Closed mShan0 closed 5 months ago
Skips the following tests:
'migrations.test_operations.OperationTests.test_invalid_generated_field_changes_on_rename_virtual', 'migrations.test_operations.OperationTests.test_invalid_generated_field_changes_on_rename_stored',
Both tests does this rename, which is not supported https://github.com/django/django/blob/3ac0e43207b4a1b9327ba12612005c285fbff7ee/tests/migrations/test_operations.py#L5993 It doesn't matter for db_presist =True/False. Because when the test trying to compute Pink+Pink here(https://github.com/django/django/blob/3ac0e43207b4a1b9327ba12612005c285fbff7ee/tests/migrations/test_operations.py#L5982), it creates a computed column which is difficult to modify with simple sp_rename or alter column. The doc is here(https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-table-transact-sql?view=sql-server-ver16#alter-column) mentioned modified column can't be a computed column
Skips the following tests:
Both tests does this rename, which is not supported https://github.com/django/django/blob/3ac0e43207b4a1b9327ba12612005c285fbff7ee/tests/migrations/test_operations.py#L5993 It doesn't matter for db_presist =True/False. Because when the test trying to compute Pink+Pink here(https://github.com/django/django/blob/3ac0e43207b4a1b9327ba12612005c285fbff7ee/tests/migrations/test_operations.py#L5982), it creates a computed column which is difficult to modify with simple sp_rename or alter column. The doc is here(https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-table-transact-sql?view=sql-server-ver16#alter-column) mentioned modified column can't be a computed column