Ctrl K
ComunidadGuías…

drizzle/0005_person_scoped_clients.sql

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
DROP INDEX IF EXISTS "client_account_company_unique";--> statement-breakpoint
ALTER TABLE "client_account" RENAME COLUMN "twenty_company_id" TO "twenty_person_id";--> statement-breakpoint
CREATE UNIQUE INDEX "client_account_person_unique" ON "client_account" USING btree ("twenty_person_id");--> statement-breakpoint
UPDATE "portal_view"
SET "scope_mode" = 'all',
    "scope_field_name" = '',
    "updated_at" = now()
WHERE "scope_mode" = 'company';