]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix docs typo
authorFederico Caselli <cfederico87@gmail.com>
Mon, 24 Feb 2025 11:27:50 +0000 (12:27 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 24 Feb 2025 11:27:50 +0000 (12:27 +0100)
Fixes: #12371
Change-Id: I86e6e34d407223d66b2cbcb21ec10dc292676449

lib/sqlalchemy/sql/schema.py

index b86e5b8b09ffb4a08853e6aad96889399603f4a1..a9c21eabc41fcc74d2d20685dd7f186cf6152b86 100644 (file)
@@ -2843,7 +2843,7 @@ class ForeignKey(DialectKWArgs, SchemaItem):
 
         :param ondelete: Optional string. If set, emit ON DELETE <value> when
             issuing DDL for this constraint. Typical values include CASCADE,
-            DELETE and RESTRICT.
+            SET NULL and RESTRICT.
 
         :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT
             DEFERRABLE when issuing DDL for this constraint.
@@ -4696,7 +4696,7 @@ class ForeignKeyConstraint(ColumnCollectionConstraint):
 
         :param ondelete: Optional string. If set, emit ON DELETE <value> when
           issuing DDL for this constraint. Typical values include CASCADE,
-          DELETE and RESTRICT.
+          SET NULL and RESTRICT.
 
         :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT
           DEFERRABLE when issuing DDL for this constraint.