forked from extern/egroupware
Updated the rest of the create_table.* for the new applications table
This commit is contained in:
parent
3d47258db1
commit
e22c2fe6d2
@ -31,19 +31,26 @@ CREATE TABLE applications (
|
|||||||
app_name varchar2(25) NOT NULL,
|
app_name varchar2(25) NOT NULL,
|
||||||
app_title varchar2(50),
|
app_title varchar2(50),
|
||||||
app_enabled number
|
app_enabled number
|
||||||
|
app_order int,
|
||||||
|
app_tables varchar2(255),
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index applications_app_name
|
create unique index applications_app_name
|
||||||
on applications (app_name);
|
on applications (app_name);
|
||||||
|
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('admin', 'Administration', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('admin', 'Administration', 1, 1, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('filemanager', 'File manager', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('tts', 'Trouble Ticket System', 0, 2, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('addressbook', 'Address Book', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('inv', 'Inventory', 0, 3, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('todo', 'ToDo List', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('chat', 'Chat', 0, 4, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('calendar', 'Calendar', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('headlines', 'Headlines', 0, 5, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('email', 'Email', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('filemanager', 'File manager', 1, 6, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('nntp', 'NNTP', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('addressbook', 'Address Book', 1, 7, 'addressbook');
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('cron_apps', 'cron_apps', 0);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('todo', 'ToDo List', 1, 8, 'todo');
|
||||||
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('calendar', 'Calendar', 1, 9, 'webcal_entry,webcal_entry_users,webcal_entry_groups,webcal_repeats');
|
||||||
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('email', 'Email', 1, 10,NULL);
|
||||||
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('nntp', 'NNTP', 1, 11, NULL);
|
||||||
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('cron_apps', 'cron_apps', 0, 0, NULL);
|
||||||
|
|
||||||
--------------
|
--------------
|
||||||
-- ACCOUNTS --
|
-- ACCOUNTS --
|
||||||
|
@ -4,17 +4,25 @@ create table applications (
|
|||||||
app_name varchar(25) NOT NULL,
|
app_name varchar(25) NOT NULL,
|
||||||
app_title varchar(50),
|
app_title varchar(50),
|
||||||
app_enabled int,
|
app_enabled int,
|
||||||
|
app_order int,
|
||||||
|
app_tables varchar(255),
|
||||||
unique(app_name)
|
unique(app_name)
|
||||||
);
|
);
|
||||||
|
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('admin', 'Administration', 1);
|
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('filemanager', 'File manager', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('admin', 'Administration', 1, 1, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('addressbook', 'Address Book', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('tts', 'Trouble Ticket System', 0, 2, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('todo', 'ToDo List', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('inv', 'Inventory', 0, 3, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('calendar', 'Calendar', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('chat', 'Chat', 0, 4, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('email', 'Email', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('headlines', 'Headlines', 0, 5, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('nntp', 'NNTP', 1);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('filemanager', 'File manager', 1, 6, NULL);
|
||||||
insert into applications (app_name, app_title, app_enabled) values ('cron_apps', 'cron_apps', 0);
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('addressbook', 'Address Book', 1, 7, 'addressbook');
|
||||||
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('todo', 'ToDo List', 1, 8, 'todo');
|
||||||
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('calendar', 'Calendar', 1, 9, 'webcal_entry,webcal_entry_users,webcal_entry_groups,webcal_repeats');
|
||||||
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('email', 'Email', 1, 10,NULL);
|
||||||
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('nntp', 'NNTP', 1, 11, NULL);
|
||||||
|
insert into applications (app_name, app_title, app_enabled, app_order, app_tables) values ('cron_apps', 'cron_apps', 0, 0, NULL);
|
||||||
|
|
||||||
|
|
||||||
create table accounts (
|
create table accounts (
|
||||||
con serial,
|
con serial,
|
||||||
@ -143,7 +151,7 @@ CREATE TABLE webcal_entry (
|
|||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE webcal_entry_user (
|
CREATE TABLE webcal_entry_user (
|
||||||
cal_id int NOT NULL,
|
cal_id int,
|
||||||
cal_login varchar(25) NOT NULL,
|
cal_login varchar(25) NOT NULL,
|
||||||
cal_status char(1) DEFAULT 'A'
|
cal_status char(1) DEFAULT 'A'
|
||||||
);
|
);
|
||||||
@ -164,15 +172,15 @@ create table webcal_entry_groups (
|
|||||||
CREATE TABLE newsgroups (
|
CREATE TABLE newsgroups (
|
||||||
con serial,
|
con serial,
|
||||||
name varchar(255) NOT NULL,
|
name varchar(255) NOT NULL,
|
||||||
messagecount int NOT NULL,
|
messagecount int,
|
||||||
lastmessage int NOT NULL,
|
lastmessage int,
|
||||||
active char DEFAULT 'N' NOT NULL,
|
active char DEFAULT 'N' NOT NULL,
|
||||||
lastread int
|
lastread int
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE users_newsgroups (
|
CREATE TABLE users_newsgroups (
|
||||||
owner int NOT NULL,
|
owner int,
|
||||||
newsgroup int NOT NULL
|
newsgroup int
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE lang (
|
CREATE TABLE lang (
|
||||||
|
Loading…
Reference in New Issue
Block a user