We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef63351 commit f35322dCopy full SHA for f35322d
src/migrations/generate.ts
@@ -896,6 +896,23 @@ export class MigrationGenerator {
896
} else if (col.data_type !== 'numeric') {
897
return true;
898
}
899
+ if (field.precision && col.numeric_precision && field.precision !== col.numeric_precision) {
900
+ return true;
901
+ }
902
+ if (field.scale && col.numeric_scale && field.scale !== col.numeric_scale) {
903
904
905
906
+ if (field.type === 'String') {
907
+ if (field.large && col.data_type !== 'text') {
908
909
910
+ if (field.stringType === 'richText' && col.data_type !== 'text') {
911
912
913
+ if (!field.large && field.maxLength && col.max_length && field.maxLength !== col.max_length) {
914
915
916
917
918
0 commit comments