Files
base/database/migrations/20260227101245.sql
2026-04-10 18:25:21 +03:30

9 lines
683 B
SQL

-- Modify "accounts" table
ALTER TABLE "public"."accounts" ADD COLUMN "provider" integer NULL;
-- Create index "accounts_provider_idx" to table: "accounts"
CREATE INDEX "accounts_provider_idx" ON "public"."accounts" ("provider");
-- Modify "users" table
ALTER TABLE "public"."users" ADD COLUMN "phone_number" text NULL, ADD COLUMN "email_verified" boolean NOT NULL DEFAULT false, ADD COLUMN "status" integer NOT NULL DEFAULT 0, ADD COLUMN "invitation_code" text NULL;
-- Modify "profiles" table
ALTER TABLE "public"."profiles" ADD CONSTRAINT "profiles_role_id_profile_roles_fk" FOREIGN KEY ("role_id") REFERENCES "public"."profile_roles" ("id") ON UPDATE CASCADE ON DELETE SET NULL;