From b0cac9803a75f1e0e0349ee83451668c0080b6b8 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 11 Nov 2024 14:54:55 -0800 Subject: [PATCH] Update CHANGELOG --- CHANGELOG | 2 ++ doc/reflection.rdoc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index bc28e68ef..bc16d6a6d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ === master +* Make Database#schema hashes include :comment field on MySQL and PostgreSQL (Bahanix) (#2248, #2249) + * Add inspect_pk plugin to make it easier to retrieve model instance based on inspect output (jeremyevans) * Treat all Trilogy errors with error code 1205 as Sequel::DatabaseLockTimeout in the trilogy adapter (jeremyevans) diff --git a/doc/reflection.rdoc b/doc/reflection.rdoc index 00181e2f8..ede52f56d 100644 --- a/doc/reflection.rdoc +++ b/doc/reflection.rdoc @@ -59,7 +59,7 @@ The hash may also contain entries for: Database#schema takes a table symbol and returns column information in an array with each element being an array with two elements. The first elements of the subarray is a column symbol, and the second element is a hash of information about that column. The hash should include the following keys: :allow_null :: Whether NULL/nil is an allowed value for this column. Used by the Sequel::Model typecasting code. -:comment:: The comment of the column (MySQL and PostreSQL). +:comment:: The comment on the column (MySQL and PostreSQL only). :db_type :: The type of column the database provided, as a string. Used by the schema_dumper plugin for a more specific type translation. :default :: The default value of the column, as either a string or nil. Uses a database specific format. Used by the schema_dumper plugin for converting to a ruby value. :primary_key :: Whether this column is one of the primary key columns for the table. Used by the Sequel::Model code to determine primary key columns.