We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now it's not possible to create a table referencing itself, like this:
{ "$schema": "https://raw.githubusercontent.com/xataio/pgroll/main/schema.json", "name": "branches", "operations": [ { "create_table": { "name": "users", "columns": [ { "name": "id", "type": "text", "pk": true }, { "name": "name", "type": "text" }, { "name": "parent_id", "type": "text", "nullable": true, "references": { "name": "parent_id", "table": "users", "column": "id", "on_delete": "SET NULL" } } ] } } ] }
This is still doable by adding a new migration to include the parent_id column, but ideally this can be done in one go
parent_id
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Right now it's not possible to create a table referencing itself, like this:
This is still doable by adding a new migration to include the
parent_id
column, but ideally this can be done in one goThe text was updated successfully, but these errors were encountered: