geosolutions-it / geonode-generic

Generic Geonode-project based app, to be used with docker/rancher
https://waffle.io/geosolutions-it/geonode-generic
3 stars 6 forks source link

Fix for #42 and #24 - incorrect database being used. #43

Closed timlinux closed 6 years ago

timlinux commented 6 years ago

I tested on my fork of your catalogue and with my patch applied the data is now written to the correct database for geonode.

root@e35908a7597f:/# su - postgres
No directory, logging in with HOME=/
$ psql geonode
psql (9.6.8)
Type "help" for help.

geonode=# \d
                                    List of relations
 Schema |                           Name                           |   Type   |  Owner
--------+----------------------------------------------------------+----------+----------
 public | account_emailaddress                                     | table    | postgres
 public | account_emailaddress_id_seq                              | sequence | postgres
 public | account_emailconfirmation                                | table    | postgres
 public | account_emailconfirmation_id_seq                         | sequence | postgres
 public | actstream_action                                         | table    | postgres
 public | actstream_action_id_seq                                  | sequence | postgres
 public | actstream_follow                                         | table    | postgres
 public | actstream_follow_id_seq                                  | sequence | postgres
 public | agon_ratings_overallrating                               | table    | postgres
 public | agon_ratings_overallrating_id_seq                        | sequence | postgres
 public | agon_ratings_rating                                      | table    | postgres
 public | agon_ratings_rating_id_seq                               | sequence | postgres
 public | announcements_announcement                               | table    | postgres
 public | announcements_announcement_id_seq                        | sequence | postgres
 public | announcements_dismissal                                  | table    | postgres
 public | announcements_dismissal_id_seq                           | sequence | postgres
 public | auth_group                                               | table    | postgres
 public | auth_group_id_seq                                        | sequence | postgres
 public | auth_group_permissions                                   | table    | postgres
 public | auth_group_permissions_id_seq                            | sequence | postgres
 public | auth_permission                                          | table    | postgres
 public | auth_permission_id_seq                                   | sequence | postgres
 public | avatar_avatar                                            | table    | postgres
 public | avatar_avatar_id_seq                                     | sequence | postgres
 public | base_backup                                              | table    | postgres
 public | base_backup_id_seq                                       | sequence | postgres
 public | base_contactrole                                         | table    | postgres
 public | base_contactrole_id_seq                                  | sequence | postgres
 public | base_hierarchicalkeyword                                 | table    | postgres
 public | base_hierarchicalkeyword_id_seq                          | sequence | postgres
 public | base_license                                             | table    | postgres
 public | base_license_id_seq                                      | sequence | postgres
 public | base_link                                                | table    | postgres
 public | base_link_id_seq                                         | sequence | postgres
 public | base_region                                              | table    | postgres
 public | base_region_id_seq                                       | sequence | postgres
--More--

I havent tested to see where geoserver data is written yet...

timlinux commented 6 years ago

CC @sindile