mirror of
https://github.com/originalmk/skrytka-app.git
synced 2025-01-18 08:19:17 +00:00
Image paths can now include capital letters
This commit is contained in:
parent
5f06b872ca
commit
38ceaf4b14
@ -16,7 +16,7 @@ exports.up = function(knex) {
|
||||
.notNullable();
|
||||
table.string('image_path')
|
||||
.notNullable()
|
||||
.checkRegex('^([0-9a-z_]+/{0,1})*[0-9a-z_]+\.((png)|(jpg)|(jpeg)|(webp))$');
|
||||
.checkRegex('^([0-9A-Za-z_]+/{0,1})*[0-9A-Za-z_]+\.((png)|(jpg)|(jpeg)|(webp))$');
|
||||
table.integer('osp_unit_id')
|
||||
.unsigned()
|
||||
.notNullable()
|
||||
@ -27,7 +27,7 @@ exports.up = function(knex) {
|
||||
table.increments();
|
||||
table.string('image_path')
|
||||
.notNullable()
|
||||
.checkRegex('^([0-9a-z_]+/{0,1})*[0-9a-z_]+\.((png)|(jpg)|(jpeg)|(webp))$');
|
||||
.checkRegex('^([0-9A-Za-z_]+/{0,1})*[0-9A-Za-z_]+\.((png)|(jpg)|(jpeg)|(webp))$');
|
||||
table.integer('ordinal_number')
|
||||
.notNullable();
|
||||
table.integer('fire_truck_id')
|
||||
|
Loading…
x
Reference in New Issue
Block a user