Skip to content

Commit

Permalink
Merge pull request #23 from kleydon/dev-1
Browse files Browse the repository at this point in the history
Security update
  • Loading branch information
kleydon authored Nov 26, 2020
2 parents 68833c1 + 42b405e commit bd63369
Show file tree
Hide file tree
Showing 3 changed files with 1,043 additions and 1,072 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ If you are using something other then `prisma` then you will need to manage the
#### MySQL

If you are using MySQL as your datasource provider you may also need change the type of your data column to be TEXT:

```sql
USE your-database
ALTER TABLE Session MODIFY data TEXT;
```

Prisma `String` properties are mapped to `VARCHAR(191)` by default. Session data can be larger than 191 characters so updating the type to `TEXT` prevents errors when creating and updating sessions. If you know your session data will not exceed 191 characters you can skip this step or if you know your maximum size you can use `VARCHAR(YOUR_MAX_SIZE)`

If you are using a version of Prisma that supports [migrating with native types](https://github.com/prisma/prisma/issues/4330) you can use a type annotation in your `schema.prisma` file instead of manually modifying your data column.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"jest": "^26.4.2",
"prettier": "^2.1.1",
"pretty-quick": "^3.0.2",
"semantic-release": "^17.1.1",
"semantic-release": "^17.3.0",
"supertest": "^4.0.2",
"ts-jest": "^26.3.0",
"tslint": "^6.1.3",
Expand Down
Loading

0 comments on commit bd63369

Please sign in to comment.