removed mods directory from the ATutor codebase
[atutor.git] / mods / patcher / module.sql
diff --git a/mods/patcher/module.sql b/mods/patcher/module.sql
deleted file mode 100644 (file)
index 4d8184a..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-# --------------------------------------------------------\r
-# Table structure for table `patches`\r
-# since 1.6.1\r
-\r
-CREATE TABLE `patches` (\r
-       `patches_id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,\r
-       `atutor_patch_id` VARCHAR(20) NOT NULL default '',\r
-       `applied_version` VARCHAR(10) NOT NULL default '',\r
-       `patch_folder` VARCHAR(250) NOT NULL default '',\r
-  `description` TEXT NOT NULL,\r
-       `available_to` VARCHAR(250) NOT NULL default '',\r
-  `sql_statement` text NOT NULL,\r
-  `status` varchar(20) NOT NULL default '',\r
-  `remove_permission_files` text NOT NULL,\r
-  `backup_files` text NOT NULL,\r
-  `patch_files` text NOT NULL,\r
-       PRIMARY KEY  (`patches_id`)\r
-);\r
-\r
-\r
-# --------------------------------------------------------\r
-# Table structure for table `patches_files`\r
-# since 1.6.1\r
-\r
-CREATE TABLE `patches_files` (\r
-       `patches_files_id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,\r
-       `patches_id` MEDIUMINT UNSIGNED NOT NULL default 0,\r
-       `action` VARCHAR(20) NOT NULL default '',\r
-       `name` TEXT NOT NULL,\r
-       `location` VARCHAR(250) NOT NULL default '',\r
-       PRIMARY KEY  (`patches_files_id`)\r
-);\r
-\r
-# --------------------------------------------------------\r
-# Table structure for table `patches_files_actions`\r
-# since 1.6.1\r
-\r
-CREATE TABLE `patches_files_actions` (\r
-       `patches_files_actions_id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,\r
-       `patches_files_id` MEDIUMINT UNSIGNED NOT NULL default 0,\r
-       `action` VARCHAR(20) NOT NULL default '',\r
-       `code_from` TEXT NOT NULL,\r
-       `code_to` TEXT NOT NULL,\r
-       PRIMARY KEY  (`patches_files_actions_id`)\r
-);\r
-\r
-# --------------------------------------------------------\r
-# New records for table `language_text`\r
-# since 1.6.1\r
-\r
-INSERT INTO `language_text` VALUES ('en', '_module','patcher','Patcher',NOW(),'');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'get_my_patch', 'Get My Patch', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'atutor_patch_id', 'ATutor Patch ID', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'available_to', 'Available To', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'available_patches', 'Available Patches', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'available_patches_text', 'There are <strong>%s</strong> patches available to install.', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_ERROR_PATCH_ALREADY_INSTALLED', 'The selected patch is already installed.', now(), 'error msg');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_ERROR_CHOOSE_UNINSTALLED_PATCH', 'Please choose an uninstalled patch.', now(), 'error msg');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_ERROR_PATCH_XML_NOT_FOUND', 'Patch XML file is not found.', now(), 'error msg');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_ERROR_REMOVE_WRITE_PERMISSION', 'Please remove write permission from the listed files.', now(), 'error msg');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_ERROR_CANNOT_UNZIP', 'Can NOT unzip the uploaded file.', now(), 'error msg');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_FEEDBACK_PATCH_INSTALLED_SUCCESSFULLY', 'The patch has been installed successfully.', now(), 'feedback msg');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_ERROR_PATCH_DEPENDENCY', 'Due to patch dependency, please install the listed patches before installing this patch: %s', now(), 'error msg');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_INFOS_PATCH_INSTALLED_AND_REMOVE_PERMISSION', 'The patch has been installed. Please remove write permission as instruction.', now(), 'info msg');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'patcher_overwrite_modified_files', \r
-'The listed files are modified locally. If you choose to proceed, the patch file will be copied to your local machine. \r
-You have to manually merge this file and your local copy.<br>', now(), 'patcher');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'patch_local_file_not_exist', \r
-'Cannot proceed. The listed files are not exist in your local machine. If you renamed them to your copy, in order to proceed, please rename back.<br>', now(), 'patcher');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'patcher_alter_modified_files', \r
-'The listed files are modified locally. If you choose to proceed, your local file will be modified. The original\r
-file will be backup before the modification. Please note that the modification on your customized code may break your customization.<br>', now(), 'patcher');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'grant_write_permission', \r
-'Please grant <strong>write</strong> permission to folders and files listed below:<p><strong>Note:</strong> To change permissions on Unix use <kbd>chmod a+rw</kbd> then the file name.</p>', now(), 'patcher');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'remove_write_permission', \r
-'<span style="color:red">Please <strong>REMOVE</strong> write permission on the listed folders and files for your security:</span><p><strong>Note:</strong> To remove permissions on Unix use <kbd>chmod 755</kbd> then the file name..</p>', now(), 'patcher');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'patcher_show_backup_files', \r
-'Below is the list of the backup files created by patch installation. After ensuring ATutor works properly with the patch, you may want to \r
-delete these files. If  ATutor does not work properly with the patch, you can always revert back to the old files by renaming the backup files \r
-to the original file names,  removing the [patch_id].old portion of the file name. <br>', now(), 'patcher');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'patcher_show_patch_files', \r
-'Below is the list of the patch files copied to your computer. \r
-Please manually merge the change between the patch files and your local copy. <br>', now(), 'patcher');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'patch_dependent_patch_not_installed', \r
-'<br><span style="color: red">Waring: Due to patch dependency, please install the listed patches first: </span>', now(), 'patcher');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'upload_patch', \r
-'Upload a zip file to install patch:', now(), 'patcher');\r
-\r
-# --------------------------------------------------------\r
-# New tables for patch creator\r
-# since 1.6.1\r
-CREATE TABLE `myown_patches` (\r
-       `myown_patch_id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,\r
-       `atutor_patch_id` VARCHAR(20) NOT NULL default '',\r
-       `applied_version` VARCHAR(10) NOT NULL default '',\r
-  `description` TEXT NOT NULL,\r
-  `sql_statement` text NOT NULL,\r
-  `status` varchar(20) NOT NULL default '',\r
-  `last_modified` datetime NOT NULL,\r
-       PRIMARY KEY  (`myown_patch_id`)\r
-);\r
-\r
-CREATE TABLE `myown_patches_dependent` (\r
-       `myown_patches_dependent_id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,\r
-       `myown_patch_id` MEDIUMINT UNSIGNED NOT NULL,\r
-       `dependent_patch_id` VARCHAR(50) NOT NULL default '',\r
-       PRIMARY KEY  (`myown_patches_dependent_id`)\r
-);\r
-\r
-CREATE TABLE `myown_patches_files` (\r
-       `myown_patches_files_id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,\r
-       `myown_patch_id` MEDIUMINT UNSIGNED NOT NULL,\r
-       `action` VARCHAR(20) NOT NULL default '',\r
-       `name` VARCHAR(250) NOT NULL,\r
-       `location` VARCHAR(250) NOT NULL default '',\r
-       `code_from` TEXT NOT NULL,\r
-       `code_to` TEXT NOT NULL,\r
-       `uploaded_file` TEXT NOT NULL,\r
-       PRIMARY KEY  (`myown_patches_files_id`)\r
-);\r
-\r
-# --------------------------------------------------------\r
-# New records for table `language_text` (for patch creator)\r
-# since 1.6.1\r
-\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'myown_patches', 'My Own Patches', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'atutor_patch_id', 'ATutor Patch ID', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'atutor_version_to_apply', 'ATutor Version to Apply', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'dependent_patches', 'Dependent Patches', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'dependent_patch_id', 'Dependent Patch ID', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'add_dependent_patch', 'Add A Dependent Patch', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'sql_statement', 'SQL Statement', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'relative_directory', 'Directory is relative directory to ATutor root, for example: docs/images/ or tools/tests/. Leave empty if it is ATutor root directory.', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'create_patch', 'Create Patch', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'edit_patch', 'Edit Patch', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'delete_patch', 'Delete Patch', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'add_a_file', 'Add A File', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'delete_this_file', 'Delete This File', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'replace_file', 'Replace File', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'alter', 'Alter', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'code_to_replace_from', 'Code To Replace From', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_template', 'code_to_replace_to', 'Code To Replace To', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_ERROR_CHOOSE_ACTION', 'Please choose action for file <strong>%s</strong>', now(), '');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_FEEDBACK_PATCH_CREATED_SUCCESSFULLY', 'The patch has been created successfully.', now(), 'feedback msg');\r
-INSERT INTO `language_text` VALUES ('en', '_msgs', 'AT_CONFIRM_DELETE_MYOWN_PATCH', 'Are you sure you want to <strong>delete</strong> patch <strong>%s</strong>', now(), '');\r