Changeset 1250
- Timestamp:
- 07/12/07 16:16:45 (6 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 5 modified
- 1 moved
-
CHANGELOG (modified) (2 diffs)
-
sql/dump_initial_data_postgres.sh (modified) (1 diff)
-
sql/restore_database.sh (modified) (2 diffs)
-
sql/sync_sql_for_svn.sh (moved) (moved from trunk/wifidog-auth/sql/sync_sql_for_cvs.sh)
-
sql/wifidog-postgres-initial-data.sql (modified) (7 diffs)
-
sql/wifidog-postgres-schema.sql (modified) (152 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/CHANGELOG
r1248 r1250 1 2007-06-12 Benoit Grégoire <bock@step.polymtl.ca> 2 -This is a behemoth "the road to 1.0" commit. I've been working on this for 6 months, 3 and it's reached the point where others can help. Those are very far reaching changes, please 4 notify me if anything isn't working right (and im sure I can't have caught everything). 5 * Completely revamp exception handling, all exceptions are now trapped and handled centrally. 6 * Major changes in the login process to allow repeating a request after a time out or missing permission exception. 7 * New user roles architecture, as described in https://dev.wifidog.org/wiki/doc/developer/UserRolesArchitecture 8 Mostly complete. Missing parts are Content stakeholders, system roles and "su" functionnality. 9 I need help replacing all the DEPRECATED* methods. Please read the wiki page above for instructions. 10 * generic_object_admin.php: More work towards making it generic once again. 11 * GenericDataObject: New class. Eventually, most classes should extend this, instead of directly implementing GenericObject 12 * Menu.php: Finally a uniform Menuing system to replace the mismatch of links that made wifidog 13 impossible to navigate. It's not very sophisticated yet, but it IS permission aware 14 Loosely inspired from Drupal's menuing system. HTML is slightly modified "Son of suckerfish", 15 so will be easy to style (althouh I haven't had time yet). 16 Actual menus are added in the hook_menu methods of each class. 17 * VirtualHost.php: Finally properly split off Virtual Hosts, and make Server a singleton. 18 * install.php: Do the bare minimum changes so it's still possible to setup a wifidog auth server. 19 However, install.php still needs 1- A good overhaull, 2- A way to install sample databases instead of the minimal one. 20 -Other changes 21 * Unbreak signup link for non-javascript enabled devices 22 * FlickrPhotostream: Check CURL, which is a mandatory dependency of Flickr 23 * AbstractDb: Improve debuging features 24 * *:getObject(): Hopefully improve performance of class caching by making sure 25 that we do not manipulate different objects. Otherwise copies would be generated as soon as we change properties, wasting much memory. 26 * Add dependency check for XSL module for hotspot_status.php. 27 * Some work towards respecting the coding style: http://dev.wifidog.org/wiki/doc/developer/CodingStandard 28 * wifidog/admin/index.php: Delete admin page. There is no longuer a concept of a separate admin section. Menu will depend on your access level. 29 1 30 2007-07-11 Benoit Gréoire <bock@step.polymtl.ca> 2 31 * path_defines_url_content.php: Fix #348 … … 5 34 * wifidog/signup.php: Notify the user of the allowed characters. 6 35 * Add Bulgarian translation from "Nikola Petrov" <nvp.online A T gmail.com> 7 * config_available_languages: Centrali se the list there so that there is only one to modify everytime we add a translation8 36 * config_available_languages: Centralize the list there so that there is only one to modify everytime we add a translation 37 9 38 2007-06-12 Benoit Gréoire <bock@step.polymtl.ca> 10 39 * IE6 layout workarounds (not perfect, but better) -
trunk/wifidog-auth/sql/dump_initial_data_postgres.sh
r1176 r1250 4 4 5 5 pg_dump -a -D --username=wifidog -t token_status 6 7 6 pg_dump -a -D --username=wifidog -t venue_types 8 7 pg_dump -a -D --username=wifidog -t node_deployment_status 9 8 pg_dump -a -D --username=wifidog -t content_available_display_areas 10 9 pg_dump -a -D --username=wifidog -t content_available_display_pages 11 echo "INSERT INTO networks (network_id, is_default_network, network_authenticator_class, network_authenticator_params) VALUES ('default-network', true, 'AuthenticatorLocalUser', '\'default-network\'');"; 10 pg_dump -a -D --username=wifidog -t stakeholder_types 11 12 echo "INSERT INTO networks (network_id, network_authenticator_class, network_authenticator_params) VALUES ('default-network', 'AuthenticatorLocalUser', '\'default-network\'');"; 12 13 echo "INSERT INTO nodes (network_id, node_id, gw_id, name) VALUES ('default-network', 'default', 'default', 'My first node');" 13 echo "INSERT INTO servers (server_id, is_default_server, name) VALUES ('localhost', true, default);" 14 echo "INSERT INTO virtual_hosts (virtual_host_id, hostname, default_network) VALUES ('DEFAULT_VHOST', 'localhost', 'default-network');"; 15 echo "INSERT INTO server (server_id, default_virtual_host) VALUES ('SERVER_ID', 'DEFAULT_VHOST');"; 16 echo "INSERT into roles (role_id, stakeholder_type_id) VALUES ('SERVER_SYSADMIN', 'Server');"; 17 echo "INSERT into roles (role_id, stakeholder_type_id) VALUES ('NETWORK_SYSADMIN', 'Network');"; 14 18 15 19 pg_dump -a -D --username=wifidog -t schema_info -
trunk/wifidog-auth/sql/restore_database.sh
r1146 r1250 13 13 read delete_confirm 14 14 if [ $delete_confirm = "y" -o $delete_confirm = "Y" ] ; then 15 cmd="dropdb -U $ USERNAME$DATABASE_NAME"15 cmd="dropdb -U $SUPERUSER $DATABASE_NAME" 16 16 echo $cmd 17 17 $cmd … … 52 52 53 53 54 echo "Do I need to Addingthe plpgsql language to database (as the admin user)? (y/n)"54 echo "Do I need to add the plpgsql language to database (as the admin user)? (y/n)" 55 55 read add_plpgsql_confirm 56 56 if [ $add_plpgsql_confirm = "y" -o $add_plpgsql_confirm = "Y" ] ; then -
trunk/wifidog-auth/sql/wifidog-postgres-initial-data.sql
r1176 r1250 5 5 6 6 SET client_encoding = 'UTF8'; 7 SET check_function_bodies = false; 8 SET client_min_messages = warning; 7 SET standard_conforming_strings = off; 8 SET check_function_bodies = false; 9 SET client_min_messages = warning; 10 SET escape_string_warning = off; 9 11 10 12 SET search_path = public, pg_catalog; … … 28 30 29 31 SET client_encoding = 'UTF8'; 30 SET check_function_bodies = false; 31 SET client_min_messages = warning; 32 SET standard_conforming_strings = off; 33 SET check_function_bodies = false; 34 SET client_min_messages = warning; 35 SET escape_string_warning = off; 32 36 33 37 SET search_path = public, pg_catalog; … … 82 86 83 87 SET client_encoding = 'UTF8'; 84 SET check_function_bodies = false; 85 SET client_min_messages = warning; 88 SET standard_conforming_strings = off; 89 SET check_function_bodies = false; 90 SET client_min_messages = warning; 91 SET escape_string_warning = off; 86 92 87 93 SET search_path = public, pg_catalog; … … 108 114 109 115 SET client_encoding = 'UTF8'; 110 SET check_function_bodies = false; 111 SET client_min_messages = warning; 116 SET standard_conforming_strings = off; 117 SET check_function_bodies = false; 118 SET client_min_messages = warning; 119 SET escape_string_warning = off; 112 120 113 121 SET search_path = public, pg_catalog; … … 139 147 140 148 SET client_encoding = 'UTF8'; 141 SET check_function_bodies = false; 142 SET client_min_messages = warning; 149 SET standard_conforming_strings = off; 150 SET check_function_bodies = false; 151 SET client_min_messages = warning; 152 SET escape_string_warning = off; 143 153 144 154 SET search_path = public, pg_catalog; … … 157 167 -- 158 168 159 INSERT INTO networks (network_id, is_default_network, network_authenticator_class, network_authenticator_params) VALUES ('default-network', true, 'AuthenticatorLocalUser', '\'default-network\''); 169 -- 170 -- PostgreSQL database dump 171 -- 172 173 SET client_encoding = 'UTF8'; 174 SET standard_conforming_strings = off; 175 SET check_function_bodies = false; 176 SET client_min_messages = warning; 177 SET escape_string_warning = off; 178 179 SET search_path = public, pg_catalog; 180 181 -- 182 -- Data for Name: stakeholder_types; Type: TABLE DATA; Schema: public; Owner: wifidog 183 -- 184 185 INSERT INTO stakeholder_types (stakeholder_type_id) VALUES ('Node'); 186 INSERT INTO stakeholder_types (stakeholder_type_id) VALUES ('Network'); 187 INSERT INTO stakeholder_types (stakeholder_type_id) VALUES ('Server'); 188 INSERT INTO stakeholder_types (stakeholder_type_id) VALUES ('Content'); 189 190 191 -- 192 -- PostgreSQL database dump complete 193 -- 194 195 INSERT INTO networks (network_id, network_authenticator_class, network_authenticator_params) VALUES ('default-network', 'AuthenticatorLocalUser', '\'default-network\''); 160 196 INSERT INTO nodes (network_id, node_id, gw_id, name) VALUES ('default-network', 'default', 'default', 'My first node'); 161 INSERT INTO servers (server_id, is_default_server, name) VALUES ('localhost', true, default); 162 -- 163 -- PostgreSQL database dump 164 -- 165 166 SET client_encoding = 'UTF8'; 167 SET check_function_bodies = false; 168 SET client_min_messages = warning; 197 INSERT INTO virtual_hosts (virtual_host_id, hostname, default_network) VALUES ('DEFAULT_VHOST', 'localhost', 'default-network'); 198 INSERT INTO server (server_id, default_virtual_host) VALUES ('SERVER_ID', 'DEFAULT_VHOST'); 199 INSERT into roles (role_id, stakeholder_type_id) VALUES ('SERVER_SYSADMIN', 'Server'); 200 INSERT into roles (role_id, stakeholder_type_id) VALUES ('NETWORK_SYSADMIN', 'Network'); 201 -- 202 -- PostgreSQL database dump 203 -- 204 205 SET client_encoding = 'UTF8'; 206 SET standard_conforming_strings = off; 207 SET check_function_bodies = false; 208 SET client_min_messages = warning; 209 SET escape_string_warning = off; 169 210 170 211 SET search_path = public, pg_catalog; … … 174 215 -- 175 216 176 INSERT INTO schema_info (tag, value) VALUES ('schema_version', '53'); 177 178 179 -- 180 -- PostgreSQL database dump complete 181 -- 182 183 -- 184 -- PostgreSQL database dump 185 -- 186 187 SET client_encoding = 'UTF8'; 188 SET check_function_bodies = false; 189 SET client_min_messages = warning; 217 INSERT INTO schema_info (tag, value) VALUES ('schema_version', '54'); 218 219 220 -- 221 -- PostgreSQL database dump complete 222 -- 223 224 -- 225 -- PostgreSQL database dump 226 -- 227 228 SET client_encoding = 'UTF8'; 229 SET standard_conforming_strings = off; 230 SET check_function_bodies = false; 231 SET client_min_messages = warning; 232 SET escape_string_warning = off; 190 233 191 234 SET search_path = public, pg_catalog; -
trunk/wifidog-auth/sql/wifidog-postgres-schema.sql
r1176 r1250 4 4 5 5 SET client_encoding = 'UTF8'; 6 SET standard_conforming_strings = off; 6 7 SET check_function_bodies = false; 7 8 SET client_min_messages = warning; 8 9 -- 10 -- Name: wifidog; Type: DATABASE; Schema: -; Owner: wifidog 9 SET escape_string_warning = off; 10 11 -- 12 -- Name: wifidog; Type: DATABASE; Schema: -; Owner: - 11 13 -- 12 14 … … 17 19 18 20 SET client_encoding = 'UTF8'; 21 SET standard_conforming_strings = off; 19 22 SET check_function_bodies = false; 20 23 SET client_min_messages = warning; 21 22 -- 23 -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres 24 SET escape_string_warning = off; 25 26 -- 27 -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: - 24 28 -- 25 29 … … 27 31 28 32 33 -- 34 -- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: - 35 -- 36 37 CREATE PROCEDURAL LANGUAGE plpgsql; 38 39 29 40 SET search_path = public, pg_catalog; 30 41 … … 34 45 35 46 -- 36 -- Name: administrators; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 37 -- 38 39 CREATE TABLE administrators ( 40 user_id character varying(45) DEFAULT ''::character varying NOT NULL 41 ); 42 43 44 -- 45 -- Name: connections; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 47 -- Name: connections; Type: TABLE; Schema: public; Owner: -; Tablespace: 46 48 -- 47 49 48 50 CREATE TABLE connections ( 49 conn_id serialNOT NULL,51 conn_id integer NOT NULL, 50 52 token character varying(32) DEFAULT ''::character varying NOT NULL, 51 53 token_status character varying(10) DEFAULT 'UNUSED'::character varying NOT NULL, … … 64 66 65 67 -- 66 -- Name: content; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 68 -- Name: connections_conn_id_seq; Type: SEQUENCE; Schema: public; Owner: - 69 -- 70 71 CREATE SEQUENCE connections_conn_id_seq 72 INCREMENT BY 1 73 NO MAXVALUE 74 NO MINVALUE 75 CACHE 1; 76 77 78 -- 79 -- Name: connections_conn_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - 80 -- 81 82 ALTER SEQUENCE connections_conn_id_seq OWNED BY connections.conn_id; 83 84 85 -- 86 -- Name: content; Type: TABLE; Schema: public; Owner: -; Tablespace: 67 87 -- 68 88 … … 83 103 84 104 -- 85 -- Name: content_available_display_areas; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:105 -- Name: content_available_display_areas; Type: TABLE; Schema: public; Owner: -; Tablespace: 86 106 -- 87 107 … … 92 112 93 113 -- 94 -- Name: content_available_display_pages; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:114 -- Name: content_available_display_pages; Type: TABLE; Schema: public; Owner: -; Tablespace: 95 115 -- 96 116 … … 103 123 104 124 -- 105 -- Name: content_clickthrough_log; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:125 -- Name: content_clickthrough_log; Type: TABLE; Schema: public; Owner: -; Tablespace: 106 126 -- 107 127 … … 121 141 122 142 -- 123 -- Name: content_display_log; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:143 -- Name: content_display_log; Type: TABLE; Schema: public; Owner: -; Tablespace: 124 144 -- 125 145 … … 135 155 136 156 -- 137 -- Name: content_embedded_content; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:157 -- Name: content_embedded_content; Type: TABLE; Schema: public; Owner: -; Tablespace: 138 158 -- 139 159 … … 148 168 149 169 -- 150 -- Name: content_file; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:170 -- Name: content_file; Type: TABLE; Schema: public; Owner: -; Tablespace: 151 171 -- 152 172 … … 163 183 164 184 -- 165 -- Name: content_file_image; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:185 -- Name: content_file_image; Type: TABLE; Schema: public; Owner: -; Tablespace: 166 186 -- 167 187 … … 175 195 176 196 -- 177 -- Name: content_flickr_photostream; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:197 -- Name: content_flickr_photostream; Type: TABLE; Schema: public; Owner: -; Tablespace: 178 198 -- 179 199 … … 204 224 205 225 -- 206 -- Name: content_group; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:226 -- Name: content_group; Type: TABLE; Schema: public; Owner: -; Tablespace: 207 227 -- 208 228 … … 218 238 219 239 -- 220 -- Name: content_group_element; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:240 -- Name: content_group_element; Type: TABLE; Schema: public; Owner: -; Tablespace: 221 241 -- 222 242 … … 233 253 234 254 -- 235 -- Name: content_group_element_has_allowed_nodes; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:255 -- Name: content_group_element_has_allowed_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace: 236 256 -- 237 257 … … 244 264 245 265 -- 246 -- Name: content_has_owners; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:266 -- Name: content_has_owners; Type: TABLE; Schema: public; Owner: -; Tablespace: 247 267 -- 248 268 … … 256 276 257 277 -- 258 -- Name: content_iframe; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:278 -- Name: content_iframe; Type: TABLE; Schema: public; Owner: -; Tablespace: 259 279 -- 260 280 … … 270 290 271 291 -- 272 -- Name: content_key_value_pairs; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:292 -- Name: content_key_value_pairs; Type: TABLE; Schema: public; Owner: -; Tablespace: 273 293 -- 274 294 … … 283 303 284 304 -- 285 -- Name: content_langstring_entries; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:305 -- Name: content_langstring_entries; Type: TABLE; Schema: public; Owner: -; Tablespace: 286 306 -- 287 307 … … 295 315 296 316 -- 297 -- Name: content_rss_aggregator; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:317 -- Name: content_rss_aggregator; Type: TABLE; Schema: public; Owner: -; Tablespace: 298 318 -- 299 319 … … 310 330 311 331 -- 312 -- Name: content_rss_aggregator_feeds; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:332 -- Name: content_rss_aggregator_feeds; Type: TABLE; Schema: public; Owner: -; Tablespace: 313 333 -- 314 334 … … 325 345 326 346 -- 327 -- Name: content_shoutbox_messages; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:347 -- Name: content_shoutbox_messages; Type: TABLE; Schema: public; Owner: -; Tablespace: 328 348 -- 329 349 … … 338 358 339 359 -- 340 -- Name: content_type_filters; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:360 -- Name: content_type_filters; Type: TABLE; Schema: public; Owner: -; Tablespace: 341 361 -- 342 362 … … 352 372 353 373 -- 354 -- Name: locales; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:374 -- Name: locales; Type: TABLE; Schema: public; Owner: -; Tablespace: 355 375 -- 356 376 … … 361 381 362 382 -- 363 -- Name: network_has_content; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:383 -- Name: network_has_content; Type: TABLE; Schema: public; Owner: -; Tablespace: 364 384 -- 365 385 … … 377 397 378 398 -- 379 -- Name: network_has_profile_templates; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:399 -- Name: network_has_profile_templates; Type: TABLE; Schema: public; Owner: -; Tablespace: 380 400 -- 381 401 … … 386 406 387 407 408 -- 409 -- Name: stakeholders; Type: TABLE; Schema: public; Owner: -; Tablespace: 410 -- 411 412 CREATE TABLE stakeholders ( 413 user_id text NOT NULL, 414 role_id text NOT NULL, 415 object_id text NOT NULL, 416 CONSTRAINT user_has_roles_objct_id_not_empty_string CHECK ((object_id <> ''::text)) 417 ); 418 419 420 -- 421 -- Name: network_stakeholders; Type: TABLE; Schema: public; Owner: -; Tablespace: 422 -- 423 424 CREATE TABLE network_stakeholders ( 425 ) 426 INHERITS (stakeholders); 427 428 388 429 SET default_with_oids = true; 389 430 390 431 -- 391 -- Name: network_stakeholders; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 392 -- 393 394 CREATE TABLE network_stakeholders ( 395 network_id text NOT NULL, 396 user_id character varying(45) NOT NULL, 397 is_admin boolean DEFAULT false NOT NULL, 398 is_stat_viewer boolean DEFAULT false NOT NULL 399 ); 400 401 402 -- 403 -- Name: networks; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 432 -- Name: networks; Type: TABLE; Schema: public; Owner: -; Tablespace: 404 433 -- 405 434 … … 408 437 network_authenticator_class text NOT NULL, 409 438 network_authenticator_params text, 410 is_default_network boolean DEFAULT false NOT NULL,411 439 name text DEFAULT 'Unnamed network'::text NOT NULL, 412 440 creation_date date DEFAULT now() NOT NULL, … … 433 461 434 462 -- 435 -- Name: node_deployment_status; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:463 -- Name: node_deployment_status; Type: TABLE; Schema: public; Owner: -; Tablespace: 436 464 -- 437 465 … … 444 472 445 473 -- 446 -- Name: node_has_content; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:474 -- Name: node_has_content; Type: TABLE; Schema: public; Owner: -; Tablespace: 447 475 -- 448 476 … … 457 485 458 486 459 -- 460 -- Name: node_stakeholders; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 487 SET default_with_oids = false; 488 489 -- 490 -- Name: node_stakeholders; Type: TABLE; Schema: public; Owner: -; Tablespace: 461 491 -- 462 492 463 493 CREATE TABLE node_stakeholders ( 464 node_id character varying(32) NOT NULL, 465 user_id character varying(45) NOT NULL, 466 is_owner boolean DEFAULT false NOT NULL, 467 is_tech_officer boolean DEFAULT false NOT NULL 468 ); 469 470 471 -- 472 -- Name: nodes; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 494 ) 495 INHERITS (stakeholders); 496 497 498 SET default_with_oids = true; 499 500 -- 501 -- Name: nodes; Type: TABLE; Schema: public; Owner: -; Tablespace: 473 502 -- 474 503 … … 510 539 511 540 -- 512 -- Name: profile_fields; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 541 -- Name: permissions; Type: TABLE; Schema: public; Owner: -; Tablespace: 542 -- 543 544 CREATE TABLE permissions ( 545 permission_id text NOT NULL, 546 stakeholder_type_id text NOT NULL, 547 CONSTRAINT permission_rules_id_not_empty_string CHECK ((permission_id <> ''::text)) 548 ); 549 550 551 -- 552 -- Name: profile_fields; Type: TABLE; Schema: public; Owner: -; Tablespace: 513 553 -- 514 554 … … 523 563 524 564 -- 525 -- Name: profile_template_fields; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:565 -- Name: profile_template_fields; Type: TABLE; Schema: public; Owner: -; Tablespace: 526 566 -- 527 567 … … 538 578 539 579 -- 540 -- Name: profile_templates; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:580 -- Name: profile_templates; Type: TABLE; Schema: public; Owner: -; Tablespace: 541 581 -- 542 582 … … 549 589 550 590 -- 551 -- Name: profiles; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:591 -- Name: profiles; Type: TABLE; Schema: public; Owner: -; Tablespace: 552 592 -- 553 593 … … 560 600 561 601 602 -- 603 -- Name: role_has_permissions; Type: TABLE; Schema: public; Owner: -; Tablespace: 604 -- 605 606 CREATE TABLE role_has_permissions ( 607 role_id text NOT NULL, 608 permission_id text NOT NULL 609 ); 610 611 612 -- 613 -- Name: roles; Type: TABLE; Schema: public; Owner: -; Tablespace: 614 -- 615 616 CREATE TABLE roles ( 617 role_id text NOT NULL, 618 role_description_content_id text, 619 is_system_role boolean DEFAULT false NOT NULL, 620 stakeholder_type_id text NOT NULL, 621 role_creation_date timestamp without time zone DEFAULT now(), 622 CONSTRAINT roles_rules_id_not_empty_string CHECK ((role_id <> ''::text)) 623 ); 624 625 562 626 SET default_with_oids = true; 563 627 564 628 -- 565 -- Name: schema_info; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:629 -- Name: schema_info; Type: TABLE; Schema: public; Owner: -; Tablespace: 566 630 -- 567 631 … … 572 636 573 637 574 -- 575 -- Name: servers; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 576 -- 577 578 CREATE TABLE servers ( 638 SET default_with_oids = false; 639 640 -- 641 -- Name: server; Type: TABLE; Schema: public; Owner: -; Tablespace: 642 -- 643 644 CREATE TABLE server ( 579 645 server_id text NOT NULL, 580 is_default_server boolean DEFAULT false NOT NULL,581 name text DEFAULT 'Unnamed server'::text NOT NULL,582 646 creation_date date DEFAULT now() NOT NULL, 583 hostname text DEFAULT 'localhost'::text NOT NULL, 584 ssl_available boolean DEFAULT false NOT NULL, 585 gmaps_api_key text, 586 CONSTRAINT servers_hostname CHECK ((name <> ''::text)), 587 CONSTRAINT servers_name CHECK ((name <> ''::text)) 588 ); 589 590 591 -- 592 -- Name: token_status; Type: TABLE; Schema: public; Owner: wifidog; Tablespace: 647 default_virtual_host text NOT NULL 648 ); 649 650 651 -- 652 -- Name: server_stakeholders; Type: TABLE; Schema: public; Owner: -; Tablespace: 653 -- 654 655 CREATE TABLE server_stakeholders ( 656 ) 657 INHERITS (stakeholders); 658 659 660 -- 661 -- Name: stakeholder_types; Type: TABLE; Schema: public; Owner: -; Tablespace: 662 -- 663 664 CREATE TABLE stakeholder_types ( 665 stakeholder_type_id text NOT NULL, 666 CONSTRAINT stakeholder_types_id_not_empty_string CHECK ((stakeholder_type_id <> ''::text)) 667 ); 668 669 670 SET default_with_oids = true; 671 672 -- 673 -- Name: token_status; Type: TABLE; Schema: public; Owner: -; Tablespace: 593 674 -- 594 675 … … 599 680 600 681 -- 601 -- Name: user_has_content; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:682 -- Name: user_has_content; Type: TABLE; Schema: public; Owner: -; Tablespace: 602 683 -- 603 684 … … 612 693 613 694 -- 614 -- Name: user_has_profiles; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:695 -- Name: user_has_profiles; Type: TABLE; Schema: public; Owner: -; Tablespace: 615 696 -- 616 697 … … 624 705 625 706 -- 626 -- Name: users; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:707 -- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace: 627 708 -- 628 709 … … 645 726 646 727 -- 647 -- Name: venue_types; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:728 -- Name: venue_types; Type: TABLE; Schema: public; Owner: -; Tablespace: 648 729 -- 649 730 … … 654 735 655 736 -- 656 -- Name: venues; Type: TABLE; Schema: public; Owner: wifidog; Tablespace:737 -- Name: venues; Type: TABLE; Schema: public; Owner: -; Tablespace: 657 738 -- 658 739 … … 664 745 665 746 -- 666 -- Name: administrators_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace: 667 -- 668 669 ALTER TABLE ONLY administrators 670 ADD CONSTRAINT administrators_pkey PRIMARY KEY (user_id); 671 672 673 -- 674 -- Name: connections_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace: 747 -- Name: virtual_hosts; Type: TABLE; Schema: public; Owner: -; Tablespace: 748 -- 749 750 CREATE TABLE virtual_hosts ( 751 virtual_host_id text NOT NULL, 752 hostname text NOT NULL, 753 creation_date date DEFAULT now() NOT NULL, 754 ssl_available boolean DEFAULT false NOT NULL, 755 gmaps_api_key text, 756 default_network text NOT NULL, 757 CONSTRAINT virtual_hosts_hostname_check CHECK ((hostname <> ''::text)) 758 ); 759 760 761 -- 762 -- Name: conn_id; Type: DEFAULT; Schema: public; Owner: - 763 -- 764 765 ALTER TABLE connections ALTER COLUMN conn_id SET DEFAULT nextval('connections_conn_id_seq'::regclass); 766 767 768 -- 769 -- Name: connections_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 675 770 -- 676 771 … … 680 775 681 776 -- 682 -- Name: content_available_display_areas_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:777 -- Name: content_available_display_areas_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 683 778 -- 684 779 … … 688 783 689 784 -- 690 -- Name: content_clickthrough_log_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:785 -- Name: content_clickthrough_log_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 691 786 -- 692 787 … … 696 791 697 792 -- 698 -- Name: content_display_location_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:793 -- Name: content_display_location_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 699 794 -- 700 795 … … 704 799 705 800 -- 706 -- Name: content_display_log_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:801 -- Name: content_display_log_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 707 802 -- 708 803 … … 712 807 713 808 -- 714 -- Name: content_group_element_has_allowed_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:809 -- Name: content_group_element_has_allowed_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 715 810 -- 716 811 … … 720 815 721 816 -- 722 -- Name: content_group_element_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:817 -- Name: content_group_element_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 723 818 -- 724 819 … … 728 823 729 824 -- 730 -- Name: content_group_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:825 -- Name: content_group_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 731 826 -- 732 827 … … 736 831 737 832 -- 738 -- Name: content_has_owners_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:833 -- Name: content_has_owners_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 739 834 -- 740 835 … … 744 839 745 840 -- 746 -- Name: content_key_value_pairs_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:841 -- Name: content_key_value_pairs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 747 842 -- 748 843 … … 752 847 753 848 -- 754 -- Name: content_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:849 -- Name: content_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 755 850 -- 756 851 … … 760 855 761 856 -- 762 -- Name: content_rss_aggregator_feeds_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:857 -- Name: content_rss_aggregator_feeds_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 763 858 -- 764 859 … … 768 863 769 864 -- 770 -- Name: content_rss_aggregator_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:865 -- Name: content_rss_aggregator_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 771 866 -- 772 867 … … 776 871 777 872 -- 778 -- Name: content_shoutbox_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:873 -- Name: content_shoutbox_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 779 874 -- 780 875 … … 784 879 785 880 -- 786 -- Name: content_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:881 -- Name: content_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 787 882 -- 788 883 … … 792 887 793 888 -- 794 -- Name: files_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:889 -- Name: files_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 795 890 -- 796 891 … … 800 895 801 896 -- 802 -- Name: flickr_photostream_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:897 -- Name: flickr_photostream_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 803 898 -- 804 899 … … 808 903 809 904 -- 810 -- Name: iframes_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:905 -- Name: iframes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 811 906 -- 812 907 … … 816 911 817 912 -- 818 -- Name: langstring_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:913 -- Name: langstring_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 819 914 -- 820 915 … … 824 919 825 920 -- 826 -- Name: locales_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:921 -- Name: locales_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 827 922 -- 828 923 … … 832 927 833 928 -- 834 -- Name: network_has_content_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:929 -- Name: network_has_content_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 835 930 -- 836 931 … … 840 935 841 936 -- 842 -- Name: network_has_profile_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:937 -- Name: network_has_profile_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 843 938 -- 844 939 … … 848 943 849 944 -- 850 -- Name: network_stakeholders_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:945 -- Name: network_stakeholders_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 851 946 -- 852 947 853 948 ALTER TABLE ONLY network_stakeholders 854 ADD CONSTRAINT network_stakeholders_pkey PRIMARY KEY ( network_id, user_id);855 856 857 -- 858 -- Name: networks_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:949 ADD CONSTRAINT network_stakeholders_pkey PRIMARY KEY (user_id, role_id, object_id); 950 951 952 -- 953 -- Name: networks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 859 954 -- 860 955 … … 864 959 865 960 -- 866 -- Name: node_deployment_status_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:961 -- Name: node_deployment_status_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 867 962 -- 868 963 … … 872 967 873 968 -- 874 -- Name: node_has_content_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:969 -- Name: node_has_content_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 875 970 -- 876 971 … … 880 975 881 976 -- 882 -- Name: node_stakeholders_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:977 -- Name: node_stakeholders_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 883 978 -- 884 979 885 980 ALTER TABLE ONLY node_stakeholders 886 ADD CONSTRAINT node_stakeholders_pkey PRIMARY KEY ( node_id, user_id);887 888 889 -- 890 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:981 ADD CONSTRAINT node_stakeholders_pkey PRIMARY KEY (user_id, role_id, object_id); 982 983 984 -- 985 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 891 986 -- 892 987 … … 896 991 897 992 -- 898 -- Name: pictures_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace: 993 -- Name: permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 994 -- 995 996 ALTER TABLE ONLY permissions 997 ADD CONSTRAINT permissions_pkey PRIMARY KEY (permission_id); 998 999 1000 -- 1001 -- Name: pictures_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 899 1002 -- 900 1003 … … 904 1007 905 1008 -- 906 -- Name: profile_fields_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:1009 -- Name: profile_fields_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 907 1010 -- 908 1011 … … 912 1015 913 1016 -- 914 -- Name: profile_template_fields_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:1017 -- Name: profile_template_fields_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 915 1018 -- 916 1019 … … 920 1023 921 1024 -- 922 -- Name: profile_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:1025 -- Name: profile_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 923 1026 -- 924 1027 … … 928 1031 929 1032 -- 930 -- Name: profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:1033 -- Name: profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 931 1034 -- 932 1035 … … 936 1039 937 1040 -- 938 -- Name: schema_info_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace: 1041 -- Name: role_has_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 1042 -- 1043 1044 ALTER TABLE ONLY role_has_permissions 1045 ADD CONSTRAINT role_has_permissions_pkey PRIMARY KEY (role_id, permission_id); 1046 1047 1048 -- 1049 -- Name: roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 1050 -- 1051 1052 ALTER TABLE ONLY roles 1053 ADD CONSTRAINT roles_pkey PRIMARY KEY (role_id); 1054 1055 1056 -- 1057 -- Name: schema_info_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 939 1058 -- 940 1059 … … 944 1063 945 1064 -- 946 -- Name: servers_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace: 947 -- 948 949 ALTER TABLE ONLY servers 950 ADD CONSTRAINT servers_pkey PRIMARY KEY (server_id); 951 952 953 -- 954 -- Name: token_status_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace: 1065 -- Name: server_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 1066 -- 1067 1068 ALTER TABLE ONLY server 1069 ADD CONSTRAINT server_pkey PRIMARY KEY (server_id); 1070 1071 1072 -- 1073 -- Name: server_stakeholders_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 1074 -- 1075 1076 ALTER TABLE ONLY server_stakeholders 1077 ADD CONSTRAINT server_stakeholders_pkey PRIMARY KEY (user_id, role_id, object_id); 1078 1079 1080 -- 1081 -- Name: stakeholder_types_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 1082 -- 1083 1084 ALTER TABLE ONLY stakeholder_types 1085 ADD CONSTRAINT stakeholder_types_pkey PRIMARY KEY (stakeholder_type_id); 1086 1087 1088 -- 1089 -- Name: stakeholders_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 1090 -- 1091 1092 ALTER TABLE ONLY stakeholders 1093 ADD CONSTRAINT stakeholders_pkey PRIMARY KEY (user_id, role_id, object_id); 1094 1095 1096 -- 1097 -- Name: token_status_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 955 1098 -- 956 1099 … … 960 1103 961 1104 -- 962 -- Name: user_has_content_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:1105 -- Name: user_has_content_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 963 1106 -- 964 1107 … … 968 1111 969 1112 -- 970 -- Name: user_has_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:1113 -- Name: user_has_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 971 1114 -- 972 1115 … … 976 1119 977 1120 -- 978 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:1121 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 979 1122 -- 980 1123 … … 984 1127 985 1128 -- 986 -- Name: venue_types_pkey; Type: CONSTRAINT; Schema: public; Owner: wifidog; Tablespace:1129 -- Name: venue_types_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 987 1130 -- 988 1131 … … 992 1135 993 1136 -- 994 -- Name: idx_connections_node_id; Type: INDEX; Schema: public; Owner: wifidog; Tablespace: 1137 -- Name: virtual_hosts_hostname_key; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 1138 -- 1139 1140 ALTER TABLE ONLY virtual_hosts 1141 ADD CONSTRAINT virtual_hosts_hostname_key UNIQUE (hostname); 1142 1143 1144 -- 1145 -- Name: virtual_hosts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 1146 -- 1147 1148 ALTER TABLE ONLY virtual_hosts 1149 ADD CONSTRAINT virtual_hosts_pkey PRIMARY KEY (virtual_host_id); 1150 1151 1152 -- 1153 -- Name: idx_connections_node_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 995 1154 -- 996 1155 … … 999 1158 1000 1159 -- 1001 -- Name: idx_connections_user_id; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1160 -- Name: idx_connections_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 1002 1161 -- 1003 1162 … … 1006 1165 1007 1166 -- 1008 -- Name: idx_connections_user_mac; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1167 -- Name: idx_connections_user_mac; Type: INDEX; Schema: public; Owner: -; Tablespace: 1009 1168 -- 1010 1169 … … 1013 1172 1014 1173 -- 1015 -- Name: idx_content_group_element_content_group_id; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1174 -- Name: idx_content_group_element_content_group_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 1016 1175 -- 1017 1176 … … 1020 1179 1021 1180 -- 1022 -- Name: idx_content_group_element_valid_from_timestamp; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1181 -- Name: idx_content_group_element_valid_from_timestamp; Type: INDEX; Schema: public; Owner: -; Tablespace: 1023 1182 -- 1024 1183 … … 1027 1186 1028 1187 -- 1029 -- Name: idx_content_group_element_valid_until_timestamp; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1188 -- Name: idx_content_group_element_valid_until_timestamp; Type: INDEX; Schema: public; Owner: -; Tablespace: 1030 1189 -- 1031 1190 … … 1034 1193 1035 1194 -- 1036 -- Name: idx_gw_id; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1195 -- Name: idx_gw_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 1037 1196 -- 1038 1197 … … 1041 1200 1042 1201 -- 1043 -- Name: idx_token; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1202 -- Name: idx_token; Type: INDEX; Schema: public; Owner: -; Tablespace: 1044 1203 -- 1045 1204 … … 1048 1207 1049 1208 -- 1050 -- Name: idx_token_status_and_user_id; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1209 -- Name: idx_token_status_and_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 1051 1210 -- 1052 1211 … … 1055 1214 1056 1215 -- 1057 -- Name: idx_unique_username_and_account_origin; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1216 -- Name: idx_unique_username_and_account_origin; Type: INDEX; Schema: public; Owner: -; Tablespace: 1058 1217 -- 1059 1218 … … 1062 1221 1063 1222 -- 1064 -- Name: profile_template_fields_semantic_id; Type: INDEX; Schema: public; Owner: wifidog; Tablespace:1223 -- Name: profile_template_fields_semantic_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 1065 1224 -- 1066 1225 … … 1069 1228 1070 1229 -- 1071 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1230 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1072 1231 -- 1073 1232 … … 1077 1236 1078 1237 -- 1079 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1238 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1080 1239 -- 1081 1240 … … 1085 1244 1086 1245 -- 1087 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1246 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1088 1247 -- 1089 1248 … … 1093 1252 1094 1253 -- 1095 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1254 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1096 1255 -- 1097 1256 … … 1101 1260 1102 1261 -- 1103 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1262 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1104 1263 -- 1105 1264 … … 1109 1268 1110 1269 -- 1111 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1270 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1112 1271 -- 1113 1272 … … 1117 1276 1118 1277 -- 1119 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1278 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1120 1279 -- 1121 1280 … … 1125 1284 1126 1285 -- 1127 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1286 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1128 1287 -- 1129 1288 … … 1133 1292 1134 1293 -- 1135 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1294 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1136 1295 -- 1137 1296 … … 1141 1300 1142 1301 -- 1143 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1302 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1144 1303 -- 1145 1304 … … 1149 1308 1150 1309 -- 1151 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1310 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1152 1311 -- 1153 1312 … … 1157 1316 1158 1317 -- 1159 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1318 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1160 1319 -- 1161 1320 … … 1165 1324 1166 1325 -- 1167 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1326 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1168 1327 -- 1169 1328 … … 1173 1332 1174 1333 -- 1175 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1334 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1176 1335 -- 1177 1336 … … 1181 1340 1182 1341 -- 1183 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1342 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1184 1343 -- 1185 1344 … … 1189 1348 1190 1349 -- 1191 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1350 -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: - 1192 1351 -- 1193 1352 … … 1197 1356 1198 1357 -- 1199 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1358 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: - 1200 1359 -- 1201 1360 … … 1205 1364 1206 1365 -- 1207 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1366 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: - 1208 1367 -- 1209 1368 … … 1213 1372 1214 1373 -- 1215 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1374 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: - 1216 1375 -- 1217 1376 … … 1221 1380 1222 1381 -- 1223 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1382 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: - 1224 1383 -- 1225 1384 … … 1229 1388 1230 1389 -- 1231 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1390 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: - 1232 1391 -- 1233 1392 … … 1237 1396 1238 1397 -- 1239 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1398 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: - 1240 1399 -- 1241 1400 … … 1245 1404 1246 1405 -- 1247 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1406 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: - 1248 1407 -- 1249 1408 … … 1253 1412 1254 1413 -- 1255 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1414 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: - 1256 1415 -- 1257 1416 … … 1261 1420 1262 1421 -- 1263 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1422 -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: - 1264 1423 -- 1265 1424 … … 1269 1428 1270 1429 -- 1271 -- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1430 -- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: - 1272 1431 -- 1273 1432 … … 1277 1436 1278 1437 -- 1279 -- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1438 -- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: - 1280 1439 -- 1281 1440 … … 1285 1444 1286 1445 -- 1287 -- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1446 -- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: - 1288 1447 -- 1289 1448 … … 1293 1452 1294 1453 -- 1295 -- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1454 -- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: - 1296 1455 -- 1297 1456 … … 1301 1460 1302 1461 -- 1303 -- Name: $5; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1462 -- Name: $5; Type: FK CONSTRAINT; Schema: public; Owner: - 1304 1463 -- 1305 1464 … … 1309 1468 1310 1469 -- 1311 -- Name: account_origin_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1470 -- Name: account_origin_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1312 1471 -- 1313 1472 … … 1317 1476 1318 1477 -- 1319 -- Name: administrators_ibfk_1; Type: FK CONSTRAINT; Schema: public; Owner: wifidog 1320 -- 1321 1322 ALTER TABLE ONLY administrators 1323 ADD CONSTRAINT administrators_ibfk_1 FOREIGN KEY (user_id) REFERENCES users(user_id) ON UPDATE CASCADE ON DELETE CASCADE; 1324 1325 1326 -- 1327 -- Name: content_clickthrough_log_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog 1478 -- Name: content_clickthrough_log_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1328 1479 -- 1329 1480 … … 1333 1484 1334 1485 -- 1335 -- Name: content_clickthrough_log_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1486 -- Name: content_clickthrough_log_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1336 1487 -- 1337 1488 … … 1341 1492 1342 1493 -- 1343 -- Name: content_clickthrough_log_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1494 -- Name: content_clickthrough_log_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1344 1495 -- 1345 1496 … … 1349 1500 1350 1501 -- 1351 -- Name: content_key_value_pairs_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1502 -- Name: content_key_value_pairs_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1352 1503 -- 1353 1504 … … 1357 1508 1358 1509 -- 1359 -- Name: content_shoutbox_messages_author_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1510 -- Name: content_shoutbox_messages_author_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1360 1511 -- 1361 1512 … … 1365 1516 1366 1517 -- 1367 -- Name: content_shoutbox_messages_message_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1518 -- Name: content_shoutbox_messages_message_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1368 1519 -- 1369 1520 … … 1373 1524 1374 1525 -- 1375 -- Name: content_shoutbox_messages_origin_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1526 -- Name: content_shoutbox_messages_origin_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1376 1527 -- 1377 1528 … … 1381 1532 1382 1533 -- 1383 -- Name: content_shoutbox_messages_shoutbox_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1534 -- Name: content_shoutbox_messages_shoutbox_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1384 1535 -- 1385 1536 … … 1389 1540 1390 1541 -- 1391 -- Name: display_location_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1542 -- Name: display_location_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1392 1543 -- 1393 1544 … … 1397 1548 1398 1549 -- 1399 -- Name: display_location_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1550 -- Name: display_location_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1400 1551 -- 1401 1552 … … 1405 1556 1406 1557 -- 1407 -- Name: fk_network; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1558 -- Name: fk_network; Type: FK CONSTRAINT; Schema: public; Owner: - 1408 1559 -- 1409 1560 1410 1561 ALTER TABLE ONLY network_stakeholders 1411 ADD CONSTRAINT fk_network FOREIGN KEY (network_id) REFERENCES networks(network_id) ON UPDATE CASCADE ON DELETE CASCADE; 1412 1413 1414 -- 1415 -- Name: fk_node_deployment_status; Type: FK CONSTRAINT; Schema: public; Owner: wifidog 1562 ADD CONSTRAINT fk_network FOREIGN KEY (object_id) REFERENCES networks(network_id) ON UPDATE CASCADE ON DELETE CASCADE; 1563 1564 1565 -- 1566 -- Name: fk_network; Type: FK CONSTRAINT; Schema: public; Owner: - 1567 -- 1568 1569 ALTER TABLE ONLY server_stakeholders 1570 ADD CONSTRAINT fk_network FOREIGN KEY (object_id) REFERENCES server(server_id) ON UPDATE CASCADE ON DELETE CASCADE; 1571 1572 1573 -- 1574 -- Name: fk_node_deployment_status; Type: FK CONSTRAINT; Schema: public; Owner: - 1416 1575 -- 1417 1576 … … 1421 1580 1422 1581 -- 1423 -- Name: fk_nodes; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1582 -- Name: fk_nodes; Type: FK CONSTRAINT; Schema: public; Owner: - 1424 1583 -- 1425 1584 … … 1429 1588 1430 1589 -- 1431 -- Name: fk_users; Type: FK CONSTRAINT; Schema: public; Owner: wifidog 1590 -- Name: fk_nodes; Type: FK CONSTRAINT; Schema: public; Owner: - 1591 -- 1592 1593 ALTER TABLE ONLY node_stakeholders 1594 ADD CONSTRAINT fk_nodes FOREIGN KEY (object_id) REFERENCES nodes(node_id) ON UPDATE CASCADE ON DELETE CASCADE; 1595 1596 1597 -- 1598 -- Name: fk_users; Type: FK CONSTRAINT; Schema: public; Owner: - 1432 1599 -- 1433 1600 … … 1437 1604 1438 1605 -- 1439 -- Name: fk_users; Type: FK CONSTRAINT; Schema: public; Owner: wifidog 1440 -- 1441 1442 ALTER TABLE ONLY node_stakeholders 1443 ADD CONSTRAINT fk_users FOREIGN KEY (user_id) REFERENCES users(user_id) ON UPDATE CASCADE ON DELETE CASCADE; 1444 1445 1446 -- 1447 -- Name: fk_users; Type: FK CONSTRAINT; Schema: public; Owner: wifidog 1448 -- 1449 1450 ALTER TABLE ONLY network_stakeholders 1451 ADD CONSTRAINT fk_users FOREIGN KEY (user_id) REFERENCES users(user_id) ON UPDATE CASCADE ON DELETE CASCADE; 1452 1453 1454 -- 1455 -- Name: fk_venue_types; Type: FK CONSTRAINT; Schema: public; Owner: wifidog 1606 -- Name: fk_venue_types; Type: FK CONSTRAINT; Schema: public; Owner: - 1456 1607 -- 1457 1608 … … 1461 1612 1462 1613 -- 1463 -- Name: flickr_photostream_content_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1614 -- Name: flickr_photostream_content_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1464 1615 -- 1465 1616 … … 1469 1620 1470 1621 -- 1471 -- Name: network_has_profile_templates_network_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1622 -- Name: network_has_profile_templates_network_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1472 1623 -- 1473 1624 … … 1477 1628 1478 1629 -- 1479 -- Name: network_has_profile_templates_profile_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1630 -- Name: network_has_profile_templates_profile_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1480 1631 -- 1481 1632 … … 1485 1636 1486 1637 -- 1487 -- Name: network_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1638 -- Name: network_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1488 1639 -- 1489 1640 … … 1493 1644 1494 1645 -- 1495 -- Name: network_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1646 -- Name: network_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1496 1647 -- 1497 1648 … … 1501 1652 1502 1653 -- 1503 -- Name: nodes_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1504 -- 1505 1506 ALTER TABLE ONLY node_stakeholders1507 ADD CONSTRAINT nodes_fkey FOREIGN KEY (node_id) REFERENCES nodes(node_id) ON UPDATE CASCADE ON DELETE CASCADE;1508 1509 1510 -- 1511 -- Name: profile_fields_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1654 -- Name: permissions_stakeholder_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1655 -- 1656 1657 ALTER TABLE ONLY permissions 1658 ADD CONSTRAINT permissions_stakeholder_type_id_fkey FOREIGN KEY (stakeholder_type_id) REFERENCES stakeholder_types(stakeholder_type_id) ON UPDATE CASCADE ON DELETE CASCADE; 1659 1660 1661 -- 1662 -- Name: profile_fields_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1512 1663 -- 1513 1664 … … 1517 1668 1518 1669 -- 1519 -- Name: profile_fields_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1670 -- Name: profile_fields_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1520 1671 -- 1521 1672 … … 1525 1676 1526 1677 -- 1527 -- Name: profile_fields_profile_template_field_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1678 -- Name: profile_fields_profile_template_field_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1528 1679 -- 1529 1680 … … 1533 1684 1534 1685 -- 1535 -- Name: profile_template_fields_admin_label_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1686 -- Name: profile_template_fields_admin_label_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1536 1687 -- 1537 1688 … … 1541 1692 1542 1693 -- 1543 -- Name: profile_template_fields_content_type_filter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1694 -- Name: profile_template_fields_content_type_filter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1544 1695 -- 1545 1696 … … 1549 1700 1550 1701 -- 1551 -- Name: profile_template_fields_display_label_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1702 -- Name: profile_template_fields_display_label_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1552 1703 -- 1553 1704 … … 1557 1708 1558 1709 -- 1559 -- Name: profile_template_fields_profile_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1710 -- Name: profile_template_fields_profile_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1560 1711 -- 1561 1712 … … 1565 1716 1566 1717 -- 1567 -- Name: profiles_profile_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1718 -- Name: profiles_profile_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1568 1719 -- 1569 1720 … … 1573 1724 1574 1725 -- 1575 -- Name: user_has_profiles_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog 1726 -- Name: role_has_permissions_permission_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1727 -- 1728 1729 ALTER TABLE ONLY role_has_permissions 1730 ADD CONSTRAINT role_has_permissions_permission_id_fkey FOREIGN KEY (permission_id) REFERENCES permissions(permission_id) ON UPDATE CASCADE ON DELETE CASCADE; 1731 1732 1733 -- 1734 -- Name: role_has_permissions_role_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1735 -- 1736 1737 ALTER TABLE ONLY role_has_permissions 1738 ADD CONSTRAINT role_has_permissions_role_id_fkey FOREIGN KEY (role_id) REFERENCES roles(role_id) ON UPDATE CASCADE ON DELETE CASCADE; 1739 1740 1741 -- 1742 -- Name: roles_role_description_content_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1743 -- 1744 1745 ALTER TABLE ONLY roles 1746 ADD CONSTRAINT roles_role_description_content_id_fkey FOREIGN KEY (role_description_content_id) REFERENCES content(content_id) ON UPDATE CASCADE ON DELETE SET NULL; 1747 1748 1749 -- 1750 -- Name: roles_stakeholder_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1751 -- 1752 1753 ALTER TABLE ONLY roles 1754 ADD CONSTRAINT roles_stakeholder_type_id_fkey FOREIGN KEY (stakeholder_type_id) REFERENCES stakeholder_types(stakeholder_type_id) ON UPDATE CASCADE ON DELETE CASCADE; 1755 1756 1757 -- 1758 -- Name: server_default_virtual_host_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1759 -- 1760 1761 ALTER TABLE ONLY server 1762 ADD CONSTRAINT server_default_virtual_host_fkey FOREIGN KEY (default_virtual_host) REFERENCES virtual_hosts(virtual_host_id) ON UPDATE CASCADE ON DELETE RESTRICT; 1763 1764 1765 -- 1766 -- Name: stakeholders_role_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1767 -- 1768 1769 ALTER TABLE ONLY stakeholders 1770 ADD CONSTRAINT stakeholders_role_id_fkey FOREIGN KEY (role_id) REFERENCES roles(role_id) ON UPDATE CASCADE ON DELETE CASCADE; 1771 1772 1773 -- 1774 -- Name: stakeholders_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1775 -- 1776 1777 ALTER TABLE ONLY stakeholders 1778 ADD CONSTRAINT stakeholders_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(user_id) ON UPDATE CASCADE ON DELETE CASCADE; 1779 1780 1781 -- 1782 -- Name: user_has_profiles_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1576 1783 -- 1577 1784 … … 1581 1788 1582 1789 -- 1583 -- Name: user_has_profiles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: wifidog1790 -- Name: user_has_profiles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1584 1791 -- 1585 1792 … … 1589 1796 1590 1797 -- 1798 -- Name: virtual_hosts_default_network_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - 1799 -- 1800 1801 ALTER TABLE ONLY virtual_hosts 1802 ADD CONSTRAINT virtual_hosts_default_network_fkey FOREIGN KEY (default_network) REFERENCES networks(network_id) ON UPDATE CASCADE ON DELETE RESTRICT; 1803 1804 1805 -- 1591 1806 -- PostgreSQL database dump complete 1592 1807 --
