@accounter/server
Version:
Accounter GraphQL server
15 lines (14 loc) • 811 B
TypeScript
/**
* Drop the self-owned bootstrap policy added in 16-00-00 (insufficient due to FK ordering)
* and replace with a policy that allows INSERT when id = current_business_id regardless of owner_id.
* This lets bootstrapNewClient insert financial_entities with owner_id=NULL first (to satisfy FK
* ordering), create the businesses row, then update owner_id to self.
*/
declare const _default: {
name: string;
run: ({ sql }: {
sql: (template: TemplateStringsArray, ...values: import("@slonik/sql-tag").ValueExpression[]) => import("slonik").QuerySqlToken;
connection: import("slonik").DatabaseTransactionConnection | import("slonik").DatabasePool;
}) => import("slonik").QuerySqlToken<import("@standard-schema/spec").StandardSchemaV1<unknown, unknown>>;
};
export default _default;