synch with Lampadas tables

This commit is contained in:
david 2002-04-19 14:12:09 +00:00
parent 018947c54f
commit 4af4d894d7
6 changed files with 53 additions and 110 deletions

View File

@ -18,13 +18,9 @@ psql ldp -qf document_wiki.sql
psql ldp -qf document_topic.sql
psql ldp -qf document_rev.sql
psql ldp -qf maintainer.sql
psql ldp -qf maintainer_notes.sql
psql ldp -qf document_maintainer.sql
psql ldp -qf editor.sql
psql ldp -qf editor_role.sql
psql ldp -qf document_editor.sql
psql ldp -qf username.sql
psql ldp -qf username_notes.sql
psql ldp -qf document_user.sql
psql ldp -qf audience.sql
psql ldp -qf document_audience.sql
@ -36,12 +32,7 @@ psql ldp -qf stats_cdf.sql
psql ldp -qf license.sql
psql ldp -qf username.sql
psql ldp -qf config.sql
# permissions
psql ldp -qf permissions.sql
# views
psql ldp -qf vw_gfdl_emails.sql
psql ldp -qf vw_gfdl_docs.sql

View File

@ -1,28 +1,26 @@
copy audience from '/tmp/ldp_audience.txt';
copy class from '/tmp/ldp_class.txt';
copy config from '/tmp/ldp_config.txt';
copy doc_vote from '/tmp/ldp_doc_vote.txt';
copy document from '/tmp/ldp_document.txt';
copy document_audience from '/tmp/ldp_document_audience.txt';
copy document_editor from '/tmp/ldp_document_editor.txt';
copy document_maintainer from '/tmp/ldp_document_maintainer.txt';
copy document_rev from '/tmp/ldp_document_rev.txt';
copy document_topic from '/tmp/ldp_document_topic.txt';
copy document_wiki from '/tmp/ldp_document_wiki.txt';
copy dtd from '/tmp/ldp_dtd.txt';
copy editor from '/tmp/ldp_editor.txt';
copy editor_role from '/tmp/ldp_editor_role.txt';
copy format from '/tmp/ldp_format.txt';
copy license from '/tmp/ldp_license.txt';
copy maintainer from '/tmp/ldp_maintainer.txt';
copy maintainer_notes from '/tmp/ldp_maintainer_notes.txt';
copy notes from '/tmp/ldp_notes.txt';
copy pub_status from '/tmp/ldp_pub_status.txt';
copy review_status from '/tmp/ldp_review_status.txt';
copy role from '/tmp/ldp_role.txt';
copy stats from '/tmp/ldp_stats.txt';
copy stats_cdf from '/tmp/ldp_stats_cdf.txt';
copy subtopic from '/tmp/ldp_subtopic.txt';
copy topic from '/tmp/ldp_topic.txt';
copy username from '/tmp/ldp_username.txt';
copy audience from '/tmp/lampadas_audience.txt';
copy class from '/tmp/lampadas_class.txt';
copy config from '/tmp/lampadas_config.txt';
copy doc_vote from '/tmp/lampadas_doc_vote.txt';
copy document from '/tmp/lampadas_document.txt';
copy document_audience from '/tmp/lampadas_document_audience.txt';
copy document_error from '/tmp/lampadas_document_error.txt';
copy document_file from '/tmp/lampadas_document_file.txt';
copy document_rev from '/tmp/lampadas_document_rev.txt';
copy document_topic from '/tmp/lampadas_document_topic.txt';
copy document_user from '/tmp/lampadas_document_user.txt';
copy document_wiki from '/tmp/lampadas_document_wiki.txt';
copy dtd from '/tmp/lampadas_dtd.txt';
copy format from '/tmp/lampadas_format.txt';
copy license from '/tmp/lampadas_license.txt';
copy notes from '/tmp/lampadas_notes.txt';
copy pub_status from '/tmp/lampadas_pub_status.txt';
copy review_status from '/tmp/lampadas_review_status.txt';
copy role from '/tmp/lampadas_role.txt';
copy stats from '/tmp/lampadas_stats.txt';
copy stats_cdf from '/tmp/lampadas_stats_cdf.txt';
copy subtopic from '/tmp/lampadas_subtopic.txt';
copy topic from '/tmp/lampadas_topic.txt';
copy username from '/tmp/lampadas_username.txt';
copy username_notes from '/tmp/lampadas_username_notes.txt';

View File

