lib/knj/knjdb/revision.rb in knjrbfw-0.0.41 vs lib/knj/knjdb/revision.rb in knjrbfw-0.0.42

- old
+ new

@@ -98,9 +98,14 @@ if col_data.has_key?("primarykey") and col_obj.primarykey? != col_data["primarykey"] print "Primary-key mismatch for #{col_str}: #{col_data["primarykey"]}, #{col_obj.primarykey?}\n" if args["debug"] dochange = true end + if col_data.has_key?("autoincr") and col_obj.autoincr? != col_data["autoincr"] + print "Auto-increment mismatch for #{col_str}: #{col_data["autoincr"]}, #{col_obj.autoincr?}\n" if args["debug"] + dochange = true + end + if col_data.has_key?("maxlength") and col_obj.maxlength.to_s != col_data["maxlength"].to_s print "Maxlength mismatch on #{col_str}: #{col_data["maxlength"]}, #{col_obj.maxlength}\n" if args["debug"] dochange = true end \ No newline at end of file