fix warning in the jrn file fix bug in jrn table (jr_rapt text) fix bug in jrn_search problem when checking if a number is valid Improve the administration repository (user & folder)
39 lines
1.3 KiB
SQL
39 lines
1.3 KiB
SQL
|
|
/*
|
|
* This file is part of WCOMPTA.
|
|
*
|
|
* WCOMPTA is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* WCOMPTA is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with WCOMPTA; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
create sequence users_id;
|
|
create table ac_users (
|
|
use_id int not null default nextval('users_id'),
|
|
use_first_name text null,
|
|
use_name text null ,
|
|
use_login text not null unique,
|
|
use_active integer default 0,
|
|
use_pass text,
|
|
use_admin integer default 0,
|
|
use_theme text default 'classic',
|
|
use_usertype text not null,
|
|
check ( use_active=0 or use_active=1 ),
|
|
primary key (use_id)
|
|
);
|
|
|
|
insert into ac_users (use_login, use_active,use_pass,use_usertype) values (user,1,
|
|
'486348d8b9ac03742368d8736244e958','compta');
|
|
|
|
|
|
|