added generate_partition_sql.js