{"id":69,"date":"2017-03-22T23:30:26","date_gmt":"2017-03-22T23:30:26","guid":{"rendered":"https:\/\/test.warrensoft.co.uk\/wp-test\/home-hub\/?p=69"},"modified":"2018-12-08T07:32:38","modified_gmt":"2018-12-08T07:32:38","slug":"software-hub-database","status":"publish","type":"post","link":"https:\/\/test.warrensoft.co.uk\/wp-test\/2017\/03\/22\/software-hub-database\/","title":{"rendered":"Software &#8211; Hub Database"},"content":{"rendered":"<p>Now we have a working database server, we can create and populate the hub database itself.<\/p>\n<p>This is the first of a number of commands that use wget to download files from the project repository.<\/p>\n<pre>cd ~\r\nwget http:\/\/warrensoft.co.uk\/home-hub\/database\/scripts\/hub-skeleton.sql\r\npsql -h localhost -U postgres -d postgres -f hub-skeleton.sql\r\n\r\n<\/pre>\n<p>After confirming your postgres password you should have a hub database containing 16 tables (some populated with basic data), plus a number of supporting views and functions. \u00a0We will examine this schema in the next post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now we have a working database server, we can create and populate the hub database itself. This is the first of a number of commands that use wget to download files from the project repository. cd ~ wget http:\/\/warrensoft.co.uk\/home-hub\/database\/scripts\/hub-skeleton.sql psql -h localhost -U postgres -d postgres -f hub-skeleton.sql After confirming your postgres password you should &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/test.warrensoft.co.uk\/wp-test\/2017\/03\/22\/software-hub-database\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Software &#8211; Hub Database&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-hub-software-database"],"_links":{"self":[{"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":11,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":639,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/posts\/69\/revisions\/639"}],"wp:attachment":[{"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.warrensoft.co.uk\/wp-test\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}