Try restoring schema.sql
This commit is contained in:
parent
c3b866201b
commit
9ec4a4f9c9
1 changed files with 8 additions and 27 deletions
35
schema.sql
35
schema.sql
|
@ -99,8 +99,7 @@ CREATE TABLE public.submissions (
|
||||||
flair character varying(350),
|
flair character varying(350),
|
||||||
stickied_utc integer,
|
stickied_utc integer,
|
||||||
ghost boolean DEFAULT false NOT NULL,
|
ghost boolean DEFAULT false NOT NULL,
|
||||||
sub character varying(20),
|
sub character varying(20)
|
||||||
filter_state character varying(40) NOT NULL
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -371,31 +370,12 @@ CREATE TABLE public.exiles (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE public.flags (
|
CREATE TABLE public.flags (
|
||||||
id integer NOT NULL,
|
|
||||||
user_id integer NOT NULL,
|
user_id integer NOT NULL,
|
||||||
post_id integer NOT NULL,
|
post_id integer NOT NULL,
|
||||||
reason character varying(350),
|
reason character varying(350),
|
||||||
created_utc integer NOT NULL
|
created_utc integer NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: flags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE SEQUENCE public.flags_id_seq
|
|
||||||
AS integer
|
|
||||||
START WITH 1
|
|
||||||
INCREMENT BY 1
|
|
||||||
NO MINVALUE
|
|
||||||
NO MAXVALUE
|
|
||||||
CACHE 1;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: flags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
ALTER SEQUENCE public.flags_id_seq OWNED BY public.flags.id;
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: follows; Type: TABLE; Schema: public; Owner: -
|
-- Name: follows; Type: TABLE; Schema: public; Owner: -
|
||||||
|
@ -757,12 +737,6 @@ ALTER TABLE ONLY public.usernotes ALTER COLUMN id SET DEFAULT nextval('public.us
|
||||||
ALTER TABLE ONLY public.comments ALTER COLUMN id SET DEFAULT nextval('public.comments_id_seq'::regclass);
|
ALTER TABLE ONLY public.comments ALTER COLUMN id SET DEFAULT nextval('public.comments_id_seq'::regclass);
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: flags id; Type: DEFAULT; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
ALTER TABLE ONLY public.flags ALTER COLUMN id SET DEFAULT nextval('public.flags_id_seq'::regclass);
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: modactions id; Type: DEFAULT; Schema: public; Owner: -
|
-- Name: modactions id; Type: DEFAULT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -895,6 +869,13 @@ ALTER TABLE ONLY public.exiles
|
||||||
ADD CONSTRAINT exiles_pkey PRIMARY KEY (user_id, sub);
|
ADD CONSTRAINT exiles_pkey PRIMARY KEY (user_id, sub);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: flags flags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
ALTER TABLE ONLY public.flags
|
||||||
|
ADD CONSTRAINT flags_pkey PRIMARY KEY (post_id, user_id);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: follows follows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
-- Name: follows follows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue