🎉 Added support for UNIQUE constraints in PostgreSQL, MySQL, SQLite
For PostgreSQL, unique constraints can be defined at the column level for single-column constraints, and in the third parameter for multi-column constraints. In both cases, it will be possible to define a custom name for the constraint. Additionally, PostgreSQL will receive the NULLS NOT DISTINCT option to restrict having more than one NULL value in a table. Reference
Examples that just shows a different unique usage. Please don’t search a real usage for those tables
For MySQL, everything will be the same except for the NULLS NOT DISTINCT option. It appears that MySQL does not support it
Examples that just shows a different unique usage. Please don’t search a real usage for those tables
In SQLite unique constraints are the same as unique indexes. As long as you can specify a name for the unique index in SQLite - we will treat all unique constraints as unique indexes in internal implementation