lint: convert snake to camel case
This commit is contained in:
@@ -114,8 +114,8 @@ var Checks = []Check{
|
||||
}
|
||||
|
||||
// Check if target column is a primary key
|
||||
for _, target_col := range s.Tables[column.ForeignKeyTargetTable].Columns {
|
||||
if target_col.Name == column.ForeignKeyTargetColumn && target_col.IsPrimaryKey {
|
||||
for _, targetCol := range s.Tables[column.ForeignKeyTargetTable].Columns {
|
||||
if targetCol.Name == column.ForeignKeyTargetColumn && targetCol.IsPrimaryKey {
|
||||
continue fk_loop
|
||||
}
|
||||
}
|
||||
@@ -125,8 +125,8 @@ var Checks = []Check{
|
||||
if idx.TableName != column.ForeignKeyTargetTable {
|
||||
continue
|
||||
}
|
||||
for _, idx_col_name := range idx.Columns {
|
||||
if column.ForeignKeyTargetColumn == idx_col_name {
|
||||
for _, idxColName := range idx.Columns {
|
||||
if column.ForeignKeyTargetColumn == idxColName {
|
||||
continue fk_loop
|
||||
}
|
||||
break // Only look at 1st column
|
||||
|
||||
Reference in New Issue
Block a user