From 6854cb3f4d8219cf1829e32122eb2502a916eae9 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 1 Feb 2020 09:05:48 +0100 Subject: initial checkin --- setup/upgrade/0.9.9.2/flyspray-install.xml | 1049 ++++++++++++++++++++++++++++ setup/upgrade/0.9.9.2/lowercase_emails.php | 6 + setup/upgrade/0.9.9.2/update_users.xml | 70 ++ setup/upgrade/0.9.9.2/upgrade.info | 34 + 4 files changed, 1159 insertions(+) create mode 100644 setup/upgrade/0.9.9.2/flyspray-install.xml create mode 100644 setup/upgrade/0.9.9.2/lowercase_emails.php create mode 100644 setup/upgrade/0.9.9.2/update_users.xml create mode 100644 setup/upgrade/0.9.9.2/upgrade.info (limited to 'setup/upgrade/0.9.9.2') diff --git a/setup/upgrade/0.9.9.2/flyspray-install.xml b/setup/upgrade/0.9.9.2/flyspray-install.xml new file mode 100644 index 0000000..eac0638 --- /dev/null +++ b/setup/upgrade/0.9.9.2/flyspray-install.xml @@ -0,0 +1,1049 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + task_id + user_id + + + task_id + user_id + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + task_id + comment_id + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + type + topic + project_id + max_items + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + task_id + +
+ + + + + + + + + + + + + + + + task_id + dep_task_id + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + group_name + project_id + + + project_id + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + task_id + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + project_id + +
+ + + + + + + + + + + + + + + + + + + + + + project_id + +
+ + + + + + + + + + + + + + + + + + + + + + project_id + +
+ + + + + + + + + + + + + + + + + + + + + + project_id + +
+ + + + + + + + + + + + + + + + + + + + + + project_id + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + project_id + version_tense + +
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + task_id + user_id + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + this_task + related_task + is_duplicate + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + project_id + + + task_severity + + + task_type + + + product_category + + + item_status + + + is_closed + + + closedby_version + + + due_date + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + user_name + +
+ + + + + + + + + + + + + + + + group_id + user_id + + + user_id + +
+ + + + + + + + + + + + + + + + + +
+ + INSERT INTO groups VALUES (DEFAULT, 'Admin', 'Members have unlimited access to all functionality.', 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1); + INSERT INTO groups VALUES (DEFAULT, 'Developers', 'Global Developers for all projects', 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1); + INSERT INTO groups VALUES (DEFAULT, 'Reporters', 'Open new tasks / add comments in all projects', 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1); + INSERT INTO groups VALUES (DEFAULT, 'Basic', 'Members can login, relying upon Project permissions only', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1); + INSERT INTO groups VALUES (DEFAULT, 'Pending', 'Users who are awaiting approval of their accounts.', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + INSERT INTO groups VALUES (DEFAULT, 'Project Managers', 'Permission to do anything related to the Default Project.', 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1); + INSERT INTO history VALUES (DEFAULT, 1, 1, 1130024797, 1, '', '', ''); + INSERT INTO list_category VALUES (DEFAULT, 1, 'Backend / Core', 1, 0, 2, 3); + INSERT INTO list_category VALUES (DEFAULT, 0, 'root', 0, 0, 1, 2); + INSERT INTO list_category VALUES (DEFAULT, 1, 'root', 0, 0, 1, 4); + INSERT INTO list_os VALUES (DEFAULT, 1, 'All', 1, 1); + INSERT INTO list_os VALUES (DEFAULT, 1, 'Windows', 2, 1); + INSERT INTO list_os VALUES (DEFAULT, 1, 'Linux', 3, 1); + INSERT INTO list_os VALUES (DEFAULT, 1, 'Mac OS', 4, 1); + INSERT INTO list_resolution VALUES (DEFAULT, 'Not a bug', 1, 1, 0); + INSERT INTO list_resolution VALUES (DEFAULT, 'Won''t fix', 2, 1, 0); + INSERT INTO list_resolution VALUES (DEFAULT, 'Won''t implement', 3, 1, 0); + INSERT INTO list_resolution VALUES (DEFAULT, 'Works for me', 4, 1, 0); + INSERT INTO list_resolution VALUES (DEFAULT, 'Deferred', 5, 1, 0); + INSERT INTO list_resolution VALUES (DEFAULT, 'Duplicate', 6, 1, 0); + INSERT INTO list_resolution VALUES (DEFAULT, 'Fixed', 7, 1, 0); + INSERT INTO list_resolution VALUES (DEFAULT, 'Implemented', 8, 1, 0); + INSERT INTO list_tasktype VALUES (DEFAULT, 'Bug Report', 1, 1, 0); + INSERT INTO list_tasktype VALUES (DEFAULT, 'Feature Request', 2, 1, 0); + INSERT INTO list_version VALUES (DEFAULT, 1, 'Development', 1, 1, 2); + INSERT INTO list_status (status_name, list_position, show_in_list, project_id) VALUES ('Unconfirmed', 1, 1, 0) + INSERT INTO list_status (status_name, list_position, show_in_list, project_id) VALUES ('New', 2, 1, 0) + INSERT INTO list_status (status_name, list_position, show_in_list, project_id) VALUES ('Assigned', 3, 1, 0) + INSERT INTO list_status (status_name, list_position, show_in_list, project_id) VALUES ('Researching', 4, 1, 0) + INSERT INTO list_status (status_name, list_position, show_in_list, project_id) VALUES ('Waiting on Customer', 5, 1, 0) + INSERT INTO list_status (status_name, list_position, show_in_list, project_id) VALUES ('Requires testing', 6, 1, 0) + INSERT INTO prefs VALUES (DEFAULT, 'fs_ver', '0.9.9'); + INSERT INTO prefs VALUES (DEFAULT, 'jabber_server', ''); + INSERT INTO prefs VALUES (DEFAULT, 'jabber_port', '5222'); + INSERT INTO prefs VALUES (DEFAULT, 'jabber_username', ''); + INSERT INTO prefs VALUES (DEFAULT, 'jabber_password', ''); + INSERT INTO prefs VALUES (DEFAULT, 'anon_group', '4'); + INSERT INTO prefs VALUES (DEFAULT, 'user_notify', '1'); + INSERT INTO prefs VALUES (DEFAULT, 'admin_email', 'flyspray@example.com'); + INSERT INTO prefs VALUES (DEFAULT, 'lang_code', 'en'); + INSERT INTO prefs VALUES (DEFAULT, 'spam_proof', '1'); + INSERT INTO prefs VALUES (DEFAULT, 'default_project', '1'); + INSERT INTO prefs VALUES (DEFAULT, 'dateformat', ''); + INSERT INTO prefs VALUES (DEFAULT, 'dateformat_extended', ''); + INSERT INTO prefs VALUES (DEFAULT, 'anon_reg', '1'); + INSERT INTO prefs VALUES (DEFAULT, 'global_theme', 'CleanFS'); + INSERT INTO prefs VALUES (DEFAULT, 'visible_columns', 'id project category tasktype severity summary status progress'); + INSERT INTO prefs VALUES (DEFAULT, 'smtp_server', ''); + INSERT INTO prefs VALUES (DEFAULT, 'smtp_user', ''); + INSERT INTO prefs VALUES (DEFAULT, 'smtp_pass', ''); + INSERT INTO prefs VALUES (DEFAULT, 'page_title', 'Flyspray::'); + INSERT INTO prefs VALUES (DEFAULT, 'notify_registration', '0'); + INSERT INTO prefs VALUES (DEFAULT, 'jabber_ssl', '0'); + INSERT INTO prefs VALUES (DEFAULT, 'last_update_check', '0'); + INSERT INTO prefs VALUES (DEFAULT, 'cache_feeds', '1'); + INSERT INTO projects VALUES (DEFAULT, 'Default Project', 'CleanFS', 0, 'Welcome to your first Flyspray project! We hope that Flyspray provides you with many hours of increased productivity. If you have any issues, go to http://flyspray.org/support. You can customise this message by clicking the **Manage Project** link in the menu above...', 1, 'id category tasktype severity summary status progress', 1, 0, '', '', NULL, '0', NULL, NULL, '', 'en', 0, 0, 0, NULL, 'index'); + INSERT INTO tasks VALUES (1, 1, 1, 1130024797, 1, 0, 0, 0, ' ', 'Sample Task', 'This isn''t a real task. You should close it and start opening some real tasks.', 2, 1, 1, 1, 0, 1, 1, 2, 0, 0, 0, 0, 0, '', '0'); + INSERT INTO users VALUES (DEFAULT, 'super', '1b3231655cebb7a1f783eddf27d254ca', 'Mr Super User', 'super@example.com', 'super@example.com', 0, 1, 1, '', '', 25, 0, 0, 0, 0, 0); + INSERT INTO users_in_groups VALUES (DEFAULT, 1, 1); + +
diff --git a/setup/upgrade/0.9.9.2/lowercase_emails.php b/setup/upgrade/0.9.9.2/lowercase_emails.php new file mode 100644 index 0000000..24fd28e --- /dev/null +++ b/setup/upgrade/0.9.9.2/lowercase_emails.php @@ -0,0 +1,6 @@ +query('UPDATE {users} SET email_address = LOWER(email_address), jabber_id = LOWER(jabber_id)'); + +?> + diff --git a/setup/upgrade/0.9.9.2/update_users.xml b/setup/upgrade/0.9.9.2/update_users.xml new file mode 100644 index 0000000..591a1bb --- /dev/null +++ b/setup/upgrade/0.9.9.2/update_users.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + user_name + +
+
\ No newline at end of file diff --git a/setup/upgrade/0.9.9.2/upgrade.info b/setup/upgrade/0.9.9.2/upgrade.info new file mode 100644 index 0000000..4ea91dd --- /dev/null +++ b/setup/upgrade/0.9.9.2/upgrade.info @@ -0,0 +1,34 @@ +[defaultupgrade] +1="update_users.xml" +2="lowercase_emails.php" + + +[develupgrade] +1="update_users.xml" + +[fsprefs] +fs_ver="0.9.7" ; doesn't matter which version +jabber_server="" +jabber_port="5222" +jabber_username="" +jabber_password="" +anon_group="0" +user_notify="1" +admin_email="flyspray@example.com" +lang_code="en" +spam_proof="1" +default_project="1" +dateformat="" +dateformat_extended="" +anon_reg="1" +page_title="Flyspray:: " +notify_registration="0" +jabber_ssl="0" +last_update_check="0" +cache_feeds="1" +global_theme="CleanFS" +visible_columns="id project tasktype severity summary status progress" +smtp_server="" +smtp_user="" +smtp_pass="" +lock_for="5" \ No newline at end of file -- cgit v1.2.3-70-g09d2