Skip to content

Commit

Permalink
db dump
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael committed Feb 11, 2017
1 parent 71bf185 commit c2cd798
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 0 deletions.
159 changes: 159 additions & 0 deletions 1077.sql
@@ -0,0 +1,159 @@

SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;

SET search_path = public, pg_catalog;

SET default_tablespace = '';

SET default_with_oids = false;


CREATE TABLE forum (
posted_on timestamp without time zone NOT NULL,
author text,
body text,
thread_id integer NOT NULL,
parent_id integer NOT NULL,
level integer NOT NULL,
id integer NOT NULL
);


ALTER TABLE forum OWNER TO webuser;


CREATE SEQUENCE forum_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


ALTER TABLE forum_id_seq OWNER TO webuser;


ALTER SEQUENCE forum_id_seq OWNED BY forum.id;


CREATE TABLE news (
headline text NOT NULL,
body text NOT NULL,
author text NOT NULL,
posted timestamp without time zone NOT NULL,
id integer NOT NULL
);


ALTER TABLE news OWNER TO webuser;


CREATE SEQUENCE news_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


ALTER TABLE news_id_seq OWNER TO webuser;


ALTER SEQUENCE news_id_seq OWNED BY news.id;


CREATE TABLE sandbox (
doc_id integer NOT NULL,
paragraphtype integer NOT NULL,
body text,
id integer NOT NULL,
parent_id integer NOT NULL
);


ALTER TABLE sandbox OWNER TO webuser;


CREATE TABLE stylesheet (
owner text NOT NULL,
style text NOT NULL,
name text NOT NULL,
id integer NOT NULL
);


ALTER TABLE stylesheet OWNER TO webuser;


CREATE SEQUENCE stylesheet_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


ALTER TABLE stylesheet_id_seq OWNER TO webuser;


ALTER SEQUENCE stylesheet_id_seq OWNED BY stylesheet.id;


CREATE TABLE "user" (
handle text NOT NULL,
email text,
pass text NOT NULL,
id integer NOT NULL
);


ALTER TABLE "user" OWNER TO webuser;


CREATE SEQUENCE user_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


ALTER TABLE user_id_seq OWNER TO webuser;


ALTER SEQUENCE user_id_seq OWNED BY "user".id;


ALTER TABLE ONLY forum ALTER COLUMN id SET DEFAULT nextval('forum_id_seq'::regclass);


ALTER TABLE ONLY news ALTER COLUMN id SET DEFAULT nextval('news_id_seq'::regclass);


ALTER TABLE ONLY stylesheet ALTER COLUMN id SET DEFAULT nextval('stylesheet_id_seq'::regclass);


ALTER TABLE ONLY "user" ALTER COLUMN id SET DEFAULT nextval('user_id_seq'::regclass);


ALTER TABLE ONLY forum
ADD CONSTRAINT forum_pkey PRIMARY KEY (id);


ALTER TABLE ONLY news
ADD CONSTRAINT news_pkey PRIMARY KEY (id);


ALTER TABLE ONLY stylesheet
ADD CONSTRAINT stylesheet_pkey PRIMARY KEY (id);


ALTER TABLE ONLY "user"
ADD CONSTRAINT user_pkey PRIMARY KEY (id);


8 changes: 8 additions & 0 deletions README.markdown
Expand Up @@ -4,6 +4,14 @@

The role "webuser" is expected by the [reference code](https://github.com/RadicalMilitantLibrary/www/) to exist and have access to a SQL database.

The folder "1077" contains a complete database (without the user accounts and comments). The file "1077.sql" is the rest of the database, you should run that AFTER you restore the folder. After that you should register the admin account and change the ownership of all the documents to that account (UPDATE document SET handle='admin';). Do the same with "subject" and "lists".

The folders "1077.covers", "1077.authors" and "1077.pictures" should be in the www folder (without the 1077).

Contact Jotunbane if you run into problems.



## License Terms

Every contributor accepts that his code will be available to the public under the terms of at least one of the following licenses:
Expand Down

0 comments on commit c2cd798

Please sign in to comment.