view extra/svn/create_views.sql @ 767:dd33798e514d feature_14

Reverts changes made to Redmine Core's Projects Controller in commit:b2a9e64b8283. Pagination now being done for both normal and filtered projects index.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 15 Nov 2011 15:03:17 +0000
parents 513646585e45
children
line wrap: on
line source
/* ssh views */

CREATE OR REPLACE VIEW ssh_users as
select login as username, hashed_password as password
from users
where status = 1;


/* nss views */

CREATE OR REPLACE VIEW nss_groups AS
select identifier AS name, (id + 5000) AS gid, 'x' AS password
from projects;

CREATE OR REPLACE VIEW nss_users AS
select login AS username, CONCAT_WS(' ', firstname, lastname) as realname, (id + 5000) AS uid, 'x' AS password
from users
where status = 1;

CREATE OR REPLACE VIEW nss_grouplist AS
select (members.project_id + 5000) AS gid, users.login AS username 
from users, members
where users.id = members.user_id
and users.status = 1;