@ -1,27 +1,25 @@
copy audience to '/tmp/ldp_audience.txt';
copy class to '/tmp/ldp_class.txt';
copy config to '/tmp/ldp_config.txt';
copy doc_vote to '/tmp/ldp_doc_vote.txt';
copy document to '/tmp/ldp_document.txt';
copy document_wiki to '/tmp/ldp_document_wiki.txt';
copy document_audience to '/tmp/ldp_document_audience.txt';
copy document_editor to '/tmp/ldp_document_editor.txt';
copy document_maintainer to '/tmp/ldp_document_maintainer.txt';
copy document_topic to '/tmp/ldp_document_topic.txt';
copy document_rev to '/tmp/ldp_document_rev.txt';
copy dtd to '/tmp/ldp_dtd.txt';
copy editor to '/tmp/ldp_editor.txt';
copy editor_role to '/tmp/ldp_editor_role.txt';
copy format to '/tmp/ldp_format.txt';
copy license to '/tmp/ldp_license.txt';
copy maintainer to '/tmp/ldp_maintainer.txt';
copy maintainer_notes to '/tmp/ldp_maintainer_notes.txt';
copy notes to '/tmp/ldp_notes.txt';
copy pub_status to '/tmp/ldp_pub_status.txt';
copy review_status to '/tmp/ldp_review_status.txt';
copy role to '/tmp/ldp_role.txt';
copy stats to '/tmp/ldp_stats.txt';
copy stats_cdf to '/tmp/ldp_stats_cdf.txt';
copy subtopic to '/tmp/ldp_subtopic.txt';
copy topic to '/tmp/ldp_topic.txt';
copy username to '/tmp/ldp_username.txt';
copy audience to '/tmp/lampadas_audience.txt';
copy class to '/tmp/lampadas_class.txt';
copy config to '/tmp/lampadas_config.txt';
copy doc_vote to '/tmp/lampadas_doc_vote.txt';
copy document to '/tmp/lampadas_document.txt';
copy document_audience to '/tmp/lampadas_document_audience.txt';
copy document_error to '/tmp/lampadas_document_error.txt';
copy document_file to '/tmp/lampadas_document_file.txt';
copy document_rev to '/tmp/lampadas_document_rev.txt';
copy document_topic to '/tmp/lampadas_document_topic.txt';
copy document_user to '/tmp/lampadas_document_user.txt';
copy document_wiki to '/tmp/lampadas_document_wiki.txt';
copy dtd to '/tmp/lampadas_dtd.txt';
copy format to '/tmp/lampadas_format.txt';
copy license to '/tmp/lampadas_license.txt';
copy notes to '/tmp/lampadas_notes.txt';
copy pub_status to '/tmp/lampadas_pub_status.txt';
copy review_status to '/tmp/lampadas_review_status.txt';
copy role to '/tmp/lampadas_role.txt';
copy stats to '/tmp/lampadas_stats.txt';
copy stats_cdf to '/tmp/lampadas_stats_cdf.txt';
copy subtopic to '/tmp/lampadas_subtopic.txt';
copy topic to '/tmp/lampadas_topic.txt';
copy username to '/tmp/lampadas_username.txt';
copy username_notes to '/tmp/lampadas_username_notes.txt';

View File

@ -1,12 +0,0 @@
DROP VIEW vw_active_authors;
CREATE VIEW vw_active_authors AS
SELECT DISTINCT
dm.email
FROM document_maintainer dm,
document d
WHERE dm.doc_id = d.doc_id
AND d.pub_status = 'N'
AND email <> ''
ORDER BY email;

View File

@ -1,16 +0,0 @@
DROP VIEW vw_gfdl_docs;
CREATE VIEW vw_gfdl_docs AS
SELECT DISTINCT
d.title
FROM maintainer m,
document_maintainer dm,
document d
WHERE m.maintainer_id = dm.maintainer_id
AND dm.doc_id = d.doc_id
AND d.license <> 'GFDL'
AND d.license <> 'GPL'
AND d.license <> 'OPL'
AND m.email <> ''
ORDER BY title;

View File

@ -1,16 +0,0 @@
DROP VIEW vw_gfdl_emails;
CREATE VIEW vw_gfdl_emails AS
SELECT DISTINCT
m.email
FROM maintainer m,
document_maintainer dm,
document d
WHERE m.maintainer_id = dm.maintainer_id
AND dm.doc_id = d.doc_id
AND d.license <> 'GFDL'
AND d.license <> 'GPL'
AND d.license <> 'OPL'
AND m.email <> ''
ORDER BY email;