u
This commit is contained in:
@@ -5,8 +5,8 @@ const queries = translateQueries(source, 'numbers');
|
||||
export const { GET_BY_COMPANY_AND_ID, LIST_BY_COMPANY, UPDATE_BY_COMPANY_AND_ID } = queries;
|
||||
|
||||
export const ENSURE_TYPE = `
|
||||
INSERT INTO numbers (company_id, "type")
|
||||
VALUES (@companyId, @type)
|
||||
INSERT INTO numbers (company_id, "type", prefix)
|
||||
VALUES (@companyId, @type, COALESCE(@prefix, ''))
|
||||
ON CONFLICT (company_id, "type") DO NOTHING
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user