{ "description": "alter column nullable test", "depends": [], "items": [ { "name": "create_schema", "url": "/api/1/query", "role": "admin", "status_code": 200, "method": "POST", "user_id": "1", "request": { "kind": "create_table", "body": { "primary_key": [ "id" ], "__type": "create_table", "name": "a", "columns": [ { "type": "serial", "name": "id" }, { "type": "integer", "name": "b", "nullable": false } ] } } }, { "name": "insert with null", "url": "/api/1/table/a/insert", "role": "admin", "user_id": "1", "status_code": 400, "request": { "objects": [ {} ] }, "response": { "path": "$", "error": "Not-NULL violation. null value in column \"b\" violates not-null constraint" }, "method": "POST" }, { "name": "create_schema", "url": "/api/1/query", "role": "admin", "status_code": 200, "method": "POST", "user_id": "1", "request": { "kind": "alter_column_nullable", "body": { "table": "a", "nullable": true, "column": "b" } } }, { "name": "insert with null (should fail)", "url": "/api/1/table/a/insert", "role": "admin", "user_id": "1", "status_code": 200, "request": { "objects": [ {} ] }, "response": { "affected_rows": 1 }, "method": "POST" } ] }