Commit c84d86dca5ebf48f5bed11dd96bcaea4d0c79fa6
1 parent
22349488
Exists in
master
Adição de artefatos
Showing
6 changed files
with
1009 additions
and
12 deletions
Show diff stats
rancher/tradutor-docker.yml
rancher/video-docker.yml
rancher/wikilibras-docker.yml
| ... | ... | @@ -50,7 +50,7 @@ volumes: |
| 50 | 50 | driver: 'null' |
| 51 | 51 | services: |
| 52 | 52 | web: |
| 53 | - image: hub.docker.planejamento.gov.br/vlibras/wikilibras:1.0.7 | |
| 53 | + image: hub.docker.planejamento.gov.br/vlibras/wikilibras:1.0.8 | |
| 54 | 54 | stdin_open: true |
| 55 | 55 | volumes: |
| 56 | 56 | - wikilibras_postgresql:/var/lib/postgresql | ... | ... |
vlibras-video-portal/Dockerfile
| ... | ... | @@ -26,12 +26,11 @@ RUN apt-get update && \ |
| 26 | 26 | |
| 27 | 27 | WORKDIR $APP_HOME |
| 28 | 28 | |
| 29 | -ADD * $APP_HOME/ | |
| 30 | -RUN bundle install | |
| 29 | +ADD ./vlibras-video-portal/ $APP_HOME/ | |
| 30 | +RUN bundle install && \ | |
| 31 | + mv $APP_HOME/docker-entrypoint.sh / | |
| 31 | 32 | |
| 32 | -ADD . $APP_HOME | |
| 33 | - | |
| 34 | -COPY ./docker-entrypoint.sh / | |
| 33 | +COPY ./vlibras-video-portal/docker-entrypoint.sh / | |
| 35 | 34 | |
| 36 | 35 | RUN chown -R vlibras. $APP_HOME && chmod +x /docker-entrypoint.sh && ln -sf /usr/share/zoneinfo/Sao_Paulo /etc/localtime |
| 37 | 36 | |
| ... | ... | @@ -39,7 +38,6 @@ USER vlibras |
| 39 | 38 | |
| 40 | 39 | EXPOSE 8080 |
| 41 | 40 | |
| 42 | -VOLUME ["/myapp/log"] | |
| 43 | -VOLUME ["/vlibraslportal"] | |
| 41 | +VOLUME ["/myapp/log", "/vlibraslportal"] | |
| 44 | 42 | |
| 45 | 43 | ENTRYPOINT ["/docker-entrypoint.sh"] | ... | ... |
| ... | ... | @@ -91,6 +91,7 @@ ADD wikilibras-core /home/vlibras/container/wikilibras-core/ |
| 91 | 91 | ADD wikilibras-api /home/vlibras/container/wikilibras-api/ |
| 92 | 92 | ADD wikilibrasdbapi /home/vlibras/container/wikilibrasdbapi/ |
| 93 | 93 | ADD wikilibras-pybossa.sql /home/vlibras/container/ |
| 94 | +ADD pybossa.sql /home/vlibras/container/ | |
| 94 | 95 | ADD Makefile /home/vlibras/container/ |
| 95 | 96 | ADD taskmgr /home/vlibras/container/taskmgr |
| 96 | 97 | |
| ... | ... | @@ -106,7 +107,11 @@ RUN make install KEY=2324bc23-7d6f-4840-8905-b1e6c1675eed |
| 106 | 107 | |
| 107 | 108 | WORKDIR /home/vlibras/container/pybossa/ |
| 108 | 109 | |
| 109 | -RUN printf "2324bc23-7d6f-4840-8905-b1e6c1675eed" | make install KEY=2324bc23-7d6f-4840-8905-b1e6c1675eed | |
| 110 | +RUN echo '===================================================================\n\n\n===========================================================\n' \ | |
| 111 | + && printf "2324bc23-7d6f-4840-8905-b1e6c1675eed" | make install KEY=2324bc23-7d6f-4840-8905-b1e6c1675eed \ | |
| 112 | + && /home/vlibras/container/pybossa/env/bin/pip install -r requirements.txt \ | |
| 113 | + && /home/vlibras/container/pybossa/env/bin/pip install pyopenssl --upgrade \ | |
| 114 | + && ( sudo service postgresql start & sleep 3m ) ; sudo su postgres -c 'psql --set ON_ERROR_STOP=on -f /home/vlibras/container/pybossa.sql pybossa' ; ( sudo service postgresql stop & sleep 1m ) | |
| 110 | 115 | |
| 111 | 116 | RUN cd pybossa && ln -sf themes/default/translations |
| 112 | 117 | |
| ... | ... | @@ -148,9 +153,11 @@ RUN make config KEY=2324bc23-7d6f-4840-8905-b1e6c1675eed |
| 148 | 153 | |
| 149 | 154 | WORKDIR /home/vlibras/container/ |
| 150 | 155 | |
| 151 | -RUN ( sudo service postgresql start & sleep 3m ) ; sudo su postgres -c 'psql --set ON_ERROR_STOP=off -f /home/vlibras/container/wikilibras-pybossa.sql pybossa' ; ( sudo service postgresql stop & sleep 1m ) | |
| 156 | +RUN ( sudo service postgresql start & sleep 3m ) ; sudo su postgres -c 'psql --set ON_ERROR_STOP=on -f /home/vlibras/container/wikilibras-pybossa.sql pybossa' ; ( sudo service postgresql stop & sleep 1m ) | |
| 152 | 157 | |
| 153 | 158 | RUN sudo apt-get install nano git htop -y |
| 154 | 159 | |
| 160 | +#RUN /home/vlibras/container/pybossa/env/bin/pip install pyopenssl --upgrade | |
| 161 | + | |
| 155 | 162 | ENTRYPOINT ( sudo service postgresql start & sudo service mongodb start & sleep 1m ) ; ( make start-up & sleep 1m) ; ( cd /home/vlibras/container/ ; make create_project ) ; ( cd /home/vlibras/container/taskmgr/ ; make run) & (sleep 1m ; cd /home/vlibras/container/wikilibrasdbapi/ ; make run) & (cd /home/vlibras/container/wikilibras-api/ ; make run) |
| 156 | 163 | #ENTRYPOINT ( sudo service postgresql start & sudo service mongodb start & sleep 1m ) ; ( make start-up & sleep 1m) ; ( wget http://0.0.0.0/wikilibras-backend/create_project ; wget http://0.0.0.0/corretor-backend/create_project ; wget http://0.0.0.0/validador-backend/create_project ) ; ( cd /home/vlibras/container/taskmgr/ ; make run) & (sleep 1m ; cd /home/vlibras/container/wikilibrasdbapi/ ; make run) & (cd /home/vlibras/container/wikilibras-api/ ; make run) | ... | ... |
| ... | ... | @@ -0,0 +1,992 @@ |
| 1 | +-- | |
| 2 | +-- PostgreSQL database dump | |
| 3 | +-- | |
| 4 | + | |
| 5 | +SET statement_timeout = 0; | |
| 6 | +SET lock_timeout = 0; | |
| 7 | +SET client_encoding = 'UTF8'; | |
| 8 | +SET standard_conforming_strings = on; | |
| 9 | +SET check_function_bodies = false; | |
| 10 | +SET client_min_messages = warning; | |
| 11 | + | |
| 12 | +-- | |
| 13 | +-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: | |
| 14 | +-- | |
| 15 | + | |
| 16 | +CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; | |
| 17 | + | |
| 18 | + | |
| 19 | +-- | |
| 20 | +-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: | |
| 21 | +-- | |
| 22 | + | |
| 23 | +COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; | |
| 24 | + | |
| 25 | + | |
| 26 | +SET search_path = public, pg_catalog; | |
| 27 | + | |
| 28 | +SET default_tablespace = ''; | |
| 29 | + | |
| 30 | +SET default_with_oids = false; | |
| 31 | + | |
| 32 | +-- | |
| 33 | +-- Name: alembic_version; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 34 | +-- | |
| 35 | + | |
| 36 | +CREATE TABLE alembic_version ( | |
| 37 | + version_num character varying(32) NOT NULL | |
| 38 | +); | |
| 39 | + | |
| 40 | + | |
| 41 | +ALTER TABLE public.alembic_version OWNER TO pybossa; | |
| 42 | + | |
| 43 | +-- | |
| 44 | +-- Name: auditlog; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 45 | +-- | |
| 46 | + | |
| 47 | +CREATE TABLE auditlog ( | |
| 48 | + id integer NOT NULL, | |
| 49 | + project_id integer NOT NULL, | |
| 50 | + project_short_name text NOT NULL, | |
| 51 | + user_id integer NOT NULL, | |
| 52 | + user_name text NOT NULL, | |
| 53 | + created text NOT NULL, | |
| 54 | + action text NOT NULL, | |
| 55 | + caller text NOT NULL, | |
| 56 | + attribute text NOT NULL, | |
| 57 | + old_value text, | |
| 58 | + new_value text | |
| 59 | +); | |
| 60 | + | |
| 61 | + | |
| 62 | +ALTER TABLE public.auditlog OWNER TO pybossa; | |
| 63 | + | |
| 64 | +-- | |
| 65 | +-- Name: auditlog_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 66 | +-- | |
| 67 | + | |
| 68 | +CREATE SEQUENCE auditlog_id_seq | |
| 69 | + START WITH 1 | |
| 70 | + INCREMENT BY 1 | |
| 71 | + NO MINVALUE | |
| 72 | + NO MAXVALUE | |
| 73 | + CACHE 1; | |
| 74 | + | |
| 75 | + | |
| 76 | +ALTER TABLE public.auditlog_id_seq OWNER TO pybossa; | |
| 77 | + | |
| 78 | +-- | |
| 79 | +-- Name: auditlog_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 80 | +-- | |
| 81 | + | |
| 82 | +ALTER SEQUENCE auditlog_id_seq OWNED BY auditlog.id; | |
| 83 | + | |
| 84 | + | |
| 85 | +-- | |
| 86 | +-- Name: blogpost; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 87 | +-- | |
| 88 | + | |
| 89 | +CREATE TABLE blogpost ( | |
| 90 | + id integer NOT NULL, | |
| 91 | + created text, | |
| 92 | + project_id integer NOT NULL, | |
| 93 | + user_id integer, | |
| 94 | + title character varying(255) NOT NULL, | |
| 95 | + body text NOT NULL | |
| 96 | +); | |
| 97 | + | |
| 98 | + | |
| 99 | +ALTER TABLE public.blogpost OWNER TO pybossa; | |
| 100 | + | |
| 101 | +-- | |
| 102 | +-- Name: blogpost_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 103 | +-- | |
| 104 | + | |
| 105 | +CREATE SEQUENCE blogpost_id_seq | |
| 106 | + START WITH 1 | |
| 107 | + INCREMENT BY 1 | |
| 108 | + NO MINVALUE | |
| 109 | + NO MAXVALUE | |
| 110 | + CACHE 1; | |
| 111 | + | |
| 112 | + | |
| 113 | +ALTER TABLE public.blogpost_id_seq OWNER TO pybossa; | |
| 114 | + | |
| 115 | +-- | |
| 116 | +-- Name: blogpost_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 117 | +-- | |
| 118 | + | |
| 119 | +ALTER SEQUENCE blogpost_id_seq OWNED BY blogpost.id; | |
| 120 | + | |
| 121 | + | |
| 122 | +-- | |
| 123 | +-- Name: category; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 124 | +-- | |
| 125 | + | |
| 126 | +CREATE TABLE category ( | |
| 127 | + id integer NOT NULL, | |
| 128 | + name text NOT NULL, | |
| 129 | + short_name text NOT NULL, | |
| 130 | + description text NOT NULL, | |
| 131 | + created text | |
| 132 | +); | |
| 133 | + | |
| 134 | + | |
| 135 | +ALTER TABLE public.category OWNER TO pybossa; | |
| 136 | + | |
| 137 | +-- | |
| 138 | +-- Name: category_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 139 | +-- | |
| 140 | + | |
| 141 | +CREATE SEQUENCE category_id_seq | |
| 142 | + START WITH 1 | |
| 143 | + INCREMENT BY 1 | |
| 144 | + NO MINVALUE | |
| 145 | + NO MAXVALUE | |
| 146 | + CACHE 1; | |
| 147 | + | |
| 148 | + | |
| 149 | +ALTER TABLE public.category_id_seq OWNER TO pybossa; | |
| 150 | + | |
| 151 | +-- | |
| 152 | +-- Name: category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 153 | +-- | |
| 154 | + | |
| 155 | +ALTER SEQUENCE category_id_seq OWNED BY category.id; | |
| 156 | + | |
| 157 | + | |
| 158 | +-- | |
| 159 | +-- Name: profile; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 160 | +-- | |
| 161 | + | |
| 162 | +CREATE TABLE profile ( | |
| 163 | + id integer NOT NULL, | |
| 164 | + name text NOT NULL, | |
| 165 | + description text NOT NULL, | |
| 166 | + access text[] NOT NULL, | |
| 167 | + created text | |
| 168 | +); | |
| 169 | + | |
| 170 | + | |
| 171 | +ALTER TABLE public.profile OWNER TO pybossa; | |
| 172 | + | |
| 173 | +-- | |
| 174 | +-- Name: profile_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 175 | +-- | |
| 176 | + | |
| 177 | +CREATE SEQUENCE profile_id_seq | |
| 178 | + START WITH 1 | |
| 179 | + INCREMENT BY 1 | |
| 180 | + NO MINVALUE | |
| 181 | + NO MAXVALUE | |
| 182 | + CACHE 1; | |
| 183 | + | |
| 184 | + | |
| 185 | +ALTER TABLE public.profile_id_seq OWNER TO pybossa; | |
| 186 | + | |
| 187 | +-- | |
| 188 | +-- Name: profile_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 189 | +-- | |
| 190 | + | |
| 191 | +ALTER SEQUENCE profile_id_seq OWNED BY profile.id; | |
| 192 | + | |
| 193 | + | |
| 194 | +-- | |
| 195 | +-- Name: project; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 196 | +-- | |
| 197 | + | |
| 198 | +CREATE TABLE project ( | |
| 199 | + id integer NOT NULL, | |
| 200 | + created text, | |
| 201 | + updated text, | |
| 202 | + name character varying(255) NOT NULL, | |
| 203 | + short_name character varying(255) NOT NULL, | |
| 204 | + description character varying(255) NOT NULL, | |
| 205 | + long_description text, | |
| 206 | + webhook text, | |
| 207 | + allow_anonymous_contributors boolean, | |
| 208 | + published boolean NOT NULL, | |
| 209 | + featured boolean NOT NULL, | |
| 210 | + contacted boolean NOT NULL, | |
| 211 | + owner_id integer NOT NULL, | |
| 212 | + category_id integer NOT NULL, | |
| 213 | + info json | |
| 214 | +); | |
| 215 | + | |
| 216 | + | |
| 217 | +ALTER TABLE public.project OWNER TO pybossa; | |
| 218 | + | |
| 219 | +-- | |
| 220 | +-- Name: project_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 221 | +-- | |
| 222 | + | |
| 223 | +CREATE SEQUENCE project_id_seq | |
| 224 | + START WITH 1 | |
| 225 | + INCREMENT BY 1 | |
| 226 | + NO MINVALUE | |
| 227 | + NO MAXVALUE | |
| 228 | + CACHE 1; | |
| 229 | + | |
| 230 | + | |
| 231 | +ALTER TABLE public.project_id_seq OWNER TO pybossa; | |
| 232 | + | |
| 233 | +-- | |
| 234 | +-- Name: project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 235 | +-- | |
| 236 | + | |
| 237 | +ALTER SEQUENCE project_id_seq OWNED BY project.id; | |
| 238 | + | |
| 239 | + | |
| 240 | +-- | |
| 241 | +-- Name: result; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 242 | +-- | |
| 243 | + | |
| 244 | +CREATE TABLE result ( | |
| 245 | + id integer NOT NULL, | |
| 246 | + created text, | |
| 247 | + project_id integer NOT NULL, | |
| 248 | + task_id integer NOT NULL, | |
| 249 | + task_run_ids integer[] NOT NULL, | |
| 250 | + last_version boolean, | |
| 251 | + info json | |
| 252 | +); | |
| 253 | + | |
| 254 | + | |
| 255 | +ALTER TABLE public.result OWNER TO pybossa; | |
| 256 | + | |
| 257 | +-- | |
| 258 | +-- Name: result_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 259 | +-- | |
| 260 | + | |
| 261 | +CREATE SEQUENCE result_id_seq | |
| 262 | + START WITH 1 | |
| 263 | + INCREMENT BY 1 | |
| 264 | + NO MINVALUE | |
| 265 | + NO MAXVALUE | |
| 266 | + CACHE 1; | |
| 267 | + | |
| 268 | + | |
| 269 | +ALTER TABLE public.result_id_seq OWNER TO pybossa; | |
| 270 | + | |
| 271 | +-- | |
| 272 | +-- Name: result_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 273 | +-- | |
| 274 | + | |
| 275 | +ALTER SEQUENCE result_id_seq OWNED BY result.id; | |
| 276 | + | |
| 277 | + | |
| 278 | +-- | |
| 279 | +-- Name: task; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 280 | +-- | |
| 281 | + | |
| 282 | +CREATE TABLE task ( | |
| 283 | + id integer NOT NULL, | |
| 284 | + created text, | |
| 285 | + project_id integer NOT NULL, | |
| 286 | + state text, | |
| 287 | + quorum integer, | |
| 288 | + calibration integer, | |
| 289 | + priority_0 double precision, | |
| 290 | + info json, | |
| 291 | + n_answers integer | |
| 292 | +); | |
| 293 | + | |
| 294 | + | |
| 295 | +ALTER TABLE public.task OWNER TO pybossa; | |
| 296 | + | |
| 297 | +-- | |
| 298 | +-- Name: task_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 299 | +-- | |
| 300 | + | |
| 301 | +CREATE SEQUENCE task_id_seq | |
| 302 | + START WITH 1 | |
| 303 | + INCREMENT BY 1 | |
| 304 | + NO MINVALUE | |
| 305 | + NO MAXVALUE | |
| 306 | + CACHE 1; | |
| 307 | + | |
| 308 | + | |
| 309 | +ALTER TABLE public.task_id_seq OWNER TO pybossa; | |
| 310 | + | |
| 311 | +-- | |
| 312 | +-- Name: task_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 313 | +-- | |
| 314 | + | |
| 315 | +ALTER SEQUENCE task_id_seq OWNED BY task.id; | |
| 316 | + | |
| 317 | + | |
| 318 | +-- | |
| 319 | +-- Name: task_run; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 320 | +-- | |
| 321 | + | |
| 322 | +CREATE TABLE task_run ( | |
| 323 | + id integer NOT NULL, | |
| 324 | + created text, | |
| 325 | + project_id integer NOT NULL, | |
| 326 | + task_id integer NOT NULL, | |
| 327 | + user_id integer, | |
| 328 | + user_ip text, | |
| 329 | + finish_time text, | |
| 330 | + timeout integer, | |
| 331 | + calibration integer, | |
| 332 | + info json | |
| 333 | +); | |
| 334 | + | |
| 335 | + | |
| 336 | +ALTER TABLE public.task_run OWNER TO pybossa; | |
| 337 | + | |
| 338 | +-- | |
| 339 | +-- Name: task_run_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 340 | +-- | |
| 341 | + | |
| 342 | +CREATE SEQUENCE task_run_id_seq | |
| 343 | + START WITH 1 | |
| 344 | + INCREMENT BY 1 | |
| 345 | + NO MINVALUE | |
| 346 | + NO MAXVALUE | |
| 347 | + CACHE 1; | |
| 348 | + | |
| 349 | + | |
| 350 | +ALTER TABLE public.task_run_id_seq OWNER TO pybossa; | |
| 351 | + | |
| 352 | +-- | |
| 353 | +-- Name: task_run_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 354 | +-- | |
| 355 | + | |
| 356 | +ALTER SEQUENCE task_run_id_seq OWNED BY task_run.id; | |
| 357 | + | |
| 358 | + | |
| 359 | +-- | |
| 360 | +-- Name: user; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 361 | +-- | |
| 362 | + | |
| 363 | +CREATE TABLE "user" ( | |
| 364 | + id integer NOT NULL, | |
| 365 | + created text, | |
| 366 | + email_addr character varying(254) NOT NULL, | |
| 367 | + name character varying(254) NOT NULL, | |
| 368 | + fullname character varying(500) NOT NULL, | |
| 369 | + locale character varying(254) NOT NULL, | |
| 370 | + api_key character varying(36), | |
| 371 | + passwd_hash character varying(254), | |
| 372 | + admin boolean, | |
| 373 | + pro boolean, | |
| 374 | + privacy_mode boolean NOT NULL, | |
| 375 | + category integer, | |
| 376 | + flags integer, | |
| 377 | + twitter_user_id bigint, | |
| 378 | + facebook_user_id bigint, | |
| 379 | + google_user_id character varying, | |
| 380 | + ckan_api character varying, | |
| 381 | + newsletter_prompted boolean, | |
| 382 | + valid_email boolean, | |
| 383 | + confirmation_email_sent boolean, | |
| 384 | + subscribed boolean, | |
| 385 | + info json, | |
| 386 | + profile_id integer | |
| 387 | +); | |
| 388 | + | |
| 389 | + | |
| 390 | +ALTER TABLE public."user" OWNER TO pybossa; | |
| 391 | + | |
| 392 | +-- | |
| 393 | +-- Name: user_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 394 | +-- | |
| 395 | + | |
| 396 | +CREATE SEQUENCE user_id_seq | |
| 397 | + START WITH 1 | |
| 398 | + INCREMENT BY 1 | |
| 399 | + NO MINVALUE | |
| 400 | + NO MAXVALUE | |
| 401 | + CACHE 1; | |
| 402 | + | |
| 403 | + | |
| 404 | +ALTER TABLE public.user_id_seq OWNER TO pybossa; | |
| 405 | + | |
| 406 | +-- | |
| 407 | +-- Name: user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 408 | +-- | |
| 409 | + | |
| 410 | +ALTER SEQUENCE user_id_seq OWNED BY "user".id; | |
| 411 | + | |
| 412 | + | |
| 413 | +-- | |
| 414 | +-- Name: webhook; Type: TABLE; Schema: public; Owner: pybossa; Tablespace: | |
| 415 | +-- | |
| 416 | + | |
| 417 | +CREATE TABLE webhook ( | |
| 418 | + id integer NOT NULL, | |
| 419 | + created text, | |
| 420 | + updated text, | |
| 421 | + project_id integer NOT NULL, | |
| 422 | + payload json, | |
| 423 | + response text, | |
| 424 | + response_status_code integer | |
| 425 | +); | |
| 426 | + | |
| 427 | + | |
| 428 | +ALTER TABLE public.webhook OWNER TO pybossa; | |
| 429 | + | |
| 430 | +-- | |
| 431 | +-- Name: webhook_id_seq; Type: SEQUENCE; Schema: public; Owner: pybossa | |
| 432 | +-- | |
| 433 | + | |
| 434 | +CREATE SEQUENCE webhook_id_seq | |
| 435 | + START WITH 1 | |
| 436 | + INCREMENT BY 1 | |
| 437 | + NO MINVALUE | |
| 438 | + NO MAXVALUE | |
| 439 | + CACHE 1; | |
| 440 | + | |
| 441 | + | |
| 442 | +ALTER TABLE public.webhook_id_seq OWNER TO pybossa; | |
| 443 | + | |
| 444 | +-- | |
| 445 | +-- Name: webhook_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pybossa | |
| 446 | +-- | |
| 447 | + | |
| 448 | +ALTER SEQUENCE webhook_id_seq OWNED BY webhook.id; | |
| 449 | + | |
| 450 | + | |
| 451 | +-- | |
| 452 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 453 | +-- | |
| 454 | + | |
| 455 | +ALTER TABLE ONLY auditlog ALTER COLUMN id SET DEFAULT nextval('auditlog_id_seq'::regclass); | |
| 456 | + | |
| 457 | + | |
| 458 | +-- | |
| 459 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 460 | +-- | |
| 461 | + | |
| 462 | +ALTER TABLE ONLY blogpost ALTER COLUMN id SET DEFAULT nextval('blogpost_id_seq'::regclass); | |
| 463 | + | |
| 464 | + | |
| 465 | +-- | |
| 466 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 467 | +-- | |
| 468 | + | |
| 469 | +ALTER TABLE ONLY category ALTER COLUMN id SET DEFAULT nextval('category_id_seq'::regclass); | |
| 470 | + | |
| 471 | + | |
| 472 | +-- | |
| 473 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 474 | +-- | |
| 475 | + | |
| 476 | +ALTER TABLE ONLY profile ALTER COLUMN id SET DEFAULT nextval('profile_id_seq'::regclass); | |
| 477 | + | |
| 478 | + | |
| 479 | +-- | |
| 480 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 481 | +-- | |
| 482 | + | |
| 483 | +ALTER TABLE ONLY project ALTER COLUMN id SET DEFAULT nextval('project_id_seq'::regclass); | |
| 484 | + | |
| 485 | + | |
| 486 | +-- | |
| 487 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 488 | +-- | |
| 489 | + | |
| 490 | +ALTER TABLE ONLY result ALTER COLUMN id SET DEFAULT nextval('result_id_seq'::regclass); | |
| 491 | + | |
| 492 | + | |
| 493 | +-- | |
| 494 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 495 | +-- | |
| 496 | + | |
| 497 | +ALTER TABLE ONLY task ALTER COLUMN id SET DEFAULT nextval('task_id_seq'::regclass); | |
| 498 | + | |
| 499 | + | |
| 500 | +-- | |
| 501 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 502 | +-- | |
| 503 | + | |
| 504 | +ALTER TABLE ONLY task_run ALTER COLUMN id SET DEFAULT nextval('task_run_id_seq'::regclass); | |
| 505 | + | |
| 506 | + | |
| 507 | +-- | |
| 508 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 509 | +-- | |
| 510 | + | |
| 511 | +ALTER TABLE ONLY "user" ALTER COLUMN id SET DEFAULT nextval('user_id_seq'::regclass); | |
| 512 | + | |
| 513 | + | |
| 514 | +-- | |
| 515 | +-- Name: id; Type: DEFAULT; Schema: public; Owner: pybossa | |
| 516 | +-- | |
| 517 | + | |
| 518 | +ALTER TABLE ONLY webhook ALTER COLUMN id SET DEFAULT nextval('webhook_id_seq'::regclass); | |
| 519 | + | |
| 520 | + | |
| 521 | +-- | |
| 522 | +-- Data for Name: alembic_version; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 523 | +-- | |
| 524 | + | |
| 525 | +COPY alembic_version (version_num) FROM stdin; | |
| 526 | +2dcee6dfae9d | |
| 527 | +\. | |
| 528 | + | |
| 529 | + | |
| 530 | +-- | |
| 531 | +-- Data for Name: auditlog; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 532 | +-- | |
| 533 | + | |
| 534 | +COPY auditlog (id, project_id, project_short_name, user_id, user_name, created, action, caller, attribute, old_value, new_value) FROM stdin; | |
| 535 | +\. | |
| 536 | + | |
| 537 | + | |
| 538 | +-- | |
| 539 | +-- Name: auditlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 540 | +-- | |
| 541 | + | |
| 542 | +SELECT pg_catalog.setval('auditlog_id_seq', 1, false); | |
| 543 | + | |
| 544 | + | |
| 545 | +-- | |
| 546 | +-- Data for Name: blogpost; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 547 | +-- | |
| 548 | + | |
| 549 | +COPY blogpost (id, created, project_id, user_id, title, body) FROM stdin; | |
| 550 | +\. | |
| 551 | + | |
| 552 | + | |
| 553 | +-- | |
| 554 | +-- Name: blogpost_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 555 | +-- | |
| 556 | + | |
| 557 | +SELECT pg_catalog.setval('blogpost_id_seq', 1, false); | |
| 558 | + | |
| 559 | + | |
| 560 | +-- | |
| 561 | +-- Data for Name: category; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 562 | +-- | |
| 563 | + | |
| 564 | +COPY category (id, name, short_name, description, created) FROM stdin; | |
| 565 | +1 Thinking thinking Volunteer Thinking projects 2017-07-07T00:22:13.632647 | |
| 566 | +2 Volunteer Sensing sensing Volunteer Sensing projects 2017-07-07T00:22:13.633788 | |
| 567 | +\. | |
| 568 | + | |
| 569 | + | |
| 570 | +-- | |
| 571 | +-- Name: category_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 572 | +-- | |
| 573 | + | |
| 574 | +SELECT pg_catalog.setval('category_id_seq', 2, true); | |
| 575 | + | |
| 576 | + | |
| 577 | +-- | |
| 578 | +-- Data for Name: profile; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 579 | +-- | |
| 580 | + | |
| 581 | +COPY profile (id, name, description, access, created) FROM stdin; | |
| 582 | +1 Colaborador Colaborador geral {wikilibras} 2017-07-07T00:22:13.646371 | |
| 583 | +2 Animador Animador 3D {wikilibras,corretor_sinais} 2017-07-07T00:22:13.647565 | |
| 584 | +3 Especialista Especialista em LIBRAS {wikilibras,validador_sinais} 2017-07-07T00:22:13.648150 | |
| 585 | +\. | |
| 586 | + | |
| 587 | + | |
| 588 | +-- | |
| 589 | +-- Name: profile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 590 | +-- | |
| 591 | + | |
| 592 | +SELECT pg_catalog.setval('profile_id_seq', 3, true); | |
| 593 | + | |
| 594 | + | |
| 595 | +-- | |
| 596 | +-- Data for Name: project; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 597 | +-- | |
| 598 | + | |
| 599 | +COPY project (id, created, updated, name, short_name, description, long_description, webhook, allow_anonymous_contributors, published, featured, contacted, owner_id, category_id, info) FROM stdin; | |
| 600 | +\. | |
| 601 | + | |
| 602 | + | |
| 603 | +-- | |
| 604 | +-- Name: project_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 605 | +-- | |
| 606 | + | |
| 607 | +SELECT pg_catalog.setval('project_id_seq', 1, false); | |
| 608 | + | |
| 609 | + | |
| 610 | +-- | |
| 611 | +-- Data for Name: result; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 612 | +-- | |
| 613 | + | |
| 614 | +COPY result (id, created, project_id, task_id, task_run_ids, last_version, info) FROM stdin; | |
| 615 | +\. | |
| 616 | + | |
| 617 | + | |
| 618 | +-- | |
| 619 | +-- Name: result_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 620 | +-- | |
| 621 | + | |
| 622 | +SELECT pg_catalog.setval('result_id_seq', 1, false); | |
| 623 | + | |
| 624 | + | |
| 625 | +-- | |
| 626 | +-- Data for Name: task; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 627 | +-- | |
| 628 | + | |
| 629 | +COPY task (id, created, project_id, state, quorum, calibration, priority_0, info, n_answers) FROM stdin; | |
| 630 | +\. | |
| 631 | + | |
| 632 | + | |
| 633 | +-- | |
| 634 | +-- Name: task_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 635 | +-- | |
| 636 | + | |
| 637 | +SELECT pg_catalog.setval('task_id_seq', 1, false); | |
| 638 | + | |
| 639 | + | |
| 640 | +-- | |
| 641 | +-- Data for Name: task_run; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 642 | +-- | |
| 643 | + | |
| 644 | +COPY task_run (id, created, project_id, task_id, user_id, user_ip, finish_time, timeout, calibration, info) FROM stdin; | |
| 645 | +\. | |
| 646 | + | |
| 647 | + | |
| 648 | +-- | |
| 649 | +-- Name: task_run_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 650 | +-- | |
| 651 | + | |
| 652 | +SELECT pg_catalog.setval('task_run_id_seq', 1, false); | |
| 653 | + | |
| 654 | + | |
| 655 | +-- | |
| 656 | +-- Data for Name: user; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 657 | +-- | |
| 658 | + | |
| 659 | +COPY "user" (id, created, email_addr, name, fullname, locale, api_key, passwd_hash, admin, pro, privacy_mode, category, flags, twitter_user_id, facebook_user_id, google_user_id, ckan_api, newsletter_prompted, valid_email, confirmation_email_sent, subscribed, info, profile_id) FROM stdin; | |
| 660 | +1 2017-01-01T00:00:00.000000 wikilibras@lavid.ufpb.br wikilibras wikilibras pt_BR 2324bc23-7d6f-4840-8905-b1e6c1675eed pbkdf2:sha1:1000$wIP6vkOx$99be5c325961aa39030bb10e3b58a85ac3bfaa90 t f f \N \N \N \N \N \N f t f t {} 1 | |
| 661 | +2 2017-01-01T00:00:00.000000 tester1@lavid.ufpb.br tester1 tester1 pt_BR e4fef6e0-d954-4ce8-be39-ab08a96aa61a pbkdf2:sha256:50000$ZXnRVTb5$2bfd28d77b26d3c1f183192ec793885bbd523ad92b8a6708edce6d5226a850fe t f f \N \N \N \N \N \N f t f t {} 1 | |
| 662 | +3 2017-01-01T00:00:00.000000 tester2@lavid.ufpb.br tester2 tester2 pt_BR 1d0fbea5-88d7-40f2-a835-676bc3824f8c pbkdf2:sha256:50000$DizF7nb3$d4b4946fcac8a88cb2337d610e743432441719559f236b0d5816feb9ffbbefdf t f f \N \N \N \N \N \N f t f t {} 1 | |
| 663 | +4 2017-01-01T00:00:00.000000 tester3@lavid.ufpb.br tester3 tester3 pt_BR 8c5707aa-e813-4a5e-b3f1-7d3e413da494 pbkdf2:sha256:50000$pYfjlhqL$a3bbd613e39c0ef6387548b4ef1c8b273bf02031b34b10d2f26f21f0839da890 t f f \N \N \N \N \N \N f t f t {} 1 | |
| 664 | +5 2017-01-01T00:00:00.000000 tester4@lavid.ufpb.br tester4 tester4 pt_BR f47796e1-e0da-49ff-b030-ad7459cf464b pbkdf2:sha256:50000$Zht8o4X9$b4e630fb43254589c407406836bf60b5e669f7368dfa45a24ebbc0ed5fee3872 t f f \N \N \N \N \N \N f t f t {} 1 | |
| 665 | +6 2017-01-01T00:00:00.000000 tester5@lavid.ufpb.br tester5 tester5 pt_BR 7dce7aac-29cd-467f-a1b6-cc96044b5909 pbkdf2:sha256:50000$v6cDxeNk$2f7b494d9d4b2e175cdfc9e617758a3a6c30e511385bc24e4d1b499064f9a908 t f f \N \N \N \N \N \N f t f t {} 1 | |
| 666 | +\. | |
| 667 | + | |
| 668 | + | |
| 669 | +-- | |
| 670 | +-- Name: user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 671 | +-- | |
| 672 | + | |
| 673 | +SELECT pg_catalog.setval('user_id_seq', 6, true); | |
| 674 | + | |
| 675 | + | |
| 676 | +-- | |
| 677 | +-- Data for Name: webhook; Type: TABLE DATA; Schema: public; Owner: pybossa | |
| 678 | +-- | |
| 679 | + | |
| 680 | +COPY webhook (id, created, updated, project_id, payload, response, response_status_code) FROM stdin; | |
| 681 | +\. | |
| 682 | + | |
| 683 | + | |
| 684 | +-- | |
| 685 | +-- Name: webhook_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pybossa | |
| 686 | +-- | |
| 687 | + | |
| 688 | +SELECT pg_catalog.setval('webhook_id_seq', 1, false); | |
| 689 | + | |
| 690 | + | |
| 691 | +-- | |
| 692 | +-- Name: alembic_version_pkc; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 693 | +-- | |
| 694 | + | |
| 695 | +ALTER TABLE ONLY alembic_version | |
| 696 | + ADD CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num); | |
| 697 | + | |
| 698 | + | |
| 699 | +-- | |
| 700 | +-- Name: auditlog_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 701 | +-- | |
| 702 | + | |
| 703 | +ALTER TABLE ONLY auditlog | |
| 704 | + ADD CONSTRAINT auditlog_pkey PRIMARY KEY (id); | |
| 705 | + | |
| 706 | + | |
| 707 | +-- | |
| 708 | +-- Name: blogpost_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 709 | +-- | |
| 710 | + | |
| 711 | +ALTER TABLE ONLY blogpost | |
| 712 | + ADD CONSTRAINT blogpost_pkey PRIMARY KEY (id); | |
| 713 | + | |
| 714 | + | |
| 715 | +-- | |
| 716 | +-- Name: category_name_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 717 | +-- | |
| 718 | + | |
| 719 | +ALTER TABLE ONLY category | |
| 720 | + ADD CONSTRAINT category_name_key UNIQUE (name); | |
| 721 | + | |
| 722 | + | |
| 723 | +-- | |
| 724 | +-- Name: category_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 725 | +-- | |
| 726 | + | |
| 727 | +ALTER TABLE ONLY category | |
| 728 | + ADD CONSTRAINT category_pkey PRIMARY KEY (id); | |
| 729 | + | |
| 730 | + | |
| 731 | +-- | |
| 732 | +-- Name: category_short_name_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 733 | +-- | |
| 734 | + | |
| 735 | +ALTER TABLE ONLY category | |
| 736 | + ADD CONSTRAINT category_short_name_key UNIQUE (short_name); | |
| 737 | + | |
| 738 | + | |
| 739 | +-- | |
| 740 | +-- Name: profile_name_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 741 | +-- | |
| 742 | + | |
| 743 | +ALTER TABLE ONLY profile | |
| 744 | + ADD CONSTRAINT profile_name_key UNIQUE (name); | |
| 745 | + | |
| 746 | + | |
| 747 | +-- | |
| 748 | +-- Name: profile_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 749 | +-- | |
| 750 | + | |
| 751 | +ALTER TABLE ONLY profile | |
| 752 | + ADD CONSTRAINT profile_pkey PRIMARY KEY (id); | |
| 753 | + | |
| 754 | + | |
| 755 | +-- | |
| 756 | +-- Name: project_name_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 757 | +-- | |
| 758 | + | |
| 759 | +ALTER TABLE ONLY project | |
| 760 | + ADD CONSTRAINT project_name_key UNIQUE (name); | |
| 761 | + | |
| 762 | + | |
| 763 | +-- | |
| 764 | +-- Name: project_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 765 | +-- | |
| 766 | + | |
| 767 | +ALTER TABLE ONLY project | |
| 768 | + ADD CONSTRAINT project_pkey PRIMARY KEY (id); | |
| 769 | + | |
| 770 | + | |
| 771 | +-- | |
| 772 | +-- Name: project_short_name_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 773 | +-- | |
| 774 | + | |
| 775 | +ALTER TABLE ONLY project | |
| 776 | + ADD CONSTRAINT project_short_name_key UNIQUE (short_name); | |
| 777 | + | |
| 778 | + | |
| 779 | +-- | |
| 780 | +-- Name: result_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 781 | +-- | |
| 782 | + | |
| 783 | +ALTER TABLE ONLY result | |
| 784 | + ADD CONSTRAINT result_pkey PRIMARY KEY (id); | |
| 785 | + | |
| 786 | + | |
| 787 | +-- | |
| 788 | +-- Name: task_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 789 | +-- | |
| 790 | + | |
| 791 | +ALTER TABLE ONLY task | |
| 792 | + ADD CONSTRAINT task_pkey PRIMARY KEY (id); | |
| 793 | + | |
| 794 | + | |
| 795 | +-- | |
| 796 | +-- Name: task_run_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 797 | +-- | |
| 798 | + | |
| 799 | +ALTER TABLE ONLY task_run | |
| 800 | + ADD CONSTRAINT task_run_pkey PRIMARY KEY (id); | |
| 801 | + | |
| 802 | + | |
| 803 | +-- | |
| 804 | +-- Name: user_api_key_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 805 | +-- | |
| 806 | + | |
| 807 | +ALTER TABLE ONLY "user" | |
| 808 | + ADD CONSTRAINT user_api_key_key UNIQUE (api_key); | |
| 809 | + | |
| 810 | + | |
| 811 | +-- | |
| 812 | +-- Name: user_ckan_api_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 813 | +-- | |
| 814 | + | |
| 815 | +ALTER TABLE ONLY "user" | |
| 816 | + ADD CONSTRAINT user_ckan_api_key UNIQUE (ckan_api); | |
| 817 | + | |
| 818 | + | |
| 819 | +-- | |
| 820 | +-- Name: user_email_addr_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 821 | +-- | |
| 822 | + | |
| 823 | +ALTER TABLE ONLY "user" | |
| 824 | + ADD CONSTRAINT user_email_addr_key UNIQUE (email_addr); | |
| 825 | + | |
| 826 | + | |
| 827 | +-- | |
| 828 | +-- Name: user_facebook_user_id_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 829 | +-- | |
| 830 | + | |
| 831 | +ALTER TABLE ONLY "user" | |
| 832 | + ADD CONSTRAINT user_facebook_user_id_key UNIQUE (facebook_user_id); | |
| 833 | + | |
| 834 | + | |
| 835 | +-- | |
| 836 | +-- Name: user_google_user_id_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 837 | +-- | |
| 838 | + | |
| 839 | +ALTER TABLE ONLY "user" | |
| 840 | + ADD CONSTRAINT user_google_user_id_key UNIQUE (google_user_id); | |
| 841 | + | |
| 842 | + | |
| 843 | +-- | |
| 844 | +-- Name: user_name_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 845 | +-- | |
| 846 | + | |
| 847 | +ALTER TABLE ONLY "user" | |
| 848 | + ADD CONSTRAINT user_name_key UNIQUE (name); | |
| 849 | + | |
| 850 | + | |
| 851 | +-- | |
| 852 | +-- Name: user_passwd_hash_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 853 | +-- | |
| 854 | + | |
| 855 | +ALTER TABLE ONLY "user" | |
| 856 | + ADD CONSTRAINT user_passwd_hash_key UNIQUE (passwd_hash); | |
| 857 | + | |
| 858 | + | |
| 859 | +-- | |
| 860 | +-- Name: user_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 861 | +-- | |
| 862 | + | |
| 863 | +ALTER TABLE ONLY "user" | |
| 864 | + ADD CONSTRAINT user_pkey PRIMARY KEY (id); | |
| 865 | + | |
| 866 | + | |
| 867 | +-- | |
| 868 | +-- Name: user_twitter_user_id_key; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 869 | +-- | |
| 870 | + | |
| 871 | +ALTER TABLE ONLY "user" | |
| 872 | + ADD CONSTRAINT user_twitter_user_id_key UNIQUE (twitter_user_id); | |
| 873 | + | |
| 874 | + | |
| 875 | +-- | |
| 876 | +-- Name: webhook_pkey; Type: CONSTRAINT; Schema: public; Owner: pybossa; Tablespace: | |
| 877 | +-- | |
| 878 | + | |
| 879 | +ALTER TABLE ONLY webhook | |
| 880 | + ADD CONSTRAINT webhook_pkey PRIMARY KEY (id); | |
| 881 | + | |
| 882 | + | |
| 883 | +-- | |
| 884 | +-- Name: blogpost_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 885 | +-- | |
| 886 | + | |
| 887 | +ALTER TABLE ONLY blogpost | |
| 888 | + ADD CONSTRAINT blogpost_project_id_fkey FOREIGN KEY (project_id) REFERENCES project(id) ON DELETE CASCADE; | |
| 889 | + | |
| 890 | + | |
| 891 | +-- | |
| 892 | +-- Name: blogpost_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 893 | +-- | |
| 894 | + | |
| 895 | +ALTER TABLE ONLY blogpost | |
| 896 | + ADD CONSTRAINT blogpost_user_id_fkey FOREIGN KEY (user_id) REFERENCES "user"(id); | |
| 897 | + | |
| 898 | + | |
| 899 | +-- | |
| 900 | +-- Name: project_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 901 | +-- | |
| 902 | + | |
| 903 | +ALTER TABLE ONLY project | |
| 904 | + ADD CONSTRAINT project_category_id_fkey FOREIGN KEY (category_id) REFERENCES category(id); | |
| 905 | + | |
| 906 | + | |
| 907 | +-- | |
| 908 | +-- Name: project_owner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 909 | +-- | |
| 910 | + | |
| 911 | +ALTER TABLE ONLY project | |
| 912 | + ADD CONSTRAINT project_owner_id_fkey FOREIGN KEY (owner_id) REFERENCES "user"(id); | |
| 913 | + | |
| 914 | + | |
| 915 | +-- | |
| 916 | +-- Name: result_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 917 | +-- | |
| 918 | + | |
| 919 | +ALTER TABLE ONLY result | |
| 920 | + ADD CONSTRAINT result_project_id_fkey FOREIGN KEY (project_id) REFERENCES project(id); | |
| 921 | + | |
| 922 | + | |
| 923 | +-- | |
| 924 | +-- Name: result_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 925 | +-- | |
| 926 | + | |
| 927 | +ALTER TABLE ONLY result | |
| 928 | + ADD CONSTRAINT result_task_id_fkey FOREIGN KEY (task_id) REFERENCES task(id) ON DELETE CASCADE; | |
| 929 | + | |
| 930 | + | |
| 931 | +-- | |
| 932 | +-- Name: task_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 933 | +-- | |
| 934 | + | |
| 935 | +ALTER TABLE ONLY task | |
| 936 | + ADD CONSTRAINT task_project_id_fkey FOREIGN KEY (project_id) REFERENCES project(id) ON DELETE CASCADE; | |
| 937 | + | |
| 938 | + | |
| 939 | +-- | |
| 940 | +-- Name: task_run_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 941 | +-- | |
| 942 | + | |
| 943 | +ALTER TABLE ONLY task_run | |
| 944 | + ADD CONSTRAINT task_run_project_id_fkey FOREIGN KEY (project_id) REFERENCES project(id); | |
| 945 | + | |
| 946 | + | |
| 947 | +-- | |
| 948 | +-- Name: task_run_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 949 | +-- | |
| 950 | + | |
| 951 | +ALTER TABLE ONLY task_run | |
| 952 | + ADD CONSTRAINT task_run_task_id_fkey FOREIGN KEY (task_id) REFERENCES task(id) ON DELETE CASCADE; | |
| 953 | + | |
| 954 | + | |
| 955 | +-- | |
| 956 | +-- Name: task_run_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 957 | +-- | |
| 958 | + | |
| 959 | +ALTER TABLE ONLY task_run | |
| 960 | + ADD CONSTRAINT task_run_user_id_fkey FOREIGN KEY (user_id) REFERENCES "user"(id); | |
| 961 | + | |
| 962 | + | |
| 963 | +-- | |
| 964 | +-- Name: user_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 965 | +-- | |
| 966 | + | |
| 967 | +ALTER TABLE ONLY "user" | |
| 968 | + ADD CONSTRAINT user_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES profile(id); | |
| 969 | + | |
| 970 | + | |
| 971 | +-- | |
| 972 | +-- Name: webhook_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: pybossa | |
| 973 | +-- | |
| 974 | + | |
| 975 | +ALTER TABLE ONLY webhook | |
| 976 | + ADD CONSTRAINT webhook_project_id_fkey FOREIGN KEY (project_id) REFERENCES project(id) ON DELETE CASCADE; | |
| 977 | + | |
| 978 | + | |
| 979 | +-- | |
| 980 | +-- Name: public; Type: ACL; Schema: -; Owner: postgres | |
| 981 | +-- | |
| 982 | + | |
| 983 | +REVOKE ALL ON SCHEMA public FROM PUBLIC; | |
| 984 | +REVOKE ALL ON SCHEMA public FROM postgres; | |
| 985 | +GRANT ALL ON SCHEMA public TO postgres; | |
| 986 | +GRANT ALL ON SCHEMA public TO PUBLIC; | |
| 987 | + | |
| 988 | + | |
| 989 | +-- | |
| 990 | +-- PostgreSQL database dump complete | |
| 991 | +-- | |
| 992 | + | ... | ... |