- some defines for table_version function