message: Removes DeleteOpenshift stored proc reference
diff: import * as R from 'ramda';
  import { ResolverFn } from '../';
  -import { query, isPatchEmpty } from '../../util/db';
  +import { query, isPatchEmpty, knex } from '../../util/db';
  import { Helpers as projectHelpers } from '../project/helpers';
  +import sql from '../user/sql';
  import { Sql } from './sql';
  const attrFilter = async (hasPermission, entity) => {
  @@ -33,7 +34,16 @@ export const deleteOpenshift: ResolverFn = async (
  ) => {
  await hasPermission('openshift', 'delete');
  - await query(sqlClientPool, 'CALL deleteOpenshift(:name)', input);
  + let res = await query(sqlClientPool, knex('project')
  + .join('openshift', 'project.openshift', '=', 'openshift.id')
  + .where('openshift.name', input.name).count('project.id', {as: 'numactive'}).toString());
  +
  + const numberActiveOs = R.path(['0', 'numactive'], res);
  + if(numberActiveOs > 0) {
  + throw new Error(`Openshift "${input.name} still in use, can not delete`);
  + }
  +
  + res = await query(sqlClientPool, knex('openshift').where('name', input.name).delete().toString());
  // TODO: maybe check rows for changed result
  return 'success';
  