Fix #3534: Remove Janitor Trials.
This commit is contained in:
7
db/migrate/20191117080647_drop_janitor_trials.rb
Normal file
7
db/migrate/20191117080647_drop_janitor_trials.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require_relative "20100309211553_create_janitor_trials"
|
||||
|
||||
class DropJanitorTrials < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
revert CreateJanitorTrials
|
||||
end
|
||||
end
|
||||
@@ -2379,40 +2379,6 @@ CREATE SEQUENCE public.ip_bans_id_seq
|
||||
ALTER SEQUENCE public.ip_bans_id_seq OWNED BY public.ip_bans.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: janitor_trials; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE public.janitor_trials (
|
||||
id integer NOT NULL,
|
||||
creator_id integer NOT NULL,
|
||||
user_id integer NOT NULL,
|
||||
original_level integer,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL,
|
||||
status character varying DEFAULT 'active'::character varying NOT NULL
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: janitor_trials_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.janitor_trials_id_seq
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- Name: janitor_trials_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER SEQUENCE public.janitor_trials_id_seq OWNED BY public.janitor_trials.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: mod_actions; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
@@ -4114,13 +4080,6 @@ ALTER TABLE ONLY public.forum_topics ALTER COLUMN id SET DEFAULT nextval('public
|
||||
ALTER TABLE ONLY public.ip_bans ALTER COLUMN id SET DEFAULT nextval('public.ip_bans_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: janitor_trials id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.janitor_trials ALTER COLUMN id SET DEFAULT nextval('public.janitor_trials_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: mod_actions id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
@@ -4480,14 +4439,6 @@ ALTER TABLE ONLY public.ip_bans
|
||||
ADD CONSTRAINT ip_bans_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: janitor_trials janitor_trials_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.janitor_trials
|
||||
ADD CONSTRAINT janitor_trials_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: mod_actions mod_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
@@ -6542,13 +6493,6 @@ CREATE INDEX index_forum_topics_on_updated_at ON public.forum_topics USING btree
|
||||
CREATE INDEX index_ip_bans_on_ip_addr ON public.ip_bans USING btree (ip_addr);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_janitor_trials_on_user_id; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX index_janitor_trials_on_user_id ON public.janitor_trials USING btree (user_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_mod_actions_on_created_at; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
@@ -7484,6 +7428,7 @@ INSERT INTO "schema_migrations" (version) VALUES
|
||||
('20191116001441'),
|
||||
('20191116021759'),
|
||||
('20191116224228'),
|
||||
('20191117074642');
|
||||
('20191117074642'),
|
||||
('20191117080647');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user