@travetto/model-sql 3.1.0-rc.4 → 3.1.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-sql",
3
- "version": "3.1.0-rc.4",
3
+ "version": "3.1.0-rc.6",
4
4
  "description": "SQL backing for the travetto model module, with real-time modeling support for SQL schemas.",
5
5
  "keywords": [
6
6
  "sql",
@@ -27,14 +27,14 @@
27
27
  "directory": "module/model-sql"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/config": "^3.1.0-rc.4",
31
- "@travetto/context": "^3.1.0-rc.1",
32
- "@travetto/model": "^3.1.0-rc.4",
33
- "@travetto/model-query": "^3.1.0-rc.4"
30
+ "@travetto/config": "^3.1.0-rc.6",
31
+ "@travetto/context": "^3.1.0-rc.3",
32
+ "@travetto/model": "^3.1.0-rc.6",
33
+ "@travetto/model-query": "^3.1.0-rc.6"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/command": "^3.1.0-rc.3",
37
- "@travetto/test": "^3.1.0-rc.2"
36
+ "@travetto/command": "^3.1.0-rc.5",
37
+ "@travetto/test": "^3.1.0-rc.4"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/command": {
@@ -242,7 +242,7 @@ export abstract class SQLDialect implements DialectState {
242
242
  } else if (conf.type === Boolean) {
243
243
  type = this.COLUMN_TYPES.BOOLEAN;
244
244
  } else if (conf.type === String) {
245
- if (conf.specifier && conf.specifier.startsWith('text')) {
245
+ if (conf.specifiers?.includes('text')) {
246
246
  type = this.COLUMN_TYPES.TEXT;
247
247
  } else {
248
248
  type = this.PARAMETERIZED_COLUMN_TYPES.VARCHAR(conf.maxlength ? conf.maxlength.n : this.DEFAULT_STRING_LEN);