diff --git a/History.md b/History.md index f0523815..8d9165ec 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,7 @@ +# 0.9.7 + +* Adding `patio.parseInt8` and `patio.defaultPrimaryKeyType` options. + # 0.9.6 * Lowering comb-proxy dependency. diff --git a/docs/History.html b/docs/History.html index 768ab5da..1abf48f0 100644 --- a/docs/History.html +++ b/docs/History.html @@ -362,6 +362,14 @@ +

0.9.7

+ +

0.9.6

+

0.9.5

most database implementations in patio use toLowerCase

+parseInt8Boolean

Sets whether bigint types should be parsed to a number. An error will be thrown if set and the number is +set and the number is greater than 2^53 or less than -2^53.

quoteIdentifiersBoolean

Set whether to quote identifiers for all databases by default. By default, patio quotes identifiers in all SQL strings.

underscorefunction

Sets the whether or not to underscore identifiers coming from the database and to camelize diff --git a/docs/patio_AlterTableGenerator.html b/docs/patio_AlterTableGenerator.html index 2b2fefa7..49653d43 100644 --- a/docs/patio_AlterTableGenerator.html +++ b/docs/patio_AlterTableGenerator.html @@ -971,7 +971,7 @@

if (isArray(name)) { return this.__addCompositeForeignKey(name, table, opts); } else { - return this.addColumn(name, "integer", merge({table:table}, opts)); + return this.addColumn(name, this.db.defaultPrimaryKeyType, merge({table:table}, opts)); } } diff --git a/docs/patio_Database.html b/docs/patio_Database.html index 5bd80601..92037024 100644 --- a/docs/patio_Database.html +++ b/docs/patio_Database.html @@ -1787,6 +1787,12 @@ }

The default options for the connection pool.

datasetpatio.Dataset

returns an empty adapter specific patio.Dataset that can be used to query the patio.Database with.

+defaultPrimaryKeyTypeString +"integer" +

Default type for primary/foreign keys when a type is not specified.

+defaultPrimaryKeyTypeDefaultString +"integer" +

Default type for primary/foreign keys when a type is not specified.

defaultSchemaDefault{String|patio.sql.Identifier}function (){ return null; diff --git a/package.json b/package.json index 5d103a56..16373f5a 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "patio", "description": "Patio query engine and ORM", - "version": "0.9.6", + "version": "0.9.7", "keywords": [ "ORM", "object relation mapper",