[Fusionforge-commits] r7308 - in trunk: gforge/db gforge/plugins/webcalendar/db tests/code/syntax

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Apr 2 21:26:08 CEST 2009


Author: lolando
Date: 2009-04-02 21:26:07 +0200 (Thu, 02 Apr 2009)
New Revision: 7308

Modified:
   trunk/gforge/db/20051103_transiciel_motscle_document.sql
   trunk/gforge/db/20090327_create_table_project_tags.sql
   trunk/gforge/plugins/webcalendar/db/webcalendar-init.sql
   trunk/tests/code/syntax/SyntaxTests.php
Log:
Enforce UTF-8 encoding and Unix-style line endings on *.sql, *.sh and *.pl files in addition to *.php files

Modified: trunk/gforge/db/20051103_transiciel_motscle_document.sql
===================================================================
--- trunk/gforge/db/20051103_transiciel_motscle_document.sql	2009-04-02 19:16:07 UTC (rev 7307)
+++ trunk/gforge/db/20051103_transiciel_motscle_document.sql	2009-04-02 19:26:07 UTC (rev 7308)
@@ -1,4 +1,4 @@
---- Modification de la base gforge pour permettre la recherche dans le contenu des documents stockés
+--- Modification de la base gforge pour permettre la recherche dans le contenu des documents stockés
 --- Fabio Bertagnin - Transiciel Technologies
 --- fbertagnin at mail.transiciel.com
 --- 03/11/2005
@@ -6,4 +6,4 @@
 ALTER TABLE doc_data ADD COLUMN data_words TEXT;
 ALTER TABLE doc_data ALTER data_words SET DEFAULT '';
 UPDATE doc_data SET data_words = '';
-ALTER TABLE doc_data ALTER data_words SET NOT NULL;
\ No newline at end of file
+ALTER TABLE doc_data ALTER data_words SET NOT NULL;

Modified: trunk/gforge/db/20090327_create_table_project_tags.sql
===================================================================
--- trunk/gforge/db/20090327_create_table_project_tags.sql	2009-04-02 19:16:07 UTC (rev 7307)
+++ trunk/gforge/db/20090327_create_table_project_tags.sql	2009-04-02 19:26:07 UTC (rev 7308)
@@ -1,10 +1,9 @@
---
--- Create table for project's tags
---
-
-CREATE TABLE project_tags
-(
-   group_id integer NOT NULL, 
-   name text NOT NULL
-) WITH OIDS;
-
+--
+-- Create table for project's tags
+--
+
+CREATE TABLE project_tags
+(
+   group_id integer NOT NULL, 
+   name text NOT NULL
+) WITH OIDS;

Modified: trunk/gforge/plugins/webcalendar/db/webcalendar-init.sql
===================================================================
--- trunk/gforge/plugins/webcalendar/db/webcalendar-init.sql	2009-04-02 19:16:07 UTC (rev 7307)
+++ trunk/gforge/plugins/webcalendar/db/webcalendar-init.sql	2009-04-02 19:26:07 UTC (rev 7308)
@@ -1,377 +1,373 @@
-CREATE VIEW webcal_user AS
-SELECT user_name AS cal_login, user_pw AS cal_passwd, lastname AS cal_lastname, firstname AS cal_firstname, status AS cal_is_admin, email AS cal_email FROM users; 
--- CREATE TABLE webcal_user (
---  cal_login VARCHAR(25) NOT NULL,
---  cal_passwd VARCHAR(32),
---  cal_lastname VARCHAR(25),
---  cal_firstname VARCHAR(25),
---  cal_is_admin CHAR(1) DEFAULT 'N',
---  cal_email VARCHAR(75),
---  PRIMARY KEY ( cal_login )
---);
-
-CREATE TABLE webcal_entry (
-  cal_id INT NOT NULL,
-  cal_group_id INT,
-  cal_ext_for_id INT NULL,
-  cal_create_by VARCHAR(25) NOT NULL,
-  cal_date INT NOT NULL,
-  cal_time INT,
-  cal_mod_date INT,
-  cal_mod_time INT,
-  cal_duration INT NOT NULL,
-  cal_priority INT DEFAULT 2,
-  cal_type CHAR(1) DEFAULT 'E',
-  cal_access CHAR(1) DEFAULT 'P',
-  cal_name VARCHAR(80) NOT NULL,
-  cal_description TEXT,
-  PRIMARY KEY ( cal_id )
-);
-
-
-CREATE TABLE webcal_entry_repeats (
-   cal_id INT DEFAULT '0' NOT NULL,
-   cal_type VARCHAR(20),
-   cal_end INT,
-   cal_frequency INT DEFAULT '1',
-   cal_days CHAR(7),
-   PRIMARY KEY (cal_id)
-);
-
-
-CREATE TABLE webcal_entry_repeats_not (
-  cal_id INT NOT NULL,
-  cal_date INT NOT NULL,
-  PRIMARY KEY ( cal_id, cal_date )
-);
-
-
-CREATE TABLE webcal_entry_user (
-  cal_id int DEFAULT '0' NOT NULL,
-  cal_login varchar(25) DEFAULT '' NOT NULL, 
-  cal_status char(1) DEFAULT 'A' NOT NULL,
-  cal_category INT DEFAULT NULL,
-  PRIMARY KEY ( cal_id,cal_login )
-);
-
-
-CREATE TABLE webcal_entry_ext_user (
-  cal_id INT DEFAULT 0 NOT NULL,
-  cal_fullname VARCHAR(50) NOT NULL,
-  cal_email VARCHAR(75) NOT NULL,
-  PRIMARY KEY ( cal_id, cal_fullname )
-);
-
-
-CREATE TABLE webcal_user_pref (
-  cal_login varchar(25) NOT NULL,
-  cal_setting varchar(25) NOT NULL,
-  cal_value varchar(100),
-  PRIMARY KEY ( cal_login, cal_setting )
-);
-
-
-
-CREATE TABLE webcal_user_layers (
-  cal_layerid INT DEFAULT '0' NOT NULL,
-  cal_login varchar(25) NOT NULL,
-  cal_layeruser varchar(25) NOT NULL,
-  cal_color varchar(25),
-  cal_dups CHAR(1) DEFAULT 'N',
-  PRIMARY KEY ( cal_login, cal_layeruser )
-);
-
-
-
-CREATE TABLE webcal_site_extras (
-  cal_id INT DEFAULT '0' NOT NULL,
-  cal_name VARCHAR(25) NOT NULL,
-  cal_type INT NOT NULL,
-  cal_date INT DEFAULT '0',
-  cal_remind INT DEFAULT '0',
-  cal_data TEXT,
-  PRIMARY KEY ( cal_id, cal_name, cal_type )
-);
-
-
-CREATE TABLE webcal_reminder_log (
-  cal_id INT DEFAULT '0' NOT NULL,
-  cal_name VARCHAR(25) NOT NULL,
-  cal_event_date INT NOT NULL DEFAULT 0,
-  cal_last_sent INT NOT NULL DEFAULT 0,
-  PRIMARY KEY ( cal_id, cal_name, cal_event_date )
-);
-
-CREATE VIEW webcal_group AS
-SELECT group_id AS cal_group_id, 'admin' AS cal_owner, unix_group_name AS cal_name, register_time AS cal_last_update FROM groups;
---CREATE TABLE webcal_group (
---  cal_group_id INT NOT NULL,
---  cal_owner VARCHAR(25) NOT NULL,
---  cal_name VARCHAR(50) NOT NULL,
---  cal_last_update INT NOT NULL,
---  PRIMARY KEY ( cal_group_id )
---);
-
-DROP TABLE webcal_group_user;
-CREATE VIEW webcal_group_user AS 
-SELECT group_id AS cal_group_id, users.user_name AS cal_login FROM users,user_group 
-WHERE users.user_id = user_group.user_id;
---CREATE TABLE webcal_group_user (
---  cal_group_id INT NOT NULL,
---  cal_login VARCHAR(25) NOT NULL,
---  PRIMARY KEY ( cal_group_id, cal_login )
---);
-
-CREATE TABLE webcal_view (
-  cal_view_id INT NOT NULL,
-  cal_owner VARCHAR(25) NOT NULL,
-  cal_name VARCHAR(50) NOT NULL,
-  cal_view_type CHAR(1),
-  cal_is_global CHAR(1) DEFAULT 'N' NOT NULL,
-  PRIMARY KEY ( cal_view_id )
-);
-
-CREATE TABLE webcal_view_user (
-  cal_view_id INT NOT NULL,
-  cal_login VARCHAR(25) NOT NULL,
-  PRIMARY KEY ( cal_view_id, cal_login )
-);
-
-CREATE TABLE webcal_config (
-  cal_setting VARCHAR(50) NOT NULL,
-  cal_value VARCHAR(100) NOT NULL,
-  PRIMARY KEY ( cal_setting )
-);
-
-
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'application_name', 'WebCalendar' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'LANGUAGE', 'Browser-defined' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'demo_mode', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'require_approvals', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'groups_enabled', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'user_sees_only_his_groups', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'categories_enabled', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'allow_conflicts', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'conflict_repeat_months', '6' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'disable_priority_field', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'disable_access_field', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'disable_participants_field', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'disable_repeating_field', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'allow_view_other', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'email_fallback_from', 'youremailhere' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'remember_last_login', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'allow_color_customization', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('BGCOLOR','#FFFFFF');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('TEXTCOLOR','#000000');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('H2COLOR','#000000');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('CELLBG','#C0C0C0');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('WEEKENDBG','#D0D0D0');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('TABLEBG','#000000');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('THBG','#FFFFFF');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('THFG','#000000');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('POPUP_FG','#000000');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('POPUP_BG','#FFFFFF');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('TODAYCELLBG','#FFFF33');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'STARTVIEW', 'week.php' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'WEEK_START', '0' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'TIME_FORMAT', '12' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'DISPLAY_UNAPPROVED', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'DISPLAY_WEEKNUMBER', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'WORK_DAY_START_HOUR', '8' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'WORK_DAY_END_HOUR', '17' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'send_email', 'N' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'EMAIL_REMINDER', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'EMAIL_EVENT_ADDED', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'EMAIL_EVENT_UPDATED', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'EMAIL_EVENT_DELETED', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ( 'EMAIL_EVENT_REJECTED', 'Y' );
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('auto_refresh', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('nonuser_enabled', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('allow_html_description', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('reports_enabled', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('DISPLAY_WEEKENDS', 'Y');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('DISPLAY_DESC_PRINT_DAY', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('DATE_FORMAT', '__month__ __dd__, __yyyy__');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('TIME_SLOTS', '12');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('TIMED_EVT_LEN', 'D');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('PUBLISH_ENABLED', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('DATE_FORMAT_MY', '__month__ __yyyy__');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('DATE_FORMAT_MD', '__month__ __dd__');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('CUSTOM_SCRIPT', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('CUSTOM_HEADER', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('CUSTOM_TRAILER', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('bold_days_in_year', 'Y');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('site_extras_in_popup', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('add_link_in_views', 'Y');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('allow_conflict_override', 'Y');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('limit_appts', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('limit_appts_number', '6');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('public_access', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('public_access_default_visible', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('public_access_default_selected', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('public_access_others', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('public_access_can_add', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('public_access_add_needs_approval', 'Y');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('public_access_view_part', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('nonuser_at_top', 'Y');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('allow_external_users', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('external_notifications', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('external_reminders', 'N');
-INSERT INTO webcal_config ( cal_setting, cal_value )
-  VALUES ('enable_gradients', 'N');
-
-
-
-CREATE TABLE webcal_entry_log (
-  cal_log_id INT NOT NULL,
-  cal_entry_id INT NOT NULL,
-  cal_login VARCHAR(25) NOT NULL,
-  cal_user_cal VARCHAR(25) NOT NULL,
-  cal_type CHAR(1) NOT NULL,
-  cal_date INT NOT NULL,
-  cal_time INT NOT NULL,
-  cal_text TEXT,
-  PRIMARY KEY ( cal_log_id )
-);
-
-
-CREATE TABLE webcal_categories (
-  cat_id INT NOT NULL,
-  cat_owner VARCHAR(25),
-  cat_name VARCHAR(80) NOT NULL,
-  PRIMARY KEY ( cat_id )
-);
-
-CREATE TABLE webcal_asst (
-  cal_boss VARCHAR(25) NOT NULL,
-  cal_assistant VARCHAR(25) NOT NULL,
-  PRIMARY KEY ( cal_boss, cal_assistant )
-);
-
-CREATE TABLE webcal_nonuser_cals (
-  cal_login VARCHAR(25) NOT NULL,
-  cal_lastname VARCHAR(25) NULL,
-  cal_firstname VARCHAR(25) NULL,
-  cal_admin VARCHAR(25) NOT NULL,
-  PRIMARY KEY ( cal_login )
-);
-
-CREATE TABLE webcal_import (
-  cal_import_id INT NOT NULL,
-  cal_name VARCHAR(50) NULL,
-  cal_date INT NOT NULL,
-  cal_type VARCHAR(10) NOT NULL,
-  cal_login VARCHAR(25) NULL,
-  PRIMARY KEY ( cal_import_id )
-);
-
-CREATE TABLE webcal_import_data (
-  cal_import_id INT NOT NULL,
-  cal_id INT NOT NULL,
-  cal_login VARCHAR(25) NOT NULL,
-  cal_import_type VARCHAR(15) NOT NULL,
-  cal_external_id VARCHAR(200) NULL,
-  PRIMARY KEY  ( cal_id, cal_login )
-);
-
-
-CREATE TABLE webcal_report (
-  cal_login VARCHAR(25) NOT NULL,
-  cal_report_id INT NOT NULL,
-  cal_is_global CHAR(1) DEFAULT 'N' NOT NULL,
-  cal_report_type VARCHAR(20) NOT NULL,
-  cal_include_header CHAR(1) DEFAULT 'Y' NOT NULL,
-  cal_report_name VARCHAR(50) NOT NULL,
-  cal_time_range INT NOT NULL,
-  cal_user VARCHAR(25) NULL,
-  cal_allow_nav CHAR(1) DEFAULT 'Y',
-  cal_cat_id INT NULL,
-  cal_include_empty CHAR(1) DEFAULT 'N',
-  cal_show_in_trailer CHAR(1) DEFAULT 'N',
-  cal_update_date INT NOT NULL,
-  PRIMARY KEY ( cal_report_id )
-);
-
-CREATE TABLE webcal_report_template (
-  cal_report_id INT NOT NULL,
-  cal_template_type CHAR(1) NOT NULL,
-  cal_template_text TEXT,
-  PRIMARY KEY ( cal_report_id, cal_template_type )
-);
-
-
-
-
+CREATE VIEW webcal_user AS
+SELECT user_name AS cal_login, user_pw AS cal_passwd, lastname AS cal_lastname, firstname AS cal_firstname, status AS cal_is_admin, email AS cal_email FROM users; 
+-- CREATE TABLE webcal_user (
+--  cal_login VARCHAR(25) NOT NULL,
+--  cal_passwd VARCHAR(32),
+--  cal_lastname VARCHAR(25),
+--  cal_firstname VARCHAR(25),
+--  cal_is_admin CHAR(1) DEFAULT 'N',
+--  cal_email VARCHAR(75),
+--  PRIMARY KEY ( cal_login )
+--);
+
+CREATE TABLE webcal_entry (
+  cal_id INT NOT NULL,
+  cal_group_id INT,
+  cal_ext_for_id INT NULL,
+  cal_create_by VARCHAR(25) NOT NULL,
+  cal_date INT NOT NULL,
+  cal_time INT,
+  cal_mod_date INT,
+  cal_mod_time INT,
+  cal_duration INT NOT NULL,
+  cal_priority INT DEFAULT 2,
+  cal_type CHAR(1) DEFAULT 'E',
+  cal_access CHAR(1) DEFAULT 'P',
+  cal_name VARCHAR(80) NOT NULL,
+  cal_description TEXT,
+  PRIMARY KEY ( cal_id )
+);
+
+
+CREATE TABLE webcal_entry_repeats (
+   cal_id INT DEFAULT '0' NOT NULL,
+   cal_type VARCHAR(20),
+   cal_end INT,
+   cal_frequency INT DEFAULT '1',
+   cal_days CHAR(7),
+   PRIMARY KEY (cal_id)
+);
+
+
+CREATE TABLE webcal_entry_repeats_not (
+  cal_id INT NOT NULL,
+  cal_date INT NOT NULL,
+  PRIMARY KEY ( cal_id, cal_date )
+);
+
+
+CREATE TABLE webcal_entry_user (
+  cal_id int DEFAULT '0' NOT NULL,
+  cal_login varchar(25) DEFAULT '' NOT NULL, 
+  cal_status char(1) DEFAULT 'A' NOT NULL,
+  cal_category INT DEFAULT NULL,
+  PRIMARY KEY ( cal_id,cal_login )
+);
+
+
+CREATE TABLE webcal_entry_ext_user (
+  cal_id INT DEFAULT 0 NOT NULL,
+  cal_fullname VARCHAR(50) NOT NULL,
+  cal_email VARCHAR(75) NOT NULL,
+  PRIMARY KEY ( cal_id, cal_fullname )
+);
+
+
+CREATE TABLE webcal_user_pref (
+  cal_login varchar(25) NOT NULL,
+  cal_setting varchar(25) NOT NULL,
+  cal_value varchar(100),
+  PRIMARY KEY ( cal_login, cal_setting )
+);
+
+
+
+CREATE TABLE webcal_user_layers (
+  cal_layerid INT DEFAULT '0' NOT NULL,
+  cal_login varchar(25) NOT NULL,
+  cal_layeruser varchar(25) NOT NULL,
+  cal_color varchar(25),
+  cal_dups CHAR(1) DEFAULT 'N',
+  PRIMARY KEY ( cal_login, cal_layeruser )
+);
+
+
+
+CREATE TABLE webcal_site_extras (
+  cal_id INT DEFAULT '0' NOT NULL,
+  cal_name VARCHAR(25) NOT NULL,
+  cal_type INT NOT NULL,
+  cal_date INT DEFAULT '0',
+  cal_remind INT DEFAULT '0',
+  cal_data TEXT,
+  PRIMARY KEY ( cal_id, cal_name, cal_type )
+);
+
+
+CREATE TABLE webcal_reminder_log (
+  cal_id INT DEFAULT '0' NOT NULL,
+  cal_name VARCHAR(25) NOT NULL,
+  cal_event_date INT NOT NULL DEFAULT 0,
+  cal_last_sent INT NOT NULL DEFAULT 0,
+  PRIMARY KEY ( cal_id, cal_name, cal_event_date )
+);
+
+CREATE VIEW webcal_group AS
+SELECT group_id AS cal_group_id, 'admin' AS cal_owner, unix_group_name AS cal_name, register_time AS cal_last_update FROM groups;
+--CREATE TABLE webcal_group (
+--  cal_group_id INT NOT NULL,
+--  cal_owner VARCHAR(25) NOT NULL,
+--  cal_name VARCHAR(50) NOT NULL,
+--  cal_last_update INT NOT NULL,
+--  PRIMARY KEY ( cal_group_id )
+--);
+
+DROP TABLE webcal_group_user;
+CREATE VIEW webcal_group_user AS 
+SELECT group_id AS cal_group_id, users.user_name AS cal_login FROM users,user_group 
+WHERE users.user_id = user_group.user_id;
+--CREATE TABLE webcal_group_user (
+--  cal_group_id INT NOT NULL,
+--  cal_login VARCHAR(25) NOT NULL,
+--  PRIMARY KEY ( cal_group_id, cal_login )
+--);
+
+CREATE TABLE webcal_view (
+  cal_view_id INT NOT NULL,
+  cal_owner VARCHAR(25) NOT NULL,
+  cal_name VARCHAR(50) NOT NULL,
+  cal_view_type CHAR(1),
+  cal_is_global CHAR(1) DEFAULT 'N' NOT NULL,
+  PRIMARY KEY ( cal_view_id )
+);
+
+CREATE TABLE webcal_view_user (
+  cal_view_id INT NOT NULL,
+  cal_login VARCHAR(25) NOT NULL,
+  PRIMARY KEY ( cal_view_id, cal_login )
+);
+
+CREATE TABLE webcal_config (
+  cal_setting VARCHAR(50) NOT NULL,
+  cal_value VARCHAR(100) NOT NULL,
+  PRIMARY KEY ( cal_setting )
+);
+
+
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'application_name', 'WebCalendar' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'LANGUAGE', 'Browser-defined' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'demo_mode', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'require_approvals', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'groups_enabled', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'user_sees_only_his_groups', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'categories_enabled', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'allow_conflicts', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'conflict_repeat_months', '6' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'disable_priority_field', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'disable_access_field', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'disable_participants_field', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'disable_repeating_field', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'allow_view_other', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'email_fallback_from', 'youremailhere' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'remember_last_login', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'allow_color_customization', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('BGCOLOR','#FFFFFF');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('TEXTCOLOR','#000000');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('H2COLOR','#000000');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('CELLBG','#C0C0C0');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('WEEKENDBG','#D0D0D0');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('TABLEBG','#000000');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('THBG','#FFFFFF');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('THFG','#000000');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('POPUP_FG','#000000');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('POPUP_BG','#FFFFFF');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('TODAYCELLBG','#FFFF33');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'STARTVIEW', 'week.php' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'WEEK_START', '0' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'TIME_FORMAT', '12' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'DISPLAY_UNAPPROVED', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'DISPLAY_WEEKNUMBER', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'WORK_DAY_START_HOUR', '8' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'WORK_DAY_END_HOUR', '17' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'send_email', 'N' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'EMAIL_REMINDER', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'EMAIL_EVENT_ADDED', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'EMAIL_EVENT_UPDATED', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'EMAIL_EVENT_DELETED', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ( 'EMAIL_EVENT_REJECTED', 'Y' );
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('auto_refresh', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('nonuser_enabled', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('allow_html_description', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('reports_enabled', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('DISPLAY_WEEKENDS', 'Y');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('DISPLAY_DESC_PRINT_DAY', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('DATE_FORMAT', '__month__ __dd__, __yyyy__');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('TIME_SLOTS', '12');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('TIMED_EVT_LEN', 'D');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('PUBLISH_ENABLED', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('DATE_FORMAT_MY', '__month__ __yyyy__');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('DATE_FORMAT_MD', '__month__ __dd__');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('CUSTOM_SCRIPT', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('CUSTOM_HEADER', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('CUSTOM_TRAILER', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('bold_days_in_year', 'Y');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('site_extras_in_popup', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('add_link_in_views', 'Y');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('allow_conflict_override', 'Y');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('limit_appts', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('limit_appts_number', '6');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('public_access', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('public_access_default_visible', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('public_access_default_selected', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('public_access_others', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('public_access_can_add', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('public_access_add_needs_approval', 'Y');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('public_access_view_part', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('nonuser_at_top', 'Y');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('allow_external_users', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('external_notifications', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('external_reminders', 'N');
+INSERT INTO webcal_config ( cal_setting, cal_value )
+  VALUES ('enable_gradients', 'N');
+
+
+
+CREATE TABLE webcal_entry_log (
+  cal_log_id INT NOT NULL,
+  cal_entry_id INT NOT NULL,
+  cal_login VARCHAR(25) NOT NULL,
+  cal_user_cal VARCHAR(25) NOT NULL,
+  cal_type CHAR(1) NOT NULL,
+  cal_date INT NOT NULL,
+  cal_time INT NOT NULL,
+  cal_text TEXT,
+  PRIMARY KEY ( cal_log_id )
+);
+
+
+CREATE TABLE webcal_categories (
+  cat_id INT NOT NULL,
+  cat_owner VARCHAR(25),
+  cat_name VARCHAR(80) NOT NULL,
+  PRIMARY KEY ( cat_id )
+);
+
+CREATE TABLE webcal_asst (
+  cal_boss VARCHAR(25) NOT NULL,
+  cal_assistant VARCHAR(25) NOT NULL,
+  PRIMARY KEY ( cal_boss, cal_assistant )
+);
+
+CREATE TABLE webcal_nonuser_cals (
+  cal_login VARCHAR(25) NOT NULL,
+  cal_lastname VARCHAR(25) NULL,
+  cal_firstname VARCHAR(25) NULL,
+  cal_admin VARCHAR(25) NOT NULL,
+  PRIMARY KEY ( cal_login )
+);
+
+CREATE TABLE webcal_import (
+  cal_import_id INT NOT NULL,
+  cal_name VARCHAR(50) NULL,
+  cal_date INT NOT NULL,
+  cal_type VARCHAR(10) NOT NULL,
+  cal_login VARCHAR(25) NULL,
+  PRIMARY KEY ( cal_import_id )
+);
+
+CREATE TABLE webcal_import_data (
+  cal_import_id INT NOT NULL,
+  cal_id INT NOT NULL,
+  cal_login VARCHAR(25) NOT NULL,
+  cal_import_type VARCHAR(15) NOT NULL,
+  cal_external_id VARCHAR(200) NULL,
+  PRIMARY KEY  ( cal_id, cal_login )
+);
+
+
+CREATE TABLE webcal_report (
+  cal_login VARCHAR(25) NOT NULL,
+  cal_report_id INT NOT NULL,
+  cal_is_global CHAR(1) DEFAULT 'N' NOT NULL,
+  cal_report_type VARCHAR(20) NOT NULL,
+  cal_include_header CHAR(1) DEFAULT 'Y' NOT NULL,
+  cal_report_name VARCHAR(50) NOT NULL,
+  cal_time_range INT NOT NULL,
+  cal_user VARCHAR(25) NULL,
+  cal_allow_nav CHAR(1) DEFAULT 'Y',
+  cal_cat_id INT NULL,
+  cal_include_empty CHAR(1) DEFAULT 'N',
+  cal_show_in_trailer CHAR(1) DEFAULT 'N',
+  cal_update_date INT NOT NULL,
+  PRIMARY KEY ( cal_report_id )
+);
+
+CREATE TABLE webcal_report_template (
+  cal_report_id INT NOT NULL,
+  cal_template_type CHAR(1) NOT NULL,
+  cal_template_text TEXT,
+  PRIMARY KEY ( cal_report_id, cal_template_type )
+);

Modified: trunk/tests/code/syntax/SyntaxTests.php
===================================================================
--- trunk/tests/code/syntax/SyntaxTests.php	2009-04-02 19:16:07 UTC (rev 7307)
+++ trunk/tests/code/syntax/SyntaxTests.php	2009-04-02 19:26:07 UTC (rev 7308)
@@ -28,6 +28,12 @@
     {
 	    $output = `cd .. ; find gforge -name '*.php' -type f  -exec isutf8 {} \;`;
 	    $this->assertEquals('', $output);
+	    $output = `cd .. ; find gforge -name '*.sql' -type f  -exec isutf8 {} \;`;
+	    $this->assertEquals('', $output);
+	    $output = `cd .. ; find gforge -name '*.sh' -type f  -exec isutf8 {} \;`;
+	    $this->assertEquals('', $output);
+	    $output = `cd .. ; find gforge -name '*.pl' -type f  -exec isutf8 {} \;`;
+	    $this->assertEquals('', $output);
     }
 
     /**
@@ -37,5 +43,11 @@
     {
 	    $output = `cd .. ; find gforge -name '*.php' -type f | xargs pcregrep -l '\r$'`;
 	    $this->assertEquals('', $output);
+	    $output = `cd .. ; find gforge -name '*.sql' -type f | xargs pcregrep -l '\r$'`;
+	    $this->assertEquals('', $output);
+	    $output = `cd .. ; find gforge -name '*.sh' -type f | xargs pcregrep -l '\r$'`;
+	    $this->assertEquals('', $output);
+	    $output = `cd .. ; find gforge -name '*.pl' -type f | xargs pcregrep -l '\r$'`;
+	    $this->assertEquals('', $output);
     }
 }




More information about the Fusionforge-commits mailing list