Skip to content

Commit

Permalink
Merge pull request #32 from Kpoke/main
Browse files Browse the repository at this point in the history
ref_id
  • Loading branch information
Kpoke committed May 1, 2023
2 parents 17e7cd5 + 1735e2f commit 285fda2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/migrations/sqls/20220613143350-add-config-up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CREATE TABLE config
id uuid NOT NULL PRIMARY KEY DEFAULT uuid_generate_v4(),
name character varying(255) NOT NULL,
data json NOT NULL,
ref_id integer,
ref_id varchar,
ref_uuid uuid,
created_at timestamp without time zone NOT NULL DEFAULT now(),
updated_at timestamp without time zone NOT NULL DEFAULT now()
Expand Down
2 changes: 1 addition & 1 deletion server/handlers/config/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Joi = require('joi');
const configPostSchema = Joi.object({
name: Joi.string().required(),
data: Joi.object().required(),
ref_id: Joi.number().integer().strict(),
ref_id: Joi.string(),
ref_uuid: Joi.string().uuid(),
});

Expand Down

0 comments on commit 285fda2

Please sign in to comment.