Ghost/core/server/data/schema
Aileen Nowak a35c0c29e0 Added more database soft limits (#9225)
refs #8143

Sets soft limits for certain db fields:

- `posts`:
	- `title`: 255 chars (current hard limit: 2,000 chars)
	- `meta_title`: 300 chars (current hard limit: 2,000 chars)
	- `meta_description`: 500 chars (current hard limit: 2,000 chars)
- `users`:
	- `bio`: 200 chars (current hard limit: 65,535 chars)
	- `location`: 150 chars (current hard limit: 65,535 chars)
	- `meta_description`: 500 chars (current hard limit: 2,000 chars)
	- `meta_title`: 300 chars (current hard limit: 2,000 chars)
- `tags`:
	- `description`: 500 chars (current hard limit: 65,535 chars)
	- `meta_title`: 300 chars (current hard limit: 2,000 chars)
	- `meta_description`: 500 chars (current hard limit: 2,000 chars)

- same error message for isLength validator as for hard limits (more improvements are comming with https://github.com/TryGhost/Ghost/issues/6050)
- added more tests for importer
- added dynamic translation key handling for validators errors (isLength is only supported atm)
2017-11-09 15:22:20 +01:00
..
clients Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
fixtures Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
checks.js 🐛 Fixed author helper not returning the correct url (#9102) 2017-10-05 13:50:55 +02:00
commands.js 🐛 Fix ghost update with migrations (#8810) 2017-08-01 17:27:13 +04:00
default-settings.json Private RSS feed (#9088) 2017-10-05 11:07:32 +01:00
index.js 🔥 remove database version (#7894) 2017-01-26 12:12:00 +00:00
schema.js Added more database soft limits (#9225) 2017-11-09 15:22:20 +01:00