Skip to content

Commit

Permalink
support SQLite foreign keys (#9803)
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari authored Aug 1, 2024
1 parent 6d7a00b commit 3169972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ You may enable or disable foreign key constraints within your migrations by usin
});

> [!WARNING]
> SQLite disables foreign key constraints by default. When using SQLite, make sure to [enable foreign key support](/docs/{{version}}/database#configuration) in your database configuration before attempting to create them in your migrations. In addition, SQLite only supports foreign keys upon creation of the table and [not when tables are altered](https://www.sqlite.org/omitted.html).
> SQLite disables foreign key constraints by default. When using SQLite, make sure to [enable foreign key support](/docs/{{version}}/database#configuration) in your database configuration before attempting to create them in your migrations.
<a name="events"></a>
## Events
Expand Down

0 comments on commit 3169972

Please sign in to comment.