mirror of
https://github.com/originalmk/skrytka-app.git
synced 2025-01-18 16:29:17 +00:00
Repaired fire_truck and truck_side img_path constraints
This commit is contained in:
parent
7fb77856d6
commit
9dea35edc2
@ -16,7 +16,7 @@ exports.up = function(knex) {
|
|||||||
.notNullable();
|
.notNullable();
|
||||||
table.string('image_path')
|
table.string('image_path')
|
||||||
.notNullable()
|
.notNullable()
|
||||||
.checkRegex('^([0-9a-z_]+/?)*[0-9a-z_]+\.((png)|(jpg)|(jpeg)|(webp))$');
|
.checkRegex('^([0-9a-z_]+/{0,1})*[0-9a-z_]+\.((png)|(jpg)|(jpeg)|(webp))$');
|
||||||
table.integer('osp_unit_id')
|
table.integer('osp_unit_id')
|
||||||
.unsigned()
|
.unsigned()
|
||||||
.notNullable()
|
.notNullable()
|
||||||
@ -27,7 +27,7 @@ exports.up = function(knex) {
|
|||||||
table.increments();
|
table.increments();
|
||||||
table.string('image_path')
|
table.string('image_path')
|
||||||
.notNullable()
|
.notNullable()
|
||||||
.checkRegex('^([0-9a-z_]+/?)*[0-9a-z_]+\.((png)|(jpg)|(jpeg)|(webp))$');
|
.checkRegex('^([0-9a-z_]+/{0,1})*[0-9a-z_]+\.((png)|(jpg)|(jpeg)|(webp))$');
|
||||||
table.integer('ordinal_number')
|
table.integer('ordinal_number')
|
||||||
.notNullable();
|
.notNullable();
|
||||||
table.integer('fire_truck_id')
|
table.integer('fire_truck_id')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user