SchemaDifference constructor

SchemaDifference(
  1. Schema oldSchema,
  2. Schema newSchema
)

Compares two schemas to produce migrations that conver the difference

Implementation

SchemaDifference(this.oldSchema, this.newSchema)
    : assert(
        oldSchema.version < newSchema.version,
        'Old schema is a newer version than the new schema',
      );