style(db): rename constraint names to follow sql style guide (#2973)
* programatically rename unique and foreign key constraints to enforce 'tablename_uq' and 'reftable_fkey' patterns * manually rename unique constraints for names over 63 characters * update changed constraint names in db update testcases
This commit is contained in:
1 parent
b974063a52
commit
b806297afe
7 files changed
+116
-3
No files matched your search
@@ -66,6 +66,9 @@ For `create table` statements:
|
||||
- The naming pattern for unique constraints is `tablename_col1_colx_uq` where
|
||||
`tablename` is the name of the table and `col1_colx` is the name of each
|
||||
column in the unique constraint.
|
||||
- The naming pattern for unique constraint names which would be over 63 characters
|
||||
in length is to prioritize keeping the full 'tablename_uq' pattern intact and
|
||||
abbreviate the names of the columns.
|
||||
|
||||
### Functions
|
||||
|
||||
|
||||
Reference in new issue
Block a user