File tree Expand file tree Collapse file tree
orm-property/src/transformers
sql-ddl-sync/src/Dialects Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,6 +221,9 @@ function colInfoToProperty(colInfo: ColumnInfoMySQL) {
221221 case "TEXT" :
222222 property . type = "text" ;
223223 break ;
224+ case "LONGTEXT" :
225+ property . type = "longtext" ;
226+ break ;
224227 case "POINT" :
225228 property . type = "point" ;
226229 break ;
@@ -389,4 +392,4 @@ export const filterRawColumns: IPropTransformer<ColumnInfoMySQL>['filterRawColum
389392 }
390393
391394 return col ;
392- }
395+ }
Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ function convertIndexRows(
450450 const indexes : Record < string , FxOrmSqlDDLSync__DbIndex . CollectionDbIndexInfo > = { } ;
451451
452452 for ( let i = 0 ; i < rows . length ; i ++ ) {
453- if ( rows [ i ] . indisprimary === '1' ) {
453+ if ( rows [ i ] . indisprimary === '1' || rows [ i ] . indisprimary === true ) {
454454 continue ;
455455 }
456456
@@ -461,12 +461,12 @@ function convertIndexRows(
461461 collection,
462462 name : idx_name ,
463463 columns : [ ] ,
464- unique : rows [ i ] . indisunique === '1' ,
464+ unique : rows [ i ] . indisunique === '1' || rows [ i ] . indisunique === true ,
465465 } ;
466466 }
467467
468468 indexes [ idx_name ] . columns . push ( rows [ i ] . attname ) ;
469469 }
470470
471471 return indexes ;
472- }
472+ }
You can’t perform that action at this time.
0 commit comments