File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ func TestFormatNameWithStringLongerThan63Characters(t *testing.T) {
193193 ns := NamingStrategy {IdentifierMaxLength : 63 }
194194
195195 formattedName := ns .formatName ("prefix" , "table" , "thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString" )
196- if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVer180f2c67 " {
196+ if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVerb463f8ff " {
197197 t .Errorf ("invalid formatted name generated, got %v" , formattedName )
198198 }
199199}
@@ -202,7 +202,7 @@ func TestFormatNameWithStringLongerThan64Characters(t *testing.T) {
202202 ns := NamingStrategy {IdentifierMaxLength : 64 }
203203
204204 formattedName := ns .formatName ("prefix" , "table" , "thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString" )
205- if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVery180f2c67 " {
205+ if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryb463f8ff " {
206206 t .Errorf ("invalid formatted name generated, got %v" , formattedName )
207207 }
208208}
Original file line number Diff line number Diff line change @@ -985,7 +985,7 @@ func TestParseConstraintNameWithSchemaQualifiedLongTableName(t *testing.T) {
985985 t .Fatalf ("Failed to parse schema" )
986986 }
987987
988- expectedConstraintName := "fk_my_schema_a_very_very_very_very_very_very_very_very_l4db13eec "
988+ expectedConstraintName := "fk_my_schema_a_very_very_very_very_very_very_very_very_l46bfd72a "
989989 constraint := s .Relationships .Relations ["Author" ].ParseConstraint ()
990990
991991 if constraint .Name != expectedConstraintName {
You can’t perform that action at this time.
0 commit comments