collab: Remove invite-related columns from users table (#46202)
This PR removes the invite-related columns from the `users` table for the test database schemas. Release Notes: - N/A
This commit is contained in:
1 parent
f3c02086e4
commit
189241bf74
2 files changed
-13
No files matched your search
@@ -4,9 +4,6 @@ CREATE TABLE "users" (
|
||||
"admin" BOOLEAN,
|
||||
"email_address" VARCHAR(255) DEFAULT NULL,
|
||||
"name" TEXT,
|
||||
"invite_code" VARCHAR(64),
|
||||
"invite_count" INTEGER NOT NULL DEFAULT 0,
|
||||
"inviter_id" INTEGER REFERENCES users (id),
|
||||
"connected_once" BOOLEAN NOT NULL DEFAULT false,
|
||||
"created_at" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"metrics_id" TEXT,
|
||||
@@ -18,8 +15,6 @@ CREATE TABLE "users" (
|
||||
|
||||
CREATE UNIQUE INDEX "index_users_github_login" ON "users" ("github_login");
|
||||
|
||||
CREATE UNIQUE INDEX "index_invite_code_users" ON "users" ("invite_code");
|
||||
|
||||
CREATE INDEX "index_users_on_email_address" ON "users" ("email_address");
|
||||
|
||||
CREATE UNIQUE INDEX "index_users_on_github_user_id" ON "users" ("github_user_id");
|
||||
|
||||
@@ -449,9 +449,6 @@ CREATE TABLE public.users (
|
||||
github_login character varying,
|
||||
admin boolean NOT NULL,
|
||||
email_address character varying(255) DEFAULT NULL::character varying,
|
||||
invite_code character varying(64),
|
||||
invite_count integer DEFAULT 0 NOT NULL,
|
||||
inviter_id integer,
|
||||
connected_once boolean DEFAULT false NOT NULL,
|
||||
created_at timestamp without time zone DEFAULT now() NOT NULL,
|
||||
github_user_id integer NOT NULL,
|
||||
@@ -700,8 +697,6 @@ CREATE UNIQUE INDEX index_followers_on_project_id_and_leader_connection_server_i
|
||||
|
||||
CREATE INDEX index_followers_on_room_id ON public.followers USING btree (room_id);
|
||||
|
||||
CREATE UNIQUE INDEX index_invite_code_users ON public.users USING btree (invite_code);
|
||||
|
||||
CREATE INDEX index_language_servers_on_project_id ON public.language_servers USING btree (project_id);
|
||||
|
||||
CREATE UNIQUE INDEX index_notification_kinds_on_name ON public.notification_kinds USING btree (name);
|
||||
@@ -902,9 +897,6 @@ ALTER TABLE ONLY public.user_features
|
||||
ALTER TABLE ONLY public.user_features
|
||||
ADD CONSTRAINT user_features_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE ONLY public.users
|
||||
ADD CONSTRAINT users_inviter_id_fkey FOREIGN KEY (inviter_id) REFERENCES public.users(id) ON DELETE SET NULL;
|
||||
|
||||
ALTER TABLE ONLY public.worktree_diagnostic_summaries
|
||||
ADD CONSTRAINT worktree_diagnostic_summaries_project_id_worktree_id_fkey FOREIGN KEY (project_id, worktree_id) REFERENCES public.worktrees(project_id, id) ON DELETE CASCADE;
|
||||
|
||||
|
||||
Reference in new issue
Block a user