set_column_nullok
Set whether a column accepts NULL values. Use nullok true to allow missing data or false to make the column required, enforcing data completeness.
Instructions
Set whether a column allows NULL values.
Args: table_name: Name of the table containing the column. column_name: Name of the column to update. nullok: True to allow NULL values, False to require values.
Returns: JSON with status, table_name, column_name, nullok.
Note: Setting nullok=False will fail if the column contains NULL values.
Example: set_column_nullok("Subject", "Name", False) # Make Name required
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nullok | Yes | ||
| table_name | Yes | ||
| column_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |