fix: ccda zip import and php warnings and deprecations (#7416)
[openemr.git] / sql / 4_1_2-to-4_2_0_upgrade.sql
blob47162dc5e149ec375a6870a57f03617d329c9aef
1 --
2 --  Comment Meta Language Constructs:
3 --
4 --  #IfNotTable
5 --    argument: table_name
6 --    behavior: if the table_name does not exist,  the block will be executed
8 --  #IfTable
9 --    argument: table_name
10 --    behavior: if the table_name does exist, the block will be executed
12 --  #IfMissingColumn
13 --    arguments: table_name colname
14 --    behavior:  if the table exists but the column does not,  the block will be executed
16 --  #IfNotColumnType
17 --    arguments: table_name colname value
18 --    behavior:  If the table table_name does not have a column colname with a data type equal to value, then the block will be executed
20 --  #IfNotRow
21 --    arguments: table_name colname value
22 --    behavior:  If the table table_name does not have a row where colname = value, the block will be executed.
24 --  #IfNotRow2D
25 --    arguments: table_name colname value colname2 value2
26 --    behavior:  If the table table_name does not have a row where colname = value AND colname2 = value2, the block will be executed.
28 --  #IfNotRow3D
29 --    arguments: table_name colname value colname2 value2 colname3 value3
30 --    behavior:  If the table table_name does not have a row where colname = value AND colname2 = value2 AND colname3 = value3, the block will be executed.
32 --  #IfNotRow4D
33 --    arguments: table_name colname value colname2 value2 colname3 value3 colname4 value4
34 --    behavior:  If the table table_name does not have a row where colname = value AND colname2 = value2 AND colname3 = value3 AND colname4 = value4, the block will be executed.
36 --  #IfNotRow2Dx2
37 --    desc:      This is a very specialized function to allow adding items to the list_options table to avoid both redundant option_id and title in each element.
38 --    arguments: table_name colname value colname2 value2 colname3 value3
39 --    behavior:  The block will be executed if both statements below are true:
40 --               1) The table table_name does not have a row where colname = value AND colname2 = value2.
41 --               2) The table table_name does not have a row where colname = value AND colname3 = value3.
43 --  #IfRow2D
44 --    arguments: table_name colname value colname2 value2
45 --    behavior:  If the table table_name does have a row where colname = value AND colname2 = value2, the block will be executed.
47 --  #IfRow3D
48 --        arguments: table_name colname value colname2 value2 colname3 value3
49 --        behavior:  If the table table_name does have a row where colname = value AND colname2 = value2 AND colname3 = value3, the block will be executed.
51 --  #IfIndex
52 --    desc:      This function is most often used for dropping of indexes/keys.
53 --    arguments: table_name colname
54 --    behavior:  If the table and index exist the relevant statements are executed, otherwise not.
56 --  #IfNotIndex
57 --    desc:      This function will allow adding of indexes/keys.
58 --    arguments: table_name colname
59 --    behavior:  If the index does not exist, it will be created
61 --  #EndIf
62 --    all blocks are terminated with a #EndIf statement.
64 #IfNotRow4D supported_external_dataloads load_type ICD9 load_source CMS load_release_date 2013-10-01 load_filename cmsv31-master-descriptions.zip
65 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD9', 'CMS', '2013-10-01', 'cmsv31-master-descriptions.zip', 'fe0d7f9a5338f5ff187683b4737ad2b7');
66 #EndIf
68 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2012-10-01 load_filename 2013_PCS_long_and_abbreviated_titles.zip
69 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2012-10-01', '2013_PCS_long_and_abbreviated_titles.zip', '04458ed0631c2c122624ee0a4ca1c475');
70 #EndIf
72 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2012-10-01 load_filename 2013-DiagnosisGEMs.zip
73 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2012-10-01', '2013-DiagnosisGEMs.zip', '773aac2a675d6aefd1d7dd149883be51');
74 #EndIf
76 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2012-10-01 load_filename ICD10CMOrderFiles_2013.zip
77 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2012-10-01', 'ICD10CMOrderFiles_2013.zip', '1c175a858f833485ef8f9d3e66b4d8bd');
78 #EndIf
80 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2012-10-01 load_filename ProcedureGEMs_2013.zip
81 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2012-10-01', 'ProcedureGEMs_2013.zip', '92aa7640e5ce29b9629728f7d4fc81db');
82 #EndIf
84 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2012-10-01 load_filename 2013-ReimbursementMapping_dx.zip
85 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2012-10-01', '2013-ReimbursementMapping_dx.zip', '0d5d36e3f4519bbba08a9508576787fb');
86 #EndIf
88 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2012-10-01 load_filename ReimbursementMapping_pr_2013.zip
89 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2012-10-01', 'ReimbursementMapping_pr_2013.zip', '4c3920fedbcd9f6af54a1dc9069a11ca');
90 #EndIf
92 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2013-10-01 load_filename 2014-PCS-long-and-abbreviated-titles.zip
93 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2013-10-01', '2014-PCS-long-and-abbreviated-titles.zip', '2d03514a0c66d92cf022a0bc28c83d38');
94 #EndIf
96 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2013-10-01 load_filename DiagnosisGEMs-2014.zip
97 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2013-10-01', 'DiagnosisGEMs-2014.zip', '3ed7b7c5a11c766102b12d97d777a11b');
98 #EndIf
100 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2013-10-01 load_filename 2014-ICD10-Code-Descriptions.zip
101 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2013-10-01', '2014-ICD10-Code-Descriptions.zip', '5458b95f6f37228b5cdfa03aefc6c8bb');
102 #EndIf
104 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2013-10-01 load_filename ProcedureGEMs-2014.zip
105 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2013-10-01', 'ProcedureGEMs-2014.zip', 'be46de29f4f40f97315d04821273acf9');
106 #EndIf
108 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2013-10-01 load_filename 2014-Reimbursement-Mappings-DX.zip
109 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2013-10-01', '2014-Reimbursement-Mappings-DX.zip', '614b3957304208e3ef7d3ba8b3618888');
110 #EndIf
112 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2013-10-01 load_filename 2014-Reimbursement-Mappings-PR.zip
113 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2013-10-01', '2014-Reimbursement-Mappings-PR.zip', 'f306a0e8c9edb34d28fd6ce8af82b646');
114 #EndIf
116 #IfMissingColumn patient_data email_direct
117 ALTER TABLE `patient_data` ADD COLUMN `email_direct` varchar(255) NOT NULL default '';
118 INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`) VALUES('DEM', 'email_direct', '2Contact', 'Trusted Email', 14, 2, 1, 30, 95, '', 1, 1, '', '', 'Trusted (Direct) Email Address', 0);
119 #EndIf
121 #IfMissingColumn users email_direct
122 ALTER TABLE `users` ADD COLUMN `email_direct` varchar(255) NOT NULL default '';
123 #EndIf
125 #IfNotTable erx_ttl_touch
126 CREATE TABLE `erx_ttl_touch` (
127   `patient_id` BIGINT(20) UNSIGNED NOT NULL COMMENT 'Patient record Id', 
128   `process` ENUM('allergies','medications') NOT NULL COMMENT 'NewCrop eRx SOAP process',
129   `updated` DATETIME NOT NULL COMMENT 'Date and time of last process update for patient', 
130   PRIMARY KEY (`patient_id`, `process`) ) 
131 ENGINE = InnoDB COMMENT = 'Store records last update per patient data process';
132 #EndIf
134 #IfMissingColumn form_misc_billing_options box_14_date_qual
135 ALTER TABLE `form_misc_billing_options` 
136 ADD COLUMN `box_14_date_qual` CHAR(3) NULL DEFAULT NULL;
137 #EndIf
139 #IfMissingColumn form_misc_billing_options box_15_date_qual
140 ALTER TABLE `form_misc_billing_options` 
141 ADD COLUMN `box_15_date_qual` CHAR(3) NULL DEFAULT NULL;
142 #EndIf
144 #IfNotTable esign_signatures
145 CREATE TABLE `esign_signatures` (
146   `id` int(11) NOT NULL AUTO_INCREMENT,
147   `tid` int(11) NOT NULL COMMENT 'Table row ID for signature',
148   `table` varchar(255) NOT NULL COMMENT 'table name for the signature',
149   `uid` int(11) NOT NULL COMMENT 'user id for the signing user',
150   `datetime` datetime NOT NULL COMMENT 'datetime of the signature action',
151   `is_lock` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'sig, lock or amendment',
152   `amendment` text COMMENT 'amendment text, if any',
153   `hash` varchar(255) NOT NULL COMMENT 'hash of signed data',
154   `signature_hash` varchar(255) NOT NULL COMMENT 'hash of signature itself',
155   PRIMARY KEY (`id`),
156   KEY `tid` (`tid`),
157   KEY `table` (`table`)
158 ) ENGINE=InnoDB AUTO_INCREMENT=1 ;
159 #EndIf
161 #IfMissingColumn layout_options list_backup_id
162 ALTER TABLE `layout_options` ADD COLUMN `list_backup_id` VARCHAR(31) NOT NULL DEFAULT '';
163 UPDATE `layout_options` SET `list_backup_id` = 'ethrace' WHERE `layout_options`.`form_id` = 'DEM' AND `layout_options`.`field_id` = 'ethnicity';
164 UPDATE `layout_options` SET `list_backup_id` = 'ethrace' WHERE `layout_options`.`form_id` = 'DEM' AND `layout_options`.`field_id` = 'race';
165 #EndIf
167 UPDATE `layout_options` SET `data_type` = '36' WHERE `layout_options`.`form_id` = 'DEM' AND `layout_options`.`field_id` = 'race';
168 UPDATE `layout_options` SET `data_type` = '1', `datacols` = '3' WHERE `layout_options`.`form_id` = 'DEM' AND `layout_options`.`field_id` = 'language';
170 #IfNotTable modules
171 CREATE TABLE `modules` (
172   `mod_id` INT(11) NOT NULL AUTO_INCREMENT,
173   `mod_name` VARCHAR(64) NOT NULL DEFAULT '0',
174   `mod_directory` VARCHAR(64) NOT NULL DEFAULT '',
175   `mod_parent` VARCHAR(64) NOT NULL DEFAULT '',
176   `mod_type` VARCHAR(64) NOT NULL DEFAULT '',
177   `mod_active` INT(1) UNSIGNED NOT NULL DEFAULT '0',
178   `mod_ui_name` VARCHAR(20) NOT NULL DEFAULT '''',
179   `mod_relative_link` VARCHAR(64) NOT NULL DEFAULT '',
180   `mod_ui_order` TINYINT(3) NOT NULL DEFAULT '0',
181   `mod_ui_active` INT(1) UNSIGNED NOT NULL DEFAULT '0',
182   `mod_description` VARCHAR(255) NOT NULL DEFAULT '',
183   `mod_nick_name` VARCHAR(25) NOT NULL DEFAULT '',
184   `mod_enc_menu` VARCHAR(10) NOT NULL DEFAULT 'no',
185   `permissions_item_table` CHAR(100) DEFAULT NULL,
186   `directory` VARCHAR(255) NOT NULL,
187   `date` DATETIME NOT NULL,
188   `sql_run` TINYINT(4) DEFAULT '0',
189   `type` TINYINT(4) DEFAULT '0',
190   PRIMARY KEY (`mod_id`,`mod_directory`)
191 ) ENGINE=InnoDB;
192 #EndIf
194 #IfNotTable module_acl_group_settings
195 CREATE TABLE `module_acl_group_settings` (
196   `module_id` int(11) NOT NULL,
197   `group_id` int(11) NOT NULL,
198   `section_id` int(11) NOT NULL,
199   `allowed` tinyint(1) DEFAULT NULL,
200   PRIMARY KEY (`module_id`,`group_id`,`section_id`)
201 ) ENGINE=InnoDB;
202 #EndIf
204 #IfNotTable module_acl_sections
205 CREATE TABLE `module_acl_sections` (
206   `section_id` int(11) DEFAULT NULL,
207   `section_name` varchar(255) DEFAULT NULL,
208   `parent_section` int(11) DEFAULT NULL,
209   `section_identifier` varchar(50) DEFAULT NULL,
210   `module_id` int(11) DEFAULT NULL
211 ) ENGINE=InnoDB;
212 #EndIf
214 #IfNotTable module_acl_user_settings
215 CREATE TABLE `module_acl_user_settings` (
216   `module_id` int(11) NOT NULL,
217   `user_id` int(11) NOT NULL,
218   `section_id` int(11) NOT NULL,
219   `allowed` int(1) DEFAULT NULL,
220   PRIMARY KEY (`module_id`,`user_id`,`section_id`)
221 ) ENGINE=InnoDB;
222 #EndIf
224 #IfNotTable module_configuration
225 CREATE TABLE `module_configuration` (
226   `module_config_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
227   `module_id` int(10) unsigned NOT NULL,
228   `field_name` varchar(45) NOT NULL,
229   `field_value` varchar(255) NOT NULL,
230   PRIMARY KEY (`module_config_id`)
231 ) ENGINE=InnoDB;
232 #EndIf
234 #IfNotTable modules_hooks_settings
235 CREATE TABLE `modules_hooks_settings` (
236   `id` int(11) NOT NULL AUTO_INCREMENT,
237   `mod_id` int(11) DEFAULT NULL,
238   `enabled_hooks` varchar(255) DEFAULT NULL,
239   `attached_to` varchar(45) DEFAULT NULL,
240   PRIMARY KEY (`id`)
241 ) ENGINE=InnoDB;
242 #EndIf
244 #IfNotTable modules_settings
245 CREATE TABLE `modules_settings` (
246   `mod_id` INT(11) DEFAULT NULL,
247   `fld_type` SMALLINT(6) DEFAULT NULL COMMENT '1=>ACL,2=>preferences,3=>hooks',
248   `obj_name` VARCHAR(255) DEFAULT NULL,
249   `menu_name` VARCHAR(255) DEFAULT NULL,
250   `path` VARCHAR(255) DEFAULT NULL
251 ) ENGINE=InnoDB;
252 #EndIf
254 #IfNotRow2D list_options list_id lists option_id insurance_types
255 INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('lists','insurance_types','Insurance Types',1);
256 INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('insurance_types','primary'  ,'Primary'  ,10);
257 INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('insurance_types','secondary','Secondary',20);
258 INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('insurance_types','tertiary' ,'Tertiary' ,30);
259 #EndIf
261 #IfMissingColumn patient_data cmsportal_login
262 ALTER TABLE `patient_data` ADD COLUMN `cmsportal_login` varchar(60) NOT NULL default '';
263 INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`) VALUES
264   ('DEM', 'cmsportal_login', '3Choices', 'CMS Portal Login', 15, 2, 1, 30, 60, '', 1, 1, '', '', 'Login ID for the CMS Patient Portal', 0);
265 #EndIf
267 #IfNotColumnType procedure_order control_id varchar(255)
268 ALTER TABLE `procedure_order` CHANGE `control_id`
269   `control_id` varchar(255) NOT NULL DEFAULT '' COMMENT 'This is the CONTROL ID that is sent back from lab';
270 #EndIf
272 #IfMissingColumn procedure_providers direction
273 ALTER TABLE `procedure_providers`
274 ADD COLUMN `direction` char(1) NOT NULL DEFAULT 'B' COMMENT 'Bidirectional or Results-only';
275 #EndIf
277 #IfNotColumnType billing units int(11)
278   ALTER TABLE `billing` CHANGE `units` `units` int(11) DEFAULT NULL;
279 #EndIf
281 #IfNotColumnType codes units int(11)
282   ALTER TABLE `codes`   CHANGE `units` `units` int(11) DEFAULT NULL;
283 #EndIf
285 #IfNotRow2D list_options list_id language option_id declne_to_specfy
286 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'declne_to_specfy', 'Declined To Specify', 0, 0, 0);
287 #EndIf
289 #IfNotRow2D list_options list_id ethrace option_id declne_to_specfy
290 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('ethrace', 'declne_to_specfy', 'Declined To Specify', 0, 0, 0);
291 #EndIf
293 #IfNotRow2D list_options list_id race option_id declne_to_specfy
294 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('race', 'declne_to_specfy', 'Declined To Specify', 0, 0, 0);
295 #EndIf
297 #IfNotRow2Dx2 list_options list_id language option_id abkhazian title Abkhazian
298 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'abkhazian', 'Abkhazian', 10, 0, 0);
299 #EndIf
301 #IfRow2D list_options list_id language option_id abkhazian
302 UPDATE `list_options` SET `notes` = 'abk' WHERE `option_id` = 'abkhazian' AND `list_id` = 'language';
303 #EndIf
305 #IfRow2D list_options list_id language title Abkhazian
306 UPDATE `list_options` SET `notes` = 'abk' WHERE `title` = 'Abkhazian' AND `list_id` = 'language';
307 #EndIf
309 #IfNotRow2Dx2 list_options list_id language option_id afar title Afar
310 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'afar', 'Afar', 20, 0, 0);
311 #EndIf
313 #IfRow2D list_options list_id language option_id afar
314 UPDATE `list_options` SET `notes` = 'aar' WHERE `option_id` = 'afar' AND `list_id` = 'language';
315 #EndIf
317 #IfRow2D list_options list_id language title Afar
318 UPDATE `list_options` SET `notes` = 'aar' WHERE `title` = 'Afar' AND `list_id` = 'language';
319 #EndIf
321 #IfNotRow2Dx2 list_options list_id language option_id afrikaans title Afrikaans
322 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'afrikaans', 'Afrikaans', 30, 0, 0);
323 #EndIf
325 #IfRow2D list_options list_id language option_id afrikaans
326 UPDATE `list_options` SET `notes` = 'afr' WHERE `option_id` = 'afrikaans' AND `list_id` = 'language';
327 #EndIf
329 #IfRow2D list_options list_id language title Afrikaans
330 UPDATE `list_options` SET `notes` = 'afr' WHERE `title` = 'Afrikaans' AND `list_id` = 'language';
331 #EndIf
333 #IfNotRow2Dx2 list_options list_id language option_id akan title Akan
334 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'akan', 'Akan', 40, 0, 0);
335 #EndIf
337 #IfRow2D list_options list_id language option_id akan
338 UPDATE `list_options` SET `notes` = 'aka' WHERE `option_id` = 'akan' AND `list_id` = 'language';
339 #EndIf
341 #IfRow2D list_options list_id language title Akan
342 UPDATE `list_options` SET `notes` = 'aka' WHERE `title` = 'Akan' AND `list_id` = 'language';
343 #EndIf
345 #IfNotRow2Dx2 list_options list_id language option_id albanian title Albanian
346 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'albanian', 'Albanian', 50, 0, 0);
347 #EndIf
349 #IfRow2D list_options list_id language option_id albanian
350 UPDATE `list_options` SET `notes` = 'alb(B)|sqi(T)' WHERE `option_id` = 'albanian' AND `list_id` = 'language';
351 #EndIf
353 #IfRow2D list_options list_id language title Albanian
354 UPDATE `list_options` SET `notes` = 'alb(B)|sqi(T)' WHERE `title` = 'Albanian' AND `list_id` = 'language';
355 #EndIf
357 #IfNotRow2Dx2 list_options list_id language option_id amharic title Amharic
358 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'amharic', 'Amharic', 60, 0, 0);
359 #EndIf
361 #IfRow2D list_options list_id language option_id amharic
362 UPDATE `list_options` SET `notes` = 'amh' WHERE `option_id` = 'amharic' AND `list_id` = 'language';
363 #EndIf
365 #IfRow2D list_options list_id language title Amharic
366 UPDATE `list_options` SET `notes` = 'amh' WHERE `title` = 'Amharic' AND `list_id` = 'language';
367 #EndIf
369 #IfNotRow2Dx2 list_options list_id language option_id arabic title Arabic
370 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'arabic', 'Arabic', 70, 0, 0);
371 #EndIf
373 #IfRow2D list_options list_id language option_id arabic
374 UPDATE `list_options` SET `notes` = 'ara' WHERE `option_id` = 'arabic' AND `list_id` = 'language';
375 #EndIf
377 #IfRow2D list_options list_id language title Arabic
378 UPDATE `list_options` SET `notes` = 'ara' WHERE `title` = 'Arabic' AND `list_id` = 'language';
379 #EndIf
381 #IfNotRow2Dx2 list_options list_id language option_id aragonese title Aragonese
382 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'aragonese', 'Aragonese', 80, 0, 0);
383 #EndIf
385 #IfRow2D list_options list_id language option_id aragonese
386 UPDATE `list_options` SET `notes` = 'arg' WHERE `option_id` = 'aragonese' AND `list_id` = 'language';
387 #EndIf
389 #IfRow2D list_options list_id language title Aragonese
390 UPDATE `list_options` SET `notes` = 'arg' WHERE `title` = 'Aragonese' AND `list_id` = 'language';
391 #EndIf
393 #IfNotRow2Dx2 list_options list_id language option_id armenian title Armenian
394 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'armenian', 'Armenian', 90, 0, 0);
395 #EndIf
397 #IfRow2D list_options list_id language option_id armenian
398 UPDATE `list_options` SET `notes` = 'arm(B)|hye(T)' WHERE `option_id` = 'armenian' AND `list_id` = 'language';
399 #EndIf
401 #IfRow2D list_options list_id language title Armenian
402 UPDATE `list_options` SET `notes` = 'arm(B)|hye(T)' WHERE `title` = 'Armenian' AND `list_id` = 'language';
403 #EndIf
405 #IfRow3D list_options list_id language seq 10 option_id armenian
406 UPDATE `list_options` SET `seq` = 90 WHERE `option_id` = 'armenian' AND `list_id` = 'language';
407 #EndIf
409 #IfRow3D list_options list_id language seq 10 title Armenian
410 UPDATE `list_options` SET `seq` = 90 WHERE `title` = 'Armenian' AND `list_id` = 'language';
411 #EndIf
413 #IfNotRow2Dx2 list_options list_id language option_id assamese title Assamese
414 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'assamese', 'Assamese', 100, 0, 0);
415 #EndIf
417 #IfRow2D list_options list_id language option_id assamese
418 UPDATE `list_options` SET `notes` = 'asm' WHERE `option_id` = 'assamese' AND `list_id` = 'language';
419 #EndIf
421 #IfRow2D list_options list_id language title Assamese
422 UPDATE `list_options` SET `notes` = 'asm' WHERE `title` = 'Assamese' AND `list_id` = 'language';
423 #EndIf
425 #IfNotRow2Dx2 list_options list_id language option_id avaric title Avaric
426 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'avaric', 'Avaric', 110, 0, 0);
427 #EndIf
429 #IfRow2D list_options list_id language option_id avaric
430 UPDATE `list_options` SET `notes` = 'ava' WHERE `option_id` = 'avaric' AND `list_id` = 'language';
431 #EndIf
433 #IfRow2D list_options list_id language title Avaric
434 UPDATE `list_options` SET `notes` = 'ava' WHERE `title` = 'Avaric' AND `list_id` = 'language';
435 #EndIf
437 #IfNotRow2Dx2 list_options list_id language option_id avestan title Avestan
438 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'avestan', 'Avestan', 120, 0, 0);
439 #EndIf
441 #IfRow2D list_options list_id language option_id avestan
442 UPDATE `list_options` SET `notes` = 'ave' WHERE `option_id` = 'avestan' AND `list_id` = 'language';
443 #EndIf
445 #IfRow2D list_options list_id language title Avestan
446 UPDATE `list_options` SET `notes` = 'ave' WHERE `title` = 'Avestan' AND `list_id` = 'language';
447 #EndIf
449 #IfNotRow2Dx2 list_options list_id language option_id aymara title Aymara
450 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'aymara', 'Aymara', 130, 0, 0);
451 #EndIf
453 #IfRow2D list_options list_id language option_id aymara
454 UPDATE `list_options` SET `notes` = 'aym' WHERE `option_id` = 'aymara' AND `list_id` = 'language';
455 #EndIf
457 #IfRow2D list_options list_id language title Aymara
458 UPDATE `list_options` SET `notes` = 'aym' WHERE `title` = 'Aymara' AND `list_id` = 'language';
459 #EndIf
461 #IfNotRow2Dx2 list_options list_id language option_id azerbaijani title Azerbaijani
462 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'azerbaijani', 'Azerbaijani', 140, 0, 0);
463 #EndIf
465 #IfRow2D list_options list_id language option_id azerbaijani
466 UPDATE `list_options` SET `notes` = 'aze' WHERE `option_id` = 'azerbaijani' AND `list_id` = 'language';
467 #EndIf
469 #IfRow2D list_options list_id language title Azerbaijani
470 UPDATE `list_options` SET `notes` = 'aze' WHERE `title` = 'Azerbaijani' AND `list_id` = 'language';
471 #EndIf
473 #IfNotRow2Dx2 list_options list_id language option_id bambara title Bambara
474 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bambara', 'Bambara', 150, 0, 0);
475 #EndIf
477 #IfRow2D list_options list_id language option_id bambara
478 UPDATE `list_options` SET `notes` = 'bam' WHERE `option_id` = 'bambara' AND `list_id` = 'language';
479 #EndIf
481 #IfRow2D list_options list_id language title Bambara
482 UPDATE `list_options` SET `notes` = 'bam' WHERE `title` = 'Bambara' AND `list_id` = 'language';
483 #EndIf
485 #IfNotRow2Dx2 list_options list_id language option_id bashkir title Bashkir
486 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bashkir', 'Bashkir', 160, 0, 0);
487 #EndIf
489 #IfRow2D list_options list_id language option_id bashkir
490 UPDATE `list_options` SET `notes` = 'bak' WHERE `option_id` = 'bashkir' AND `list_id` = 'language';
491 #EndIf
493 #IfRow2D list_options list_id language title Bashkir
494 UPDATE `list_options` SET `notes` = 'bak' WHERE `title` = 'Bashkir' AND `list_id` = 'language';
495 #EndIf
497 #IfNotRow2Dx2 list_options list_id language option_id basque title Basque
498 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'basque', 'Basque', 170, 0, 0);
499 #EndIf
501 #IfRow2D list_options list_id language option_id basque
502 UPDATE `list_options` SET `notes` = 'baq(B)|eus(T)' WHERE `option_id` = 'basque' AND `list_id` = 'language';
503 #EndIf
505 #IfRow2D list_options list_id language title Basque
506 UPDATE `list_options` SET `notes` = 'baq(B)|eus(T)' WHERE `title` = 'Basque' AND `list_id` = 'language';
507 #EndIf
509 #IfNotRow2Dx2 list_options list_id language option_id belarusian title Belarusian
510 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'belarusian', 'Belarusian', 180, 0, 0);
511 #EndIf
513 #IfRow2D list_options list_id language option_id belarusian
514 UPDATE `list_options` SET `notes` = 'bel' WHERE `option_id` = 'belarusian' AND `list_id` = 'language';
515 #EndIf
517 #IfRow2D list_options list_id language title Belarusian
518 UPDATE `list_options` SET `notes` = 'bel' WHERE `title` = 'Belarusian' AND `list_id` = 'language';
519 #EndIf
521 #IfNotRow2Dx2 list_options list_id language option_id bengali title Bengali
522 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bengali', 'Bengali', 190, 0, 0);
523 #EndIf
525 #IfRow2D list_options list_id language option_id bengali
526 UPDATE `list_options` SET `notes` = 'ben' WHERE `option_id` = 'bengali' AND `list_id` = 'language';
527 #EndIf
529 #IfRow2D list_options list_id language title Bengali
530 UPDATE `list_options` SET `notes` = 'ben' WHERE `title` = 'Bengali' AND `list_id` = 'language';
531 #EndIf
533 #IfNotRow2Dx2 list_options list_id language option_id bihari_languages title Bihari languages
534 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bihari_languages', 'Bihari languages', 200, 0, 0);
535 #EndIf
537 #IfRow2D list_options list_id language option_id bihari_languages
538 UPDATE `list_options` SET `notes` = 'bih' WHERE `option_id` = 'bihari_languages' AND `list_id` = 'language';
539 #EndIf
541 #IfRow2D list_options list_id language title Bihari languages
542 UPDATE `list_options` SET `notes` = 'bih' WHERE `title` = 'Bihari languages' AND `list_id` = 'language';
543 #EndIf
545 #IfNotRow2Dx2 list_options list_id language option_id bislama title Bislama
546 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bislama', 'Bislama', 210, 0, 0);
547 #EndIf
549 #IfRow2D list_options list_id language option_id bislama
550 UPDATE `list_options` SET `notes` = 'bis' WHERE `option_id` = 'bislama' AND `list_id` = 'language';
551 #EndIf
553 #IfRow2D list_options list_id language title Bislama
554 UPDATE `list_options` SET `notes` = 'bis' WHERE `title` = 'Bislama' AND `list_id` = 'language';
555 #EndIf
557 #IfNotRow2Dx2 list_options list_id language option_id bokmal_norwegian_norwegian_bok title Bokmål, Norwegian; Norwegian Bokmål
558 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bokmal_norwegian_norwegian_bok', 'Bokmål, Norwegian; Norwegian Bokmål', 220, 0, 0);
559 #EndIf
561 #IfRow2D list_options list_id language option_id bokmal_norwegian_norwegian_bok
562 UPDATE `list_options` SET `notes` = 'nob' WHERE `option_id` = 'bokmal_norwegian_norwegian_bok' AND `list_id` = 'language';
563 #EndIf
565 #IfRow2D list_options list_id language title Bokmål, Norwegian; Norwegian Bokmål
566 UPDATE `list_options` SET `notes` = 'nob' WHERE `title` = 'Bokmål, Norwegian; Norwegian Bokmål' AND `list_id` = 'language';
567 #EndIf
569 #IfNotRow2Dx2 list_options list_id language option_id bosnian title Bosnian
570 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bosnian', 'Bosnian', 230, 0, 0);
571 #EndIf
573 #IfRow2D list_options list_id language option_id bosnian
574 UPDATE `list_options` SET `notes` = 'bos' WHERE `option_id` = 'bosnian' AND `list_id` = 'language';
575 #EndIf
577 #IfRow2D list_options list_id language title Bosnian
578 UPDATE `list_options` SET `notes` = 'bos' WHERE `title` = 'Bosnian' AND `list_id` = 'language';
579 #EndIf
581 #IfNotRow2Dx2 list_options list_id language option_id breton title Breton
582 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'breton', 'Breton', 240, 0, 0);
583 #EndIf
585 #IfRow2D list_options list_id language option_id breton
586 UPDATE `list_options` SET `notes` = 'bre' WHERE `option_id` = 'breton' AND `list_id` = 'language';
587 #EndIf
589 #IfRow2D list_options list_id language title Breton
590 UPDATE `list_options` SET `notes` = 'bre' WHERE `title` = 'Breton' AND `list_id` = 'language';
591 #EndIf
593 #IfNotRow2Dx2 list_options list_id language option_id bulgarian title Bulgarian
594 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bulgarian', 'Bulgarian', 250, 0, 0);
595 #EndIf
597 #IfRow2D list_options list_id language option_id bulgarian
598 UPDATE `list_options` SET `notes` = 'bul' WHERE `option_id` = 'bulgarian' AND `list_id` = 'language';
599 #EndIf
601 #IfRow2D list_options list_id language title Bulgarian
602 UPDATE `list_options` SET `notes` = 'bul' WHERE `title` = 'Bulgarian' AND `list_id` = 'language';
603 #EndIf
605 #IfNotRow2Dx2 list_options list_id language option_id burmese title Burmese
606 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'burmese', 'Burmese', 260, 0, 0);
607 #EndIf
609 #IfRow2D list_options list_id language option_id burmese
610 UPDATE `list_options` SET `notes` = 'bur(B)|mya(T)' WHERE `option_id` = 'burmese' AND `list_id` = 'language';
611 #EndIf
613 #IfRow2D list_options list_id language title Burmese
614 UPDATE `list_options` SET `notes` = 'bur(B)|mya(T)' WHERE `title` = 'Burmese' AND `list_id` = 'language';
615 #EndIf
617 #IfNotRow2Dx2 list_options list_id language option_id catalan_valencian title Catalan; Valencian
618 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, option_value ) VALUES ('language', 'catalan_valencian', 'Catalan; Valencian', 270, 0, 0);
619 #EndIf
621 #IfRow2D list_options list_id language option_id catalan_valencian
622 UPDATE `list_options` SET `notes` = 'cat' WHERE `option_id` = 'catalan_valencian' AND `list_id` = 'language';
623 #EndIf
625 #IfRow2D list_options list_id language title Catalan; Valencian
626 UPDATE `list_options` SET `notes` = 'cat' WHERE `title` = 'Catalan; Valencian' AND `list_id` = 'language';
627 #EndIf
629 #IfNotRow2Dx2 list_options list_id language option_id central_khmer title Central Khmer
630 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'central_khmer', 'Central Khmer', 280, 0, 0);
631 #EndIf
633 #IfRow2D list_options list_id language option_id central_khmer
634 UPDATE `list_options` SET `notes` = 'khm' WHERE `option_id` = 'central_khmer' AND `list_id` = 'language';
635 #EndIf
637 #IfRow2D list_options list_id language title Central Khmer
638 UPDATE `list_options` SET `notes` = 'khm' WHERE `title` = 'Central Khmer' AND `list_id` = 'language';
639 #EndIf
641 #IfNotRow2Dx2 list_options list_id language option_id chamorro title Chamorro
642 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chamorro', 'Chamorro', 290, 0, 0);
643 #EndIf
645 #IfRow2D list_options list_id language option_id chamorro
646 UPDATE `list_options` SET `notes` = 'cha' WHERE `option_id` = 'chamorro' AND `list_id` = 'language';
647 #EndIf
649 #IfRow2D list_options list_id language title Chamorro
650 UPDATE `list_options` SET `notes` = 'cha' WHERE `title` = 'Chamorro' AND `list_id` = 'language';
651 #EndIf
653 #IfNotRow2Dx2 list_options list_id language option_id chechen title Chechen
654 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chechen', 'Chechen', 300, 0, 0);
655 #EndIf
657 #IfRow2D list_options list_id language option_id chechen
658 UPDATE `list_options` SET `notes` = 'che' WHERE `option_id` = 'chechen' AND `list_id` = 'language';
659 #EndIf
661 #IfRow2D list_options list_id language title Chechen
662 UPDATE `list_options` SET `notes` = 'che' WHERE `title` = 'Chechen' AND `list_id` = 'language';
663 #EndIf
665 #IfNotRow2Dx2 list_options list_id language option_id chichewa_chewa_nyanja title Chichewa; Chewa; Nyanja
666 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chichewa_chewa_nyanja', 'Chichewa; Chewa; Nyanja', 310, 0, 0);
667 #EndIf
669 #IfRow2D list_options list_id language option_id chichewa_chewa_nyanja
670 UPDATE `list_options` SET `notes` = 'nya' WHERE `option_id` = 'chichewa_chewa_nyanja' AND `list_id` = 'language';
671 #EndIf
673 #IfRow2D list_options list_id language title Chichewa; Chewa; Nyanja
674 UPDATE `list_options` SET `notes` = 'nya' WHERE `title` = 'Chichewa; Chewa; Nyanja' AND `list_id` = 'language';
675 #EndIf
677 #IfNotRow2Dx2 list_options list_id language option_id chinese title Chinese
678 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chinese', 'Chinese', 320, 0, 0);
679 #EndIf
681 #IfRow2D list_options list_id language option_id chinese
682 UPDATE `list_options` SET `notes` = 'chi(B)|zho(T)' WHERE `option_id` = 'chinese' AND `list_id` = 'language';
683 #EndIf
685 #IfRow2D list_options list_id language title Chinese
686 UPDATE `list_options` SET `notes` = 'chi(B)|zho(T)' WHERE `title` = 'Chinese' AND `list_id` = 'language';
687 #EndIf
689 #IfRow3D list_options list_id language seq 20 option_id chinese
690 UPDATE `list_options` SET `seq` = 320 WHERE `option_id` = 'chinese' AND `list_id` = 'language';
691 #EndIf
693 #IfRow3D list_options list_id language seq 20  title Chinese
694 UPDATE `list_options` SET `seq` = 320 WHERE `title` = 'Chinese' AND `list_id` = 'language';
695 #EndIf
697 #IfNotRow2Dx2 list_options list_id language option_id church_slavic_old_slavonic_chu title Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic
698 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'church_slavic_old_slavonic_chu', 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic', 330, 0, 0);
699 #EndIf
701 #IfRow2D list_options list_id language option_id church_slavic_old_slavonic_chu
702 UPDATE `list_options` SET `notes` = 'chu' WHERE `option_id` = 'church_slavic_old_slavonic_chu' AND `list_id` = 'language';
703 #EndIf
705 #IfRow2D list_options list_id language title Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic
706 UPDATE `list_options` SET `notes` = 'chu' WHERE `title` = 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic' AND `list_id` = 'language';
707 #EndIf
709 #IfNotRow2Dx2 list_options list_id language option_id chuvash title Chuvash
710 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chuvash', 'Chuvash', 340, 0, 0);
711 #EndIf
713 #IfRow2D list_options list_id language option_id chuvash
714 UPDATE `list_options` SET `notes` = 'chv' WHERE `option_id` = 'chuvash' AND `list_id` = 'language';
715 #EndIf
717 #IfRow2D list_options list_id language title Chuvash
718 UPDATE `list_options` SET `notes` = 'chv' WHERE `title` = 'Chuvash' AND `list_id` = 'language';
719 #EndIf
721 #IfNotRow2Dx2 list_options list_id language option_id cornish title Cornish
722 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'cornish', 'Cornish', 350, 0, 0);
723 #EndIf
725 #IfRow2D list_options list_id language option_id cornish
726 UPDATE `list_options` SET `notes` = 'cor' WHERE `option_id` = 'cornish' AND `list_id` = 'language';
727 #EndIf
729 #IfRow2D list_options list_id language title Cornish
730 UPDATE `list_options` SET `notes` = 'cor' WHERE `title` = 'Cornish' AND `list_id` = 'language';
731 #EndIf
733 #IfNotRow2Dx2 list_options list_id language option_id corsican title Corsican
734 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'corsican', 'Corsican', 360, 0, 0);
735 #EndIf
737 #IfRow2D list_options list_id language option_id corsican
738 UPDATE `list_options` SET `notes` = 'cos' WHERE `option_id` = 'corsican' AND `list_id` = 'language';
739 #EndIf
741 #IfRow2D list_options list_id language title Corsican
742 UPDATE `list_options` SET `notes` = 'cos' WHERE `title` = 'Corsican' AND `list_id` = 'language';
743 #EndIf
745 #IfNotRow2Dx2 list_options list_id language option_id cree title Cree
746 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'cree', 'Cree', 370, 0, 0);
747 #EndIf
749 #IfRow2D list_options list_id language option_id cree
750 UPDATE `list_options` SET `notes` = 'cre' WHERE `option_id` = 'cree' AND `list_id` = 'language';
751 #EndIf
753 #IfRow2D list_options list_id language title Cree
754 UPDATE `list_options` SET `notes` = 'cre' WHERE `title` = 'Cree' AND `list_id` = 'language';
755 #EndIf
757 #IfNotRow2Dx2 list_options list_id language option_id croatian title Croatian
758 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'croatian', 'Croatian', 380, 0, 0);
759 #EndIf
761 #IfRow2D list_options list_id language option_id croatian
762 UPDATE `list_options` SET `notes` = 'hrv' WHERE `option_id` = 'croatian' AND `list_id` = 'language';
763 #EndIf
765 #IfRow2D list_options list_id language title Croatian
766 UPDATE `list_options` SET `notes` = 'hrv' WHERE `title` = 'Croatian' AND `list_id` = 'language';
767 #EndIf
769 #IfNotRow2Dx2 list_options list_id language option_id czech title Czech
770 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'czech', 'Czech', 390, 0, 0);
771 #EndIf
773 #IfRow2D list_options list_id language option_id czech
774 UPDATE `list_options` SET `notes` = 'cze(B)|ces(T)' WHERE `option_id` = 'czech' AND `list_id` = 'language';
775 #EndIf
777 #IfRow2D list_options list_id language title Czech
778 UPDATE `list_options` SET `notes` = 'cze(B)|ces(T)' WHERE `title` = 'Czech' AND `list_id` = 'language';
779 #EndIf
781 #IfNotRow2Dx2 list_options list_id language option_id danish title Danish
782 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'danish', 'Danish', 400, 0, 0);
783 #EndIf
785 #IfRow2D list_options list_id language option_id danish
786 UPDATE `list_options` SET `notes` = 'dan' WHERE `option_id` = 'danish' AND `list_id` = 'language';
787 #EndIf
789 #IfRow2D list_options list_id language title Danish
790 UPDATE `list_options` SET `notes` = 'dan' WHERE `title` = 'Danish' AND `list_id` = 'language';
791 #EndIf
793 #IfRow3D list_options list_id language seq 30 option_id danish
794 UPDATE `list_options` SET `seq` = 400 WHERE `option_id` = 'danish' AND `list_id` = 'language';
795 #EndIf
797 #IfRow3D list_options list_id language seq 30 title Danish
798 UPDATE `list_options` SET `seq` = 400 WHERE `title` = 'Danish' AND `list_id` = 'language';
799 #EndIf
801 #IfRow3D list_options list_id language seq 40 option_id deaf
802 UPDATE `list_options` SET `seq` = 405 WHERE `option_id` = 'deaf' AND `list_id` = 'language';
803 #EndIf
805 #IfRow3D list_options list_id language seq 40 title Deaf
806 UPDATE `list_options` SET `seq` = 405 WHERE `title` = 'Deaf' AND `list_id` = 'language';
807 #EndIf
809 #IfNotRow2Dx2 list_options list_id language option_id divehi_dhivehi_maldivian title Divehi; Dhivehi; Maldivian
810 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'divehi_dhivehi_maldivian', 'Divehi; Dhivehi; Maldivian', 410, 0, 0);
811 #EndIf
813 #IfRow2D list_options list_id language option_id divehi_dhivehi_maldivian
814 UPDATE `list_options` SET `notes` = 'div' WHERE `option_id` = 'divehi_dhivehi_maldivian' AND `list_id` = 'language';
815 #EndIf
817 #IfRow2D list_options list_id language title Divehi; Dhivehi; Maldivian
818 UPDATE `list_options` SET `notes` = 'div' WHERE `title` = 'Divehi; Dhivehi; Maldivian' AND `list_id` = 'language';
819 #EndIf
821 #IfNotRow2Dx2 list_options list_id language option_id dutch_flemish title Dutch; Flemish
822 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'dutch_flemish', 'Dutch; Flemish', 420, 0, 0);
823 #EndIf
825 #IfRow2D list_options list_id language option_id dutch_flemish
826 UPDATE `list_options` SET `notes` = 'dut(B)|nld(T)' WHERE `option_id` = 'dutch_flemish' AND `list_id` = 'language';
827 #EndIf
829 #IfRow2D list_options list_id language title Dutch; Flemish
830 UPDATE `list_options` SET `notes` = 'dut(B)|nld(T)' WHERE `title` = 'Dutch; Flemish' AND `list_id` = 'language';
831 #EndIf
833 #IfNotRow2Dx2 list_options list_id language option_id dzongkha title Dzongkha
834 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'dzongkha', 'Dzongkha', 430, 0, 0);
835 #EndIf
837 #IfRow2D list_options list_id language option_id dzongkha
838 UPDATE `list_options` SET `notes` = 'dzo' WHERE `option_id` = 'dzongkha' AND `list_id` = 'language';
839 #EndIf
841 #IfRow2D list_options list_id language title Dzongkha
842 UPDATE `list_options` SET `notes` = 'dzo' WHERE `title` = 'Dzongkha' AND `list_id` = 'language';
843 #EndIf
845 #IfNotRow2Dx2 list_options list_id language option_id English title English
846 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'English', 'English', 440, 0, 0);
847 #EndIf
849 #IfRow2D list_options list_id language option_id English
850 UPDATE `list_options` SET `notes` = 'eng' WHERE `option_id` = 'English' AND `list_id` = 'language';
851 #EndIf
853 #IfRow2D list_options list_id language title English
854 UPDATE `list_options` SET `notes` = 'eng' WHERE `title` = 'English' AND `list_id` = 'language';
855 #EndIf
857 #IfRow3D list_options list_id language seq 50 option_id English
858 UPDATE `list_options` SET `seq` = 440 WHERE `option_id` = 'English' AND `list_id` = 'language';
859 #EndIf
861 #IfRow3D list_options list_id language seq 50 title English
862 UPDATE `list_options` SET `seq` = 440 WHERE `title` = 'English' AND `list_id` = 'language';
863 #EndIf
865 #IfNotRow2Dx2 list_options list_id language option_id esperanto title Esperanto
866 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'esperanto', 'Esperanto', 450, 0, 0);
867 #EndIf
869 #IfRow2D list_options list_id language option_id esperanto
870 UPDATE `list_options` SET `notes` = 'epo' WHERE `option_id` = 'esperanto' AND `list_id` = 'language';
871 #EndIf
873 #IfRow2D list_options list_id language title Esperanto
874 UPDATE `list_options` SET `notes` = 'epo' WHERE `title` = 'Esperanto' AND `list_id` = 'language';
875 #EndIf
877 #IfNotRow2Dx2 list_options list_id language option_id estonian title Estonian
878 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'estonian', 'Estonian', 460, 0, 0);
879 #EndIf
881 #IfRow2D list_options list_id language option_id estonian
882 UPDATE `list_options` SET `notes` = 'est' WHERE `option_id` = 'estonian' AND `list_id` = 'language';
883 #EndIf
885 #IfRow2D list_options list_id language title Estonian
886 UPDATE `list_options` SET `notes` = 'est' WHERE `title` = 'Estonian' AND `list_id` = 'language';
887 #EndIf
889 #IfNotRow2Dx2 list_options list_id language option_id ewe title Ewe
890 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ewe', 'Ewe', 470, 0, 0);
891 #EndIf
893 #IfRow2D list_options list_id language option_id ewe
894 UPDATE `list_options` SET `notes` = 'ewe' WHERE `option_id` = 'ewe' AND `list_id` = 'language';
895 #EndIf
897 #IfRow2D list_options list_id language title Ewe
898 UPDATE `list_options` SET `notes` = 'ewe' WHERE `title` = 'Ewe' AND `list_id` = 'language';
899 #EndIf
901 #IfNotRow2Dx2 list_options list_id language option_id faroese title Faroese
902 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'faroese', 'Faroese', 480, 0, 0);
903 #EndIf
905 #IfRow2D list_options list_id language option_id faroese
906 UPDATE `list_options` SET `notes` = 'fao' WHERE `option_id` = 'faroese' AND `list_id` = 'language';
907 #EndIf
909 #IfRow2D list_options list_id language title Faroese
910 UPDATE `list_options` SET `notes` = 'fao' WHERE `title` = 'Faroese' AND `list_id` = 'language';
911 #EndIf
913 #IfRow3D list_options list_id language seq 60 option_id farsi
914 UPDATE `list_options` SET `seq` = 485 WHERE `option_id` = 'farsi' AND `list_id` = 'language';
915 #EndIf
917 #IfRow3D list_options list_id language seq 60 title Farsi
918 UPDATE `list_options` SET `seq` = 485 WHERE `title` = 'Farsi' AND `list_id` = 'language';
919 #EndIf
921 #IfNotRow2Dx2 list_options list_id language option_id fijian title Fijian
922 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'fijian', 'Fijian', 490, 0, 0);
923 #EndIf
925 #IfRow2D list_options list_id language option_id fijian
926 UPDATE `list_options` SET `notes` = 'fij' WHERE `option_id` = 'fijian' AND `list_id` = 'language';
927 #EndIf
929 #IfRow2D list_options list_id language title Fijian
930 UPDATE `list_options` SET `notes` = 'fij' WHERE `title` = 'Fijian' AND `list_id` = 'language';
931 #EndIf
933 #IfNotRow2Dx2 list_options list_id language option_id finnish title Finnish
934 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'finnish', 'Finnish', 500, 0, 0);
935 #EndIf
937 #IfRow2D list_options list_id language option_id finnish
938 UPDATE `list_options` SET `notes` = 'fin' WHERE `option_id` = 'finnish' AND `list_id` = 'language';
939 #EndIf
941 #IfRow2D list_options list_id language title Finnish
942 UPDATE `list_options` SET `notes` = 'fin' WHERE `title` = 'Finnish' AND `list_id` = 'language';
943 #EndIf
945 #IfNotRow2Dx2 list_options list_id language option_id french title French
946 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'french', 'French', 510, 0, 0);
947 #EndIf
949 #IfRow2D list_options list_id language option_id french
950 UPDATE `list_options` SET `notes` = 'fre(B)|fra(T)' WHERE `option_id` = 'french' AND `list_id` = 'language';
951 #EndIf
953 #IfRow2D list_options list_id language title French
954 UPDATE `list_options` SET `notes` = 'fre(B)|fra(T)' WHERE `title` = 'French' AND `list_id` = 'language';
955 #EndIf
957 #IfRow3D list_options list_id language seq 70 option_id french
958 UPDATE `list_options` SET `seq` = 510 WHERE `option_id` = 'french' AND `list_id` = 'language';
959 #EndIf
961 #IfRow3D list_options list_id language seq 70 title French
962 UPDATE `list_options` SET `seq` = 510 WHERE `title` = 'French' AND `list_id` = 'language';
963 #EndIf
965 #IfNotRow2Dx2 list_options list_id language option_id fulah title Fulah
966 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'fulah', 'Fulah', 520, 0, 0);
967 #EndIf
969 #IfRow2D list_options list_id language option_id fulah
970 UPDATE `list_options` SET `notes` = 'ful' WHERE `option_id` = 'fulah' AND `list_id` = 'language';
971 #EndIf
973 #IfRow2D list_options list_id language title Fulah
974 UPDATE `list_options` SET `notes` = 'ful' WHERE `title` = 'Fulah' AND `list_id` = 'language';
975 #EndIf
977 #IfNotRow2Dx2 list_options list_id language option_id gaelic_scottish_gaelic title Gaelic; Scottish Gaelic
978 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'gaelic_scottish_gaelic', 'Gaelic; Scottish Gaelic', 530, 0, 0);
979 #EndIf
981 #IfRow2D list_options list_id language option_id gaelic_scottish_gaelic
982 UPDATE `list_options` SET `notes` = 'gla' WHERE `option_id` = 'gaelic_scottish_gaelic' AND `list_id` = 'language';
983 #EndIf
985 #IfRow2D list_options list_id language title Gaelic; Scottish Gaelic
986 UPDATE `list_options` SET `notes` = 'gla' WHERE `title` = 'Gaelic; Scottish Gaelic' AND `list_id` = 'language';
987 #EndIf
989 #IfNotRow2Dx2 list_options list_id language option_id galician title Galician
990 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'galician', 'Galician', 540, 0, 0);
991 #EndIf
993 #IfRow2D list_options list_id language option_id galician
994 UPDATE `list_options` SET `notes` = 'glg' WHERE `option_id` = 'galician' AND `list_id` = 'language';
995 #EndIf
997 #IfRow2D list_options list_id language title Galician
998 UPDATE `list_options` SET `notes` = 'glg' WHERE `title` = 'Galician' AND `list_id` = 'language';
999 #EndIf
1001 #IfNotRow2Dx2 list_options list_id language option_id ganda title Ganda
1002 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ganda', 'Ganda', 550, 0, 0);
1003 #EndIf
1005 #IfRow2D list_options list_id language option_id ganda
1006 UPDATE `list_options` SET `notes` = 'lug' WHERE `option_id` = 'ganda' AND `list_id` = 'language';
1007 #EndIf
1009 #IfRow2D list_options list_id language title Ganda
1010 UPDATE `list_options` SET `notes` = 'lug' WHERE `title` = 'Ganda' AND `list_id` = 'language';
1011 #EndIf
1013 #IfNotRow2Dx2 list_options list_id language option_id georgian title Georgian
1014 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'georgian', 'Georgian', 560, 0, 0);
1015 #EndIf
1017 #IfRow2D list_options list_id language option_id georgian
1018 UPDATE `list_options` SET `notes` = 'geo(B)|kat(T)' WHERE `option_id` = 'georgian' AND `list_id` = 'language';
1019 #EndIf
1021 #IfRow2D list_options list_id language title Georgian
1022 UPDATE `list_options` SET `notes` = 'geo(B)|kat(T)' WHERE `title` = 'Georgian' AND `list_id` = 'language';
1023 #EndIf
1025 #IfNotRow2Dx2 list_options list_id language option_id german title German
1026 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'german', 'German', 570, 0, 0);
1027 #EndIf
1029 #IfRow2D list_options list_id language option_id german
1030 UPDATE `list_options` SET `notes` = 'ger(B)|deu(T)' WHERE `option_id` = 'german' AND `list_id` = 'language';
1031 #EndIf
1033 #IfRow2D list_options list_id language title German
1034 UPDATE `list_options` SET `notes` = 'ger(B)|deu(T)' WHERE `title` = 'German' AND `list_id` = 'language';
1035 #EndIf
1037 #IfRow3D list_options list_id language seq 80 option_id german
1038 UPDATE `list_options` SET `seq` = 570 WHERE `option_id` = 'german' AND `list_id` = 'language';
1039 #EndIf
1041 #IfRow3D list_options list_id language seq 80 title German
1042 UPDATE `list_options` SET `seq` = 570 WHERE `title` = 'German' AND `list_id` = 'language';
1043 #EndIf
1045 #IfNotRow2Dx2 list_options list_id language option_id greek title Greek, Modern (1453-)
1046 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'greek', 'Greek, Modern (1453-)', 580, 0, 0);
1047 #EndIf
1049 #IfRow2D list_options list_id language option_id greek
1050 UPDATE `list_options` SET `notes` = 'gre(B)|ell(T)' WHERE `option_id` = 'greek' AND `list_id` = 'language';
1051 #EndIf
1053 #IfRow2D list_options list_id language title Greek, Modern (1453-)
1054 UPDATE `list_options` SET `notes` = 'gre(B)|ell(T)' WHERE `title` = 'Greek, Modern (1453-)' AND `list_id` = 'language';
1055 #EndIf
1057 #IfRow2D list_options list_id language title Greek
1058 UPDATE `list_options` SET `notes` = 'gre(B)|ell(T)' WHERE `title` = 'Greek' AND `list_id` = 'language';
1059 #EndIf
1061 #IfRow3D list_options list_id language seq 90 option_id greek
1062 UPDATE `list_options` SET `seq` = 580 WHERE `option_id` = 'greek' AND `list_id` = 'language';
1063 #EndIf
1065 #IfRow3D list_options list_id language seq 90 title Greek, Modern (1453-)
1066 UPDATE `list_options` SET `seq` = 580 WHERE `title` = 'Greek, Modern (1453-)' AND `list_id` = 'language';
1067 #EndIf
1069 #IfRow3D list_options list_id language seq 90 title Greek
1070 UPDATE `list_options` SET `seq` = 580 WHERE `title` = 'Greek' AND `list_id` = 'language';
1071 #EndIf
1073 #IfNotRow2Dx2 list_options list_id language option_id guarani title Guarani
1074 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'guarani', 'Guarani', 590, 0, 0);
1075 #EndIf
1077 #IfRow2D list_options list_id language option_id guarani
1078 UPDATE `list_options` SET `notes` = 'grn' WHERE `option_id` = 'guarani' AND `list_id` = 'language';
1079 #EndIf
1081 #IfRow2D list_options list_id language title Guarani
1082 UPDATE `list_options` SET `notes` = 'grn' WHERE `title` = 'Guarani' AND `list_id` = 'language';
1083 #EndIf
1085 #IfNotRow2Dx2 list_options list_id language option_id gujarati title Gujarati
1086 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'gujarati', 'Gujarati', 600, 0, 0);
1087 #EndIf
1089 #IfRow2D list_options list_id language option_id gujarati
1090 UPDATE `list_options` SET `notes` = 'guj' WHERE `option_id` = 'gujarati' AND `list_id` = 'language';
1091 #EndIf
1093 #IfRow2D list_options list_id language title Gujarati
1094 UPDATE `list_options` SET `notes` = 'guj' WHERE `title` = 'Gujarati' AND `list_id` = 'language';
1095 #EndIf
1097 #IfNotRow2Dx2 list_options list_id language option_id haitian_haitian_creole title Haitian; Haitian Creole
1098 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'haitian_haitian_creole', 'Haitian; Haitian Creole', 610, 0, 0);
1099 #EndIf
1101 #IfRow2D list_options list_id language option_id haitian_haitian_creole
1102 UPDATE `list_options` SET `notes` = 'hat' WHERE `option_id` = 'haitian_haitian_creole' AND `list_id` = 'language';
1103 #EndIf
1105 #IfRow2D list_options list_id language title Haitian; Haitian Creole
1106 UPDATE `list_options` SET `notes` = 'hat' WHERE `title` = 'Haitian; Haitian Creole' AND `list_id` = 'language';
1107 #EndIf
1109 #IfNotRow2Dx2 list_options list_id language option_id hausa title Hausa
1110 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hausa', 'Hausa', 620, 0, 0);
1111 #EndIf
1113 #IfRow2D list_options list_id language option_id hausa
1114 UPDATE `list_options` SET `notes` = 'hau' WHERE `option_id` = 'hausa' AND `list_id` = 'language';
1115 #EndIf
1117 #IfRow2D list_options list_id language title Hausa
1118 UPDATE `list_options` SET `notes` = 'hau' WHERE `title` = 'Hausa' AND `list_id` = 'language';
1119 #EndIf
1121 #IfNotRow2Dx2 list_options list_id language option_id hebrew title Hebrew
1122 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hebrew', 'Hebrew', 630, 0, 0);
1123 #EndIf
1125 #IfRow2D list_options list_id language option_id hebrew
1126 UPDATE `list_options` SET `notes` = 'heb' WHERE `option_id` = 'hebrew' AND `list_id` = 'language';
1127 #EndIf
1129 #IfRow2D list_options list_id language title Hebrew
1130 UPDATE `list_options` SET `notes` = 'heb' WHERE `title` = 'Hebrew' AND `list_id` = 'language';
1131 #EndIf
1133 #IfNotRow2Dx2 list_options list_id language option_id herero title Herero
1134 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'herero', 'Herero', 640, 0, 0);
1135 #EndIf
1137 #IfRow2D list_options list_id language option_id herero
1138 UPDATE `list_options` SET `notes` = 'her' WHERE `option_id` = 'herero' AND `list_id` = 'language';
1139 #EndIf
1141 #IfRow2D list_options list_id language title Herero
1142 UPDATE `list_options` SET `notes` = 'her' WHERE `title` = 'Herero' AND `list_id` = 'language';
1143 #EndIf
1145 #IfNotRow2Dx2 list_options list_id language option_id hindi title Hindi
1146 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hindi', 'Hindi', 650, 0, 0);
1147 #EndIf
1149 #IfRow2D list_options list_id language option_id hindi
1150 UPDATE `list_options` SET `notes` = 'hin' WHERE `option_id` = 'hindi' AND `list_id` = 'language';
1151 #EndIf
1153 #IfRow2D list_options list_id language title Hindi
1154 UPDATE `list_options` SET `notes` = 'hin' WHERE `title` = 'Hindi' AND `list_id` = 'language';
1155 #EndIf
1157 #IfNotRow2Dx2 list_options list_id language option_id hiri_motu title Hiri Motu
1158 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hiri_motu', 'Hiri Motu', 660, 0, 0);
1159 #EndIf
1161 #IfRow2D list_options list_id language option_id hiri_motu
1162 UPDATE `list_options` SET `notes` = 'hmo' WHERE `option_id` = 'hiri_motu' AND `list_id` = 'language';
1163 #EndIf
1165 #IfRow2D list_options list_id language title Hiri Motu
1166 UPDATE `list_options` SET `notes` = 'hmo' WHERE `title` = 'Hiri Motu' AND `list_id` = 'language';
1167 #EndIf
1169 #IfRow2D list_options list_id language option_id hmong
1170 UPDATE `list_options` SET `notes` = 'hmn' WHERE `option_id` = 'hmong' AND `list_id` = 'language';
1171 #EndIf
1173 #IfRow2D list_options list_id language title Hmong
1174 UPDATE `list_options` SET `notes` = 'hmn' WHERE `title` = 'Hmong' AND `list_id` = 'language';
1175 #EndIf
1177 #IfRow3D list_options list_id language seq 100 option_id hmong
1178 UPDATE `list_options` SET `seq` = 665 WHERE `option_id` = 'hmong' AND `list_id` = 'language';
1179 #EndIf
1181 #IfRow3D list_options list_id language seq 100 title Hmong
1182 UPDATE `list_options` SET `seq` = 665 WHERE `title` = 'Hmong' AND `list_id` = 'language';
1183 #EndIf
1185 #IfNotRow2Dx2 list_options list_id language option_id hungarian title Hungarian
1186 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hungarian', 'Hungarian', 670, 0, 0);
1187 #EndIf
1189 #IfRow2D list_options list_id language option_id hungarian
1190 UPDATE `list_options` SET `notes` = 'hun' WHERE `option_id` = 'hungarian' AND `list_id` = 'language';
1191 #EndIf
1193 #IfRow2D list_options list_id language title Hungarian
1194 UPDATE `list_options` SET `notes` = 'hun' WHERE `title` = 'Hungarian' AND `list_id` = 'language';
1195 #EndIf
1197 #IfNotRow2Dx2 list_options list_id language option_id icelandic title Icelandic
1198 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'icelandic', 'Icelandic', 680, 0, 0);
1199 #EndIf
1201 #IfRow2D list_options list_id language option_id icelandic
1202 UPDATE `list_options` SET `notes` = 'ice(B)|isl(T)' WHERE `option_id` = 'icelandic' AND `list_id` = 'language';
1203 #EndIf
1205 #IfRow2D list_options list_id language title Icelandic
1206 UPDATE `list_options` SET `notes` = 'ice(B)|isl(T)' WHERE `title` = 'Icelandic' AND `list_id` = 'language';
1207 #EndIf
1209 #IfNotRow2Dx2 list_options list_id language option_id ido title Ido
1210 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES (
1211 'language', 'ido', 'Ido', 690, 0, 0);
1212 #EndIf
1214 #IfRow2D list_options list_id language option_id ido
1215 UPDATE `list_options` SET `notes` = 'ido' WHERE `option_id` = 'ido' AND `list_id` = 'language';
1216 #EndIf
1218 #IfRow2D list_options list_id language title Ido
1219 UPDATE `list_options` SET `notes` = 'ido' WHERE `title` = 'Ido' AND `list_id` = 'language';
1220 #EndIf
1222 #IfNotRow2Dx2 list_options list_id language option_id igbo title Igbo
1223 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'igbo', 'Igbo', 700, 0, 0);
1224 #EndIf
1226 #IfRow2D list_options list_id language option_id igbo
1227 UPDATE `list_options` SET `notes` = 'ibo' WHERE `option_id` = 'igbo' AND `list_id` = 'language';
1228 #EndIf
1230 #IfRow2D list_options list_id language title Igbo
1231 UPDATE `list_options` SET `notes` = 'ibo' WHERE `title` = 'Igbo' AND `list_id` = 'language';
1232 #EndIf
1234 #IfNotRow2Dx2 list_options list_id language option_id indonesian title Indonesian
1235 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'indonesian', 'Indonesian', 710, 0, 0);
1236 #EndIf
1238 #IfRow2D list_options list_id language option_id indonesian
1239 UPDATE `list_options` SET `notes` = 'ind' WHERE `option_id` = 'indonesian' AND `list_id` = 'language';
1240 #EndIf
1242 #IfRow2D list_options list_id language title Indonesian
1243 UPDATE `list_options` SET `notes` = 'ind' WHERE `title` = 'Indonesian' AND `list_id` = 'language';
1244 #EndIf
1246 #IfNotRow2Dx2 list_options list_id language option_id interlingua_international_auxi title Interlingua (International Auxiliary Language Association)
1247 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'interlingua_international_auxi', 'Interlingua (International Auxiliary Language Association)', 720, 0, 0);
1248 #EndIf
1250 #IfRow2D list_options list_id language option_id interlingua_international_auxi
1251 UPDATE `list_options` SET `notes` = 'ina' WHERE `option_id` = 'interlingua_international_auxi' AND `list_id` = 'language';
1252 #EndIf
1254 #IfRow2D list_options list_id language title Interlingua (International Auxiliary Language Association)
1255 UPDATE `list_options` SET `notes` = 'ina' WHERE `title` = 'Interlingua (International Auxiliary Language Association)' AND `list_id` = 'language';
1256 #EndIf
1258 #IfNotRow2Dx2 list_options list_id language option_id interlingue_occidental title Interlingue; Occidental
1259 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'interlingue_occidental', 'Interlingue; Occidental', 730, 0, 0);
1260 #EndIf
1262 #IfRow2D list_options list_id language option_id interlingue_occidental
1263 UPDATE `list_options` SET `notes` = 'ile' WHERE `option_id` = 'interlingue_occidental' AND `list_id` = 'language';
1264 #EndIf
1266 #IfRow2D list_options list_id language title Interlingue; Occidental
1267 UPDATE `list_options` SET `notes` = 'ile' WHERE `title` = 'Interlingue; Occidental' AND `list_id` = 'language';
1268 #EndIf
1270 #IfNotRow2Dx2 list_options list_id language option_id inuktitut title Inuktitut
1271 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'inuktitut', 'Inuktitut', 740, 0, 0);
1272 #EndIf
1274 #IfRow2D list_options list_id language option_id inuktitut
1275 UPDATE `list_options` SET `notes` = 'iku' WHERE `option_id` = 'inuktitut' AND `list_id` = 'language';
1276 #EndIf
1278 #IfRow2D list_options list_id language title Inuktitut
1279 UPDATE `list_options` SET `notes` = 'iku' WHERE `title` = 'Inuktitut' AND `list_id` = 'language';
1280 #EndIf
1282 #IfNotRow2Dx2 list_options list_id language option_id inupiaq title Inupiaq
1283 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'inupiaq', 'Inupiaq', 750, 0, 0);
1284 #EndIf
1286 #IfRow2D list_options list_id language option_id inupiaq
1287 UPDATE `list_options` SET `notes` = 'ipk' WHERE `option_id` = 'inupiaq' AND `list_id` = 'language';
1288 #EndIf
1290 #IfRow2D list_options list_id language title Inupiaq
1291 UPDATE `list_options` SET `notes` = 'ipk' WHERE `title` = 'Inupiaq' AND `list_id` = 'language';
1292 #EndIf
1294 #IfNotRow2Dx2 list_options list_id language option_id irish title Irish
1295 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'irish', 'Irish', 760, 0, 0);
1296 #EndIf
1298 #IfRow2D list_options list_id language option_id irish
1299 UPDATE `list_options` SET `notes` = 'gle' WHERE `option_id` = 'irish' AND `list_id` = 'language';
1300 #EndIf
1302 #IfRow2D list_options list_id language title Irish
1303 UPDATE `list_options` SET `notes` = 'gle' WHERE `title` = 'Irish' AND `list_id` = 'language';
1304 #EndIf
1306 #IfNotRow2Dx2 list_options list_id language option_id italian title Italian
1307 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'italian', 'Italian', 770, 0, 0);
1308 #EndIf
1310 #IfRow2D list_options list_id language option_id italian
1311 UPDATE `list_options` SET `notes` = 'ita' WHERE `option_id` = 'italian' AND `list_id` = 'language';
1312 #EndIf
1314 #IfRow2D list_options list_id language title Italian
1315 UPDATE `list_options` SET `notes` = 'ita' WHERE `title` = 'Italian' AND `list_id` = 'language';
1316 #EndIf
1318 #IfRow3D list_options list_id language seq 110 option_id italian
1319 UPDATE `list_options` SET `seq` = 770 WHERE `option_id` = 'italian' AND `list_id` = 'language';
1320 #EndIf
1322 #IfRow3D list_options list_id language seq 110 title Italian
1323 UPDATE `list_options` SET `seq` = 770 WHERE `title` = 'Italian' AND `list_id` = 'language';
1324 #EndIf
1326 #IfNotRow2Dx2 list_options list_id language option_id japanese title Japanese
1327 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'japanese', 'Japanese', 780, 0, 0);
1328 #EndIf
1330 #IfRow2D list_options list_id language option_id japanese
1331 UPDATE `list_options` SET `notes` = 'jpn' WHERE `option_id` = 'japanese' AND `list_id` = 'language';
1332 #EndIf
1334 #IfRow2D list_options list_id language title Japanese
1335 UPDATE `list_options` SET `notes` = 'jpn' WHERE `title` = 'Japanese' AND `list_id` = 'language';
1336 #EndIf
1338 #IfRow3D list_options list_id language seq 120 option_id japanese
1339 UPDATE `list_options` SET `seq` = 780 WHERE `option_id` = 'japanese' AND `list_id` = 'language';
1340 #EndIf
1342 #IfRow3D list_options list_id language seq 120 title Japanese
1343 UPDATE `list_options` SET `seq` = 780 WHERE `title` = 'Japanese' AND `list_id` = 'language';
1344 #EndIf
1346 #IfNotRow2Dx2 list_options list_id language option_id javanese title Javanese
1347 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'javanese', 'Javanese', 790, 0, 0);
1348 #EndIf
1350 #IfRow2D list_options list_id language option_id javanese
1351 UPDATE `list_options` SET `notes` = 'jav' WHERE `option_id` = 'javanese' AND `list_id` = 'language';
1352 #EndIf
1354 #IfRow2D list_options list_id language title Javanese
1355 UPDATE `list_options` SET `notes` = 'jav' WHERE `title` = 'Javanese' AND `list_id` = 'language';
1356 #EndIf
1358 #IfNotRow2Dx2 list_options list_id language option_id kalaallisut_greenlandic title Kalaallisut; Greenlandic
1359 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kalaallisut_greenlandic', 'Kalaallisut; Greenlandic', 800, 0, 0);
1360 #EndIf
1362 #IfRow2D list_options list_id language option_id kalaallisut_greenlandic
1363 UPDATE `list_options` SET `notes` = 'kal' WHERE `option_id` = 'kalaallisut_greenlandic' AND `list_id` = 'language';
1364 #EndIf
1366 #IfRow2D list_options list_id language title Kalaallisut; Greenlandic
1367 UPDATE `list_options` SET `notes` = 'kal' WHERE `title` = 'Kalaallisut; Greenlandic' AND `list_id` = 'language';
1368 #EndIf
1370 #IfNotRow2Dx2 list_options list_id language option_id kannada title Kannada
1371 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kannada', 'Kannada', 810, 0, 0);
1372 #EndIf
1374 #IfRow2D list_options list_id language option_id kannada
1375 UPDATE `list_options` SET `notes` = 'kan' WHERE `option_id` = 'kannada' AND `list_id` = 'language';
1376 #EndIf
1378 #IfRow2D list_options list_id language title Kannada
1379 UPDATE `list_options` SET `notes` = 'kan' WHERE `title` = 'Kannada' AND `list_id` = 'language';
1380 #EndIf
1382 #IfNotRow2Dx2 list_options list_id language option_id kanuri title Kanuri
1383 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kanuri', 'Kanuri', 820, 0, 0);
1384 #EndIf
1386 #IfRow2D list_options list_id language option_id kanuri
1387 UPDATE `list_options` SET `notes` = 'kau' WHERE `option_id` = 'kanuri' AND `list_id` = 'language';
1388 #EndIf
1390 #IfRow2D list_options list_id language title Kanuri
1391 UPDATE `list_options` SET `notes` = 'kau' WHERE `title` = 'Kanuri' AND `list_id` = 'language';
1392 #EndIf
1394 #IfNotRow2Dx2 list_options list_id language option_id kashmiri title Kashmiri
1395 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kashmiri', 'Kashmiri', 830, 0, 0);
1396 #EndIf
1398 #IfRow2D list_options list_id language option_id kashmiri
1399 UPDATE `list_options` SET `notes` = 'kas' WHERE `option_id` = 'kashmiri' AND `list_id` = 'language';
1400 #EndIf
1402 #IfRow2D list_options list_id language title Kashmiri
1403 UPDATE `list_options` SET `notes` = 'kas' WHERE `title` = 'Kashmiri' AND `list_id` = 'language';
1404 #EndIf
1406 #IfNotRow2Dx2 list_options list_id language option_id kazakh title Kazakh
1407 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kazakh', 'Kazakh', 840, 0, 0);
1408 #EndIf
1410 #IfRow2D list_options list_id language option_id kazakh
1411 UPDATE `list_options` SET `notes` = 'kaz' WHERE `option_id` = 'kazakh' AND `list_id` = 'language';
1412 #EndIf
1414 #IfRow2D list_options list_id language title Kazakh
1415 UPDATE `list_options` SET `notes` = 'kaz' WHERE `title` = 'Kazakh' AND `list_id` = 'language';
1416 #EndIf
1418 #IfNotRow2Dx2 list_options list_id language option_id kikuyu_gikuyu title Kikuyu; Gikuyu
1419 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kikuyu_gikuyu', 'Kikuyu; Gikuyu', 850, 0, 0);
1420 #EndIf
1422 #IfRow2D list_options list_id language option_id kikuyu_gikuyu
1423 UPDATE `list_options` SET `notes` = 'kik' WHERE `option_id` = 'kikuyu_gikuyu' AND `list_id` = 'language';
1424 #EndIf
1426 #IfRow2D list_options list_id language title Kikuyu; Gikuyu
1427 UPDATE `list_options` SET `notes` = 'kik' WHERE `title` = 'Kikuyu; Gikuyu' AND `list_id` = 'language';
1428 #EndIf
1430 #IfNotRow2Dx2 list_options list_id language option_id kinyarwanda title Kinyarwanda
1431 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kinyarwanda', 'Kinyarwanda', 860, 0, 0);
1432 #EndIf
1434 #IfRow2D list_options list_id language option_id kinyarwanda
1435 UPDATE `list_options` SET `notes` = 'kin' WHERE `option_id` = 'kinyarwanda' AND `list_id` = 'language';
1436 #EndIf
1438 #IfRow2D list_options list_id language title Kinyarwanda
1439 UPDATE `list_options` SET `notes` = 'kin' WHERE `title` = 'Kinyarwanda' AND `list_id` = 'language';
1440 #EndIf
1442 #IfNotRow2Dx2 list_options list_id language option_id kirghiz_kyrgyz title Kirghiz; Kyrgyz
1443 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kirghiz_kyrgyz', 'Kirghiz; Kyrgyz', 870, 0, 0);
1444 #EndIf
1446 #IfRow2D list_options list_id language option_id kirghiz_kyrgyz
1447 UPDATE `list_options` SET `notes` = 'kir' WHERE `option_id` = 'kirghiz_kyrgyz' AND `list_id` = 'language';
1448 #EndIf
1450 #IfRow2D list_options list_id language title Kirghiz; Kyrgyz
1451 UPDATE `list_options` SET `notes` = 'kir' WHERE `title` = 'Kirghiz; Kyrgyz' AND `list_id` = 'language';
1452 #EndIf
1454 #IfNotRow2Dx2 list_options list_id language option_id komi title Komi
1455 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'komi', 'Komi', 880, 0, 0);
1456 #EndIf
1458 #IfRow2D list_options list_id language option_id komi
1459 UPDATE `list_options` SET `notes` = 'kom' WHERE `option_id` = 'komi' AND `list_id` = 'language';
1460 #EndIf
1462 #IfRow2D list_options list_id language title Komi
1463 UPDATE `list_options` SET `notes` = 'kom' WHERE `title` = 'Komi' AND `list_id` = 'language';
1464 #EndIf
1466 #IfNotRow2Dx2 list_options list_id language option_id kongo title Kongo
1467 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kongo', 'Kongo', 890, 0, 0);
1468 #EndIf
1470 #IfRow2D list_options list_id language option_id kongo
1471 UPDATE `list_options` SET `notes` = 'kon' WHERE `option_id` = 'kongo' AND `list_id` = 'language';
1472 #EndIf
1474 #IfRow2D list_options list_id language title Kongo
1475 UPDATE `list_options` SET `notes` = 'kon' WHERE `title` = 'Kongo' AND `list_id` = 'language';
1476 #EndIf
1478 #IfNotRow2Dx2 list_options list_id language option_id korean title Korean
1479 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'korean', 'Korean', 900, 0, 0);
1480 #EndIf
1482 #IfRow2D list_options list_id language option_id korean
1483 UPDATE `list_options` SET `notes` = 'kor' WHERE `option_id` = 'korean' AND `list_id` = 'language';
1484 #EndIf
1486 #IfRow2D list_options list_id language title Korean
1487 UPDATE `list_options` SET `notes` = 'kor' WHERE `title` = 'Korean' AND `list_id` = 'language';
1488 #EndIf
1490 #IfRow3D list_options list_id language seq 130 option_id korean
1491 UPDATE `list_options` SET `seq` = 900 WHERE `option_id` = 'korean' AND `list_id` = 'language';
1492 #EndIf
1494 #IfRow3D list_options list_id language seq 130 title Korean
1495 UPDATE `list_options` SET `seq` = 900 WHERE `title` = 'Korean' AND `list_id` = 'language';
1496 #EndIf
1498 #IfNotRow2Dx2 list_options list_id language option_id kuanyama_kwanyama title Kuanyama; Kwanyama
1499 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kuanyama_kwanyama', 'Kuanyama; Kwanyama', 910, 0, 0);
1500 #EndIf
1502 #IfRow2D list_options list_id language option_id kuanyama_kwanyama
1503 UPDATE `list_options` SET `notes` = 'kua' WHERE `option_id` = 'kuanyama_kwanyama' AND `list_id` = 'language';
1504 #EndIf
1506 #IfRow2D list_options list_id language title Kuanyama; Kwanyama
1507 UPDATE `list_options` SET `notes` = 'kua' WHERE `title` = 'Kuanyama; Kwanyama' AND `list_id` = 'language';
1508 #EndIf
1510 #IfNotRow2Dx2 list_options list_id language option_id kurdish title Kurdish
1511 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kurdish', 'Kurdish', 920, 0, 0);
1512 #EndIf
1514 #IfRow2D list_options list_id language option_id kurdish
1515 UPDATE `list_options` SET `notes` = 'kur' WHERE `option_id` = 'kurdish' AND `list_id` = 'language';
1516 #EndIf
1518 #IfRow2D list_options list_id language title Kurdish
1519 UPDATE `list_options` SET `notes` = 'kur' WHERE `title` = 'Kurdish' AND `list_id` = 'language';
1520 #EndIf
1522 #IfNotRow2Dx2 list_options list_id language option_id laotian title Lao
1523 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'laotian', 'Lao', 930, 0, 0);
1524 #EndIf
1526 #IfRow2D list_options list_id language option_id laotian
1527 UPDATE `list_options` SET `notes` = 'lao' WHERE `option_id` = 'laotian' AND `list_id` = 'language';
1528 #EndIf
1530 #IfRow2D list_options list_id language title Lao
1531 UPDATE `list_options` SET `notes` = 'lao' WHERE `title` = 'Lao' AND `list_id` = 'language';
1532 #EndIf
1534 #IfRow2D list_options list_id language title Laotian
1535 UPDATE `list_options` SET `notes` = 'lao' WHERE `title` = 'Laotian' AND `list_id` = 'language';
1536 #EndIf
1538 #IfRow3D list_options list_id language seq 140 option_id laotian
1539 UPDATE `list_options` SET `seq` = 930 WHERE `option_id` = 'laotian' AND `list_id` = 'language';
1540 #EndIf
1542 #IfRow3D list_options list_id language seq 140 title Lao
1543 UPDATE `list_options` SET `seq` = 930 WHERE `title` = 'Lao' AND `list_id` = 'language';
1544 #EndIf
1546 #IfRow3D list_options list_id language seq 140 title Laotian
1547 UPDATE `list_options` SET `seq` = 930 WHERE `title` = 'Laotian' AND `list_id` = 'language';
1548 #EndIf
1550 #IfNotRow2Dx2 list_options list_id language option_id latin title Latin
1551 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'latin', 'Latin', 940, 0, 0);
1552 #EndIf
1554 #IfRow2D list_options list_id language option_id latin
1555 UPDATE `list_options` SET `notes` = 'lat' WHERE `option_id` = 'latin' AND `list_id` = 'language';
1556 #EndIf
1558 #IfRow2D list_options list_id language title Latin
1559 UPDATE `list_options` SET `notes` = 'lat' WHERE `title` = 'Latin' AND `list_id` = 'language';
1560 #EndIf
1562 #IfNotRow2Dx2 list_options list_id language option_id latvian title Latvian
1563 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'latvian', 'Latvian', 950, 0, 0);
1564 #EndIf
1566 #IfRow2D list_options list_id language option_id latvian
1567 UPDATE `list_options` SET `notes` = 'lav' WHERE `option_id` = 'latvian' AND `list_id` = 'language';
1568 #EndIf
1570 #IfRow2D list_options list_id language title Latvian
1571 UPDATE `list_options` SET `notes` = 'lav' WHERE `title` = 'Latvian' AND `list_id` = 'language';
1572 #EndIf
1574 #IfNotRow2Dx2 list_options list_id language option_id limburgan_limburger_limburgish title Limburgan; Limburger; Limburgish
1575 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'limburgan_limburger_limburgish', 'Limburgan; Limburger; Limburgish', 960, 0, 0);
1576 #EndIf
1578 #IfRow2D list_options list_id language option_id limburgan_limburger_limburgish
1579 UPDATE `list_options` SET `notes` = 'lim' WHERE `option_id` = 'limburgan_limburger_limburgish' AND `list_id` = 'language';
1580 #EndIf
1582 #IfRow2D list_options list_id language title Limburgan; Limburger; Limburgish
1583 UPDATE `list_options` SET `notes` = 'lim' WHERE `title` = 'Limburgan; Limburger; Limburgish' AND `list_id` = 'language';
1584 #EndIf
1586 #IfNotRow2Dx2 list_options list_id language option_id lingala title Lingala
1587 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'lingala', 'Lingala', 970, 0, 0);
1588 #EndIf
1590 #IfRow2D list_options list_id language option_id lingala
1591 UPDATE `list_options` SET `notes` = 'lin' WHERE `option_id` = 'lingala' AND `list_id` = 'language';
1592 #EndIf
1594 #IfRow2D list_options list_id language title Lingala
1595 UPDATE `list_options` SET `notes` = 'lin' WHERE `title` = 'Lingala' AND `list_id` = 'language';
1596 #EndIf
1598 #IfNotRow2Dx2 list_options list_id language option_id lithuanian title Lithuanian
1599 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'lithuanian', 'Lithuanian', 980, 0, 0);
1600 #EndIf
1602 #IfRow2D list_options list_id language option_id lithuanian
1603 UPDATE `list_options` SET `notes` = 'lit' WHERE `option_id` = 'lithuanian' AND `list_id` = 'language';
1604 #EndIf
1606 #IfRow2D list_options list_id language title Lithuanian
1607 UPDATE `list_options` SET `notes` = 'lit' WHERE `title` = 'Lithuanian' AND `list_id` = 'language';
1608 #EndIf
1610 #IfNotRow2Dx2 list_options list_id language option_id luba-katanga title Luba-Katanga
1611 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'luba-katanga', 'Luba-Katanga', 990, 0, 0);
1612 #EndIf
1614 #IfRow2D list_options list_id language option_id luba-katanga
1615 UPDATE `list_options` SET `notes` = 'lub' WHERE `option_id` = 'luba-katanga' AND `list_id` = 'language';
1616 #EndIf
1618 #IfRow2D list_options list_id language title Luba-Katanga
1619 UPDATE `list_options` SET `notes` = 'lub' WHERE `title` = 'Luba-Katanga' AND `list_id` = 'language';
1620 #EndIf
1622 #IfNotRow2Dx2 list_options list_id language option_id luxembourgish_letzeburgesch title Luxembourgish; Letzeburgesch
1623 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'luxembourgish_letzeburgesch', 'Luxembourgish; Letzeburgesch', 1000, 0, 0);
1624 #EndIf
1626 #IfRow2D list_options list_id language option_id luxembourgish_letzeburgesch
1627 UPDATE `list_options` SET `notes` = 'ltz' WHERE `option_id` = 'luxembourgish_letzeburgesch' AND `list_id` = 'language';
1628 #EndIf
1630 #IfRow2D list_options list_id language title Luxembourgish; Letzeburgesch
1631 UPDATE `list_options` SET `notes` = 'ltz' WHERE `title` = 'Luxembourgish; Letzeburgesch' AND `list_id` = 'language';
1632 #EndIf
1634 #IfNotRow2Dx2 list_options list_id language option_id macedonian title Macedonian
1635 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'macedonian', 'Macedonian', 1010, 0, 0);
1636 #EndIf
1638 #IfRow2D list_options list_id language option_id macedonian
1639 UPDATE `list_options` SET `notes` = 'mac(B)|mkd(T)' WHERE `option_id` = 'macedonian' AND `list_id` = 'language';
1640 #EndIf
1642 #IfRow2D list_options list_id language title Macedonian
1643 UPDATE `list_options` SET `notes` = 'mac(B)|mkd(T)' WHERE `title` = 'Macedonian' AND `list_id` = 'language';
1644 #EndIf
1646 #IfNotRow2Dx2 list_options list_id language option_id malagasy title Malagasy
1647 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'malagasy', 'Malagasy', 1020, 0, 0);
1648 #EndIf
1650 #IfRow2D list_options list_id language option_id malagasy
1651 UPDATE `list_options` SET `notes` = 'mlg' WHERE `option_id` = 'malagasy' AND `list_id` = 'language';
1652 #EndIf
1654 #IfRow2D list_options list_id language title Malagasy
1655 UPDATE `list_options` SET `notes` = 'mlg' WHERE `title` = 'Malagasy' AND `list_id` = 'language';
1656 #EndIf
1658 #IfNotRow2Dx2 list_options list_id language option_id malay title Malay
1659 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'malay', 'Malay', 1030, 0, 0);
1660 #EndIf
1662 #IfRow2D list_options list_id language option_id malay
1663 UPDATE `list_options` SET `notes` = 'may(B)|msa(T)' WHERE `option_id` = 'malay' AND `list_id` = 'language';
1664 #EndIf
1666 #IfRow2D list_options list_id language title Malay
1667 UPDATE `list_options` SET `notes` = 'may(B)|msa(T)' WHERE `title` = 'Malay' AND `list_id` = 'language';
1668 #EndIf
1670 #IfNotRow2Dx2 list_options list_id language option_id malayalam title Malayalam
1671 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'malayalam', 'Malayalam', 1040, 0, 0);
1672 #EndIf
1674 #IfRow2D list_options list_id language option_id malayalam
1675 UPDATE `list_options` SET `notes` = 'mal' WHERE `option_id` = 'malayalam' AND `list_id` = 'language';
1676 #EndIf
1678 #IfRow2D list_options list_id language title Malayalam
1679 UPDATE `list_options` SET `notes` = 'mal' WHERE `title` = 'Malayalam' AND `list_id` = 'language';
1680 #EndIf
1682 #IfNotRow2Dx2 list_options list_id language option_id maltese title Maltese
1683 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'maltese', 'Maltese', 1050, 0, 0);
1684 #EndIf
1686 #IfRow2D list_options list_id language option_id maltese
1687 UPDATE `list_options` SET `notes` = 'mlt' WHERE `option_id` = 'maltese' AND `list_id` = 'language';
1688 #EndIf
1690 #IfRow2D list_options list_id language title Maltese
1691 UPDATE `list_options` SET `notes` = 'mlt' WHERE `title` = 'Maltese' AND `list_id` = 'language';
1692 #EndIf
1694 #IfNotRow2Dx2 list_options list_id language option_id manx title Manx
1695 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'manx', 'Manx', 1060, 0, 0);
1696 #EndIf
1698 #IfRow2D list_options list_id language option_id manx
1699 UPDATE `list_options` SET `notes` = 'glv' WHERE `option_id` = 'manx' AND `list_id` = 'language';
1700 #EndIf
1702 #IfRow2D list_options list_id language title Manx
1703 UPDATE `list_options` SET `notes` = 'glv' WHERE `title` = 'Manx' AND `list_id` = 'language';
1704 #EndIf
1706 #IfNotRow2Dx2 list_options list_id language option_id maori title Maori
1707 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'maori', 'Maori', 1070, 0, 0);
1708 #EndIf
1710 #IfRow2D list_options list_id language option_id maori
1711 UPDATE `list_options` SET `notes` = 'mao(B)|mri(T)' WHERE `option_id` = 'maori' AND `list_id` = 'language';
1712 #EndIf
1714 #IfRow2D list_options list_id language title Maori
1715 UPDATE `list_options` SET `notes` = 'mao(B)|mri(T)' WHERE `title` = 'Maori' AND `list_id` = 'language';
1716 #EndIf
1718 #IfNotRow2Dx2 list_options list_id language option_id marathi title Marathi
1719 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'marathi', 'Marathi', 1080, 0, 0);
1720 #EndIf
1722 #IfRow2D list_options list_id language option_id marathi
1723 UPDATE `list_options` SET `notes` = 'mar' WHERE `option_id` = 'marathi' AND `list_id` = 'language';
1724 #EndIf
1726 #IfRow2D list_options list_id language title Marathi
1727 UPDATE `list_options` SET `notes` = 'mar' WHERE `title` = 'Marathi' AND `list_id` = 'language';
1728 #EndIf
1730 #IfNotRow2Dx2 list_options list_id language option_id marshallese title Marshallese
1731 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'marshallese', 'Marshallese', 1090, 0, 0);
1732 #EndIf
1734 #IfRow2D list_options list_id language option_id marshallese
1735 UPDATE `list_options` SET `notes` = 'mah' WHERE `option_id` = 'marshallese' AND `list_id` = 'language';
1736 #EndIf
1738 #IfRow2D list_options list_id language title Marshallese
1739 UPDATE `list_options` SET `notes` = 'mah' WHERE `title` = 'Marshallese' AND `list_id` = 'language';
1740 #EndIf
1742 #IfRow3D list_options list_id language seq 150 option_id mien
1743 UPDATE `list_options` SET `seq` = 1095 WHERE `option_id` = 'mien' AND `list_id` = 'language';
1744 #EndIf
1746 #IfRow3D list_options list_id language seq 150 title Mien
1747 UPDATE `list_options` SET `seq` = 1095 WHERE `title` = 'Mien' AND `list_id` = 'language';
1748 #EndIf
1750 #IfNotRow2Dx2 list_options list_id language option_id mongolian title Mongolian
1751 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'mongolian', 'Mongolian', 1100, 0, 0);
1752 #EndIf
1754 #IfRow2D list_options list_id language option_id mongolian
1755 UPDATE `list_options` SET `notes` = 'mon' WHERE `option_id` = 'mongolian' AND `list_id` = 'language';
1756 #EndIf
1758 #IfRow2D list_options list_id language title Mongolian
1759 UPDATE `list_options` SET `notes` = 'mon' WHERE `title` = 'Mongolian' AND `list_id` = 'language';
1760 #EndIf
1762 #IfNotRow2Dx2 list_options list_id language option_id nauru title Nauru
1763 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'nauru', 'Nauru', 1110, 0, 0);
1764 #EndIf
1766 #IfRow2D list_options list_id language option_id nauru
1767 UPDATE `list_options` SET `notes` = 'nau' WHERE `option_id` = 'nauru' AND `list_id` = 'language';
1768 #EndIf
1770 #IfRow2D list_options list_id language title Nauru
1771 UPDATE `list_options` SET `notes` = 'nau' WHERE `title` = 'Nauru' AND `list_id` = 'language';
1772 #EndIf
1774 #IfNotRow2Dx2 list_options list_id language option_id navajo_navaho title Navajo; Navaho
1775 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'navajo_navaho', 'Navajo; Navaho', 1120, 0, 0);
1776 #EndIf
1778 #IfRow2D list_options list_id language option_id navajo_navaho
1779 UPDATE `list_options` SET `notes` = 'nav' WHERE `option_id` = 'navajo_navaho' AND `list_id` = 'language';
1780 #EndIf
1782 #IfRow2D list_options list_id language title Navajo; Navaho
1783 UPDATE `list_options` SET `notes` = 'nav' WHERE `title` = 'Navajo; Navaho' AND `list_id` = 'language';
1784 #EndIf
1786 #IfNotRow2Dx2 list_options list_id language option_id ndebele_north_north_ndebele title Ndebele, North; North Ndebele
1787 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ndebele_north_north_ndebele', 'Ndebele, North; North Ndebele', 1130, 0, 0);
1788 #EndIf
1790 #IfRow2D list_options list_id language option_id ndebele_north_north_ndebele
1791 UPDATE `list_options` SET `notes` = 'nde' WHERE `option_id` = 'ndebele_north_north_ndebele' AND `list_id` = 'language';
1792 #EndIf
1794 #IfRow2D list_options list_id language title Ndebele, North; North Ndebele
1795 UPDATE `list_options` SET `notes` = 'nde' WHERE `title` = 'Ndebele, North; North Ndebele' AND `list_id` = 'language';
1796 #EndIf
1798 #IfNotRow2Dx2 list_options list_id language option_id ndebele_south_south_ndebele title Ndebele, South; South Ndebele
1799 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ndebele_south_south_ndebele', 'Ndebele, South; South Ndebele', 1140, 0, 0);
1800 #EndIf
1802 #IfRow2D list_options list_id language option_id ndebele_south_south_ndebele
1803 UPDATE `list_options` SET `notes` = 'nbl' WHERE `option_id` = 'ndebele_south_south_ndebele' AND `list_id` = 'language';
1804 #EndIf
1806 #IfRow2D list_options list_id language title Ndebele, South; South Ndebele
1807 UPDATE `list_options` SET `notes` = 'nbl' WHERE `title` = 'Ndebele, South; South Ndebele' AND `list_id` = 'language';
1808 #EndIf
1810 #IfNotRow2Dx2 list_options list_id language option_id ndonga title Ndonga
1811 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ndonga', 'Ndonga', 1150, 0, 0);
1812 #EndIf
1814 #IfRow2D list_options list_id language option_id ndonga
1815 UPDATE `list_options` SET `notes` = 'ndo' WHERE `option_id` = 'ndonga' AND `list_id` = 'language';
1816 #EndIf
1818 #IfRow2D list_options list_id language title Ndonga
1819 UPDATE `list_options` SET `notes` = 'ndo' WHERE `title` = 'Ndonga' AND `list_id` = 'language';
1820 #EndIf
1822 #IfNotRow2Dx2 list_options list_id language option_id nepali title Nepali
1823 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'nepali', 'Nepali', 1160, 0, 0);
1824 #EndIf
1826 #IfRow2D list_options list_id language option_id nepali
1827 UPDATE `list_options` SET `notes` = 'nep' WHERE `option_id` = 'nepali' AND `list_id` = 'language';
1828 #EndIf
1830 #IfRow2D list_options list_id language title Nepali
1831 UPDATE `list_options` SET `notes` = 'nep' WHERE `title` = 'Nepali' AND `list_id` = 'language';
1832 #EndIf
1834 #IfNotRow2Dx2 list_options list_id language option_id northern_sami title Northern Sami
1835 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'northern_sami', 'Northern Sami', 1170, 0, 0);
1836 #EndIf
1838 #IfRow2D list_options list_id language option_id northern_sami
1839 UPDATE `list_options` SET `notes` = 'sme' WHERE `option_id` = 'northern_sami' AND `list_id` = 'language';
1840 #EndIf
1842 #IfRow2D list_options list_id language title Northern Sami
1843 UPDATE `list_options` SET `notes` = 'sme' WHERE `title` = 'Northern Sami' AND `list_id` = 'language';
1844 #EndIf
1846 #IfNotRow2Dx2 list_options list_id language option_id norwegian title Norwegian
1847 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'norwegian', 'Norwegian', 1180, 0, 0);
1848 #EndIf
1850 #IfRow2D list_options list_id language option_id norwegian
1851 UPDATE `list_options` SET `notes` = 'nor' WHERE `option_id` = 'norwegian' AND `list_id` = 'language';
1852 #EndIf
1854 #IfRow2D list_options list_id language title Norwegian
1855 UPDATE `list_options` SET `notes` = 'nor' WHERE `title` = 'Norwegian' AND `list_id` = 'language';
1856 #EndIf
1858 #IfRow3D list_options list_id language seq 160 option_id norwegian
1859 UPDATE `list_options` SET `seq` = 1180 WHERE `option_id` = 'norwegian' AND `list_id` = 'language';
1860 #EndIf
1862 #IfRow3D list_options list_id language seq 160 title Norwegian
1863 UPDATE `list_options` SET `seq` = 1180 WHERE `title` = 'Norwegian' AND `list_id` = 'language';
1864 #EndIf
1866 #IfNotRow2Dx2 list_options list_id language option_id norwegian_nynorsk_nynorsk_norw title Norwegian Nynorsk; Nynorsk, Norwegian
1867 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'norwegian_nynorsk_nynorsk_norw', 'Norwegian Nynorsk; Nynorsk, Norwegian', 1190, 0, 0);
1868 #EndIf
1870 #IfRow2D list_options list_id language option_id norwegian_nynorsk_nynorsk_norw
1871 UPDATE `list_options` SET `notes` = 'nno' WHERE `option_id` = 'norwegian_nynorsk_nynorsk_norw' AND `list_id` = 'language';
1872 #EndIf
1874 #IfRow2D list_options list_id language title Norwegian Nynorsk; Nynorsk, Norwegian
1875 UPDATE `list_options` SET `notes` = 'nno' WHERE `title` = 'Norwegian Nynorsk; Nynorsk, Norwegian' AND `list_id` = 'language';
1876 #EndIf
1878 #IfNotRow2Dx2 list_options list_id language option_id occitan_post_1500 title Occitan (post 1500)
1879 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'occitan_post_1500', 'Occitan (post 1500)', 1200, 0, 0);
1880 #EndIf
1882 #IfRow2D list_options list_id language option_id occitan_post_1500
1883 UPDATE `list_options` SET `notes` = 'oci' WHERE `option_id` = 'occitan_post_1500' AND `list_id` = 'language';
1884 #EndIf
1886 #IfRow2D list_options list_id language title Occitan (post 1500)
1887 UPDATE `list_options` SET `notes` = 'oci' WHERE `title` = 'Occitan (post 1500)' AND `list_id` = 'language';
1888 #EndIf
1890 #IfNotRow2Dx2 list_options list_id language option_id ojibwa title Ojibwa
1891 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ojibwa', 'Ojibwa', 1210, 0, 0);
1892 #EndIf
1894 #IfRow2D list_options list_id language option_id ojibwa
1895 UPDATE `list_options` SET `notes` = 'oji' WHERE `option_id` = 'ojibwa' AND `list_id` = 'language';
1896 #EndIf
1898 #IfRow2D list_options list_id language title Ojibwa
1899 UPDATE `list_options` SET `notes` = 'oji' WHERE `title` = 'Ojibwa' AND `list_id` = 'language';
1900 #EndIf
1902 #IfNotRow2Dx2 list_options list_id language option_id oriya title Oriya
1903 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'oriya', 'Oriya', 1220, 0, 0);
1904 #EndIf
1906 #IfRow2D list_options list_id language option_id oriya
1907 UPDATE `list_options` SET `notes` = 'ori' WHERE `option_id` = 'oriya' AND `list_id` = 'language';
1908 #EndIf
1910 #IfRow2D list_options list_id language title Oriya
1911 UPDATE `list_options` SET `notes` = 'ori' WHERE `title` = 'Oriya' AND `list_id` = 'language';
1912 #EndIf
1914 #IfNotRow2Dx2 list_options list_id language option_id oromo title Oromo
1915 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'oromo', 'Oromo', 1230, 0, 0);
1916 #EndIf
1918 #IfRow2D list_options list_id language option_id oromo
1919 UPDATE `list_options` SET `notes` = 'orm' WHERE `option_id` = 'oromo' AND `list_id` = 'language';
1920 #EndIf
1922 #IfRow2D list_options list_id language title Oromo
1923 UPDATE `list_options` SET `notes` = 'orm' WHERE `title` = 'Oromo' AND `list_id` = 'language';
1924 #EndIf
1926 #IfNotRow2Dx2 list_options list_id language option_id ossetian_ossetic title Ossetian; Ossetic
1927 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ossetian_ossetic', 'Ossetian; Ossetic', 1240, 0, 0);
1928 #EndIf
1930 #IfRow2D list_options list_id language option_id ossetian_ossetic
1931 UPDATE `list_options` SET `notes` = 'oss' WHERE `option_id` = 'ossetian_ossetic' AND `list_id` = 'language';
1932 #EndIf
1934 #IfRow2D list_options list_id language title Ossetian; Ossetic
1935 UPDATE `list_options` SET `notes` = 'oss' WHERE `title` = 'Ossetian; Ossetic' AND `list_id` = 'language';
1936 #EndIf
1938 #IfRow3D list_options list_id language seq 170 option_id othrs
1939 UPDATE `list_options` SET `seq` = 1245 WHERE `option_id` = 'othrs' AND `list_id` = 'language';
1940 #EndIf
1942 #IfRow3D list_options list_id language seq 170 title Others
1943 UPDATE `list_options` SET `seq` = 1245 WHERE `title` = 'Others' AND `list_id` = 'language';
1944 #EndIf
1946 #IfNotRow2Dx2 list_options list_id language option_id pali title Pali
1947 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'pali', 'Pali', 1250, 0, 0);
1948 #EndIf
1950 #IfRow2D list_options list_id language option_id pali
1951 UPDATE `list_options` SET `notes` = 'pli' WHERE `option_id` = 'pali' AND `list_id` = 'language';
1952 #EndIf
1954 #IfRow2D list_options list_id language title Pali
1955 UPDATE `list_options` SET `notes` = 'pli' WHERE `title` = 'Pali' AND `list_id` = 'language';
1956 #EndIf
1958 #IfNotRow2Dx2 list_options list_id language option_id persian title Persian
1959 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'persian', 'Persian', 1260, 0, 0);
1960 #EndIf
1962 #IfRow2D list_options list_id language option_id persian
1963 UPDATE `list_options` SET `notes` = 'per(B)|fas(T)' WHERE `option_id` = 'persian' AND `list_id` = 'language';
1964 #EndIf
1966 #IfRow2D list_options list_id language title Persian
1967 UPDATE `list_options` SET `notes` = 'per(B)|fas(T)' WHERE `title` = 'Persian' AND `list_id` = 'language';
1968 #EndIf
1970 #IfNotRow2Dx2 list_options list_id language option_id polish title Polish
1971 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'polish', 'Polish', 1270, 0, 0);
1972 #EndIf
1974 #IfRow2D list_options list_id language option_id polish
1975 UPDATE `list_options` SET `notes` = 'pol' WHERE `option_id` = 'polish' AND `list_id` = 'language';
1976 #EndIf
1978 #IfRow2D list_options list_id language title Polish
1979 UPDATE `list_options` SET `notes` = 'pol' WHERE `title` = 'Polish' AND `list_id` = 'language';
1980 #EndIf
1982 #IfNotRow2Dx2 list_options list_id language option_id portuguese title Portuguese
1983 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'portuguese', 'Portuguese', 1280, 0, 0);
1984 #EndIf
1986 #IfRow2D list_options list_id language option_id portuguese
1987 UPDATE `list_options` SET `notes` = 'por' WHERE `option_id` = 'portuguese' AND `list_id` = 'language';
1988 #EndIf
1990 #IfRow2D list_options list_id language title Portuguese
1991 UPDATE `list_options` SET `notes` = 'por' WHERE `title` = 'Portuguese' AND `list_id` = 'language';
1992 #EndIf
1994 #IfRow3D list_options list_id language seq 180 option_id portuguese
1995 UPDATE `list_options` SET `seq` = 1280 WHERE `option_id` = 'portuguese' AND `list_id` = 'language';
1996 #EndIf
1998 #IfRow3D list_options list_id language seq 180 title Portuguese
1999 UPDATE `list_options` SET `seq` = 1280 WHERE `title` = 'Portuguese' AND `list_id` = 'language';
2000 #EndIf
2002 #IfNotRow2Dx2 list_options list_id language option_id punjabi title Punjabi
2003 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'punjabi', 'Punjabi', 1290, 0, 0);
2004 #EndIf
2006 #IfRow2D list_options list_id language option_id portuguese
2007 UPDATE `list_options` SET `notes` = 'pan' WHERE `option_id` = 'punjabi' AND `list_id` = 'language';
2008 #EndIf
2010 #IfRow2D list_options list_id language title Punjabi
2011 UPDATE `list_options` SET `notes` = 'pan' WHERE `title` = 'Punjabi' AND `list_id` = 'language';
2012 #EndIf
2014 #IfRow3D list_options list_id language seq 190 option_id punjabi
2015 UPDATE `list_options` SET `seq` = 1290 WHERE `option_id` = 'punjabi' AND `list_id` = 'language';
2016 #EndIf
2018 #IfRow3D list_options list_id language seq 190 title Punjabi
2019 UPDATE `list_options` SET `seq` = 1290 WHERE `title` = 'Punjabi' AND `list_id` = 'language';
2020 #EndIf
2022 #IfNotRow2Dx2 list_options list_id language option_id pushto_pashto title Pushto; Pashto
2023 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'pushto_pashto', 'Pushto; Pashto', 1300, 0, 0);
2024 #EndIf
2026 #IfRow2D list_options list_id language option_id pushto_pashto
2027 UPDATE `list_options` SET `notes` = 'pus' WHERE `option_id` = 'pushto_pashto' AND `list_id` = 'language';
2028 #EndIf
2030 #IfRow2D list_options list_id language title Pushto; Pashto
2031 UPDATE `list_options` SET `notes` = 'pus' WHERE `title` = 'Pushto; Pashto' AND `list_id` = 'language';
2032 #EndIf
2034 #IfNotRow2Dx2 list_options list_id language option_id quechua title Quechua
2035 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'quechua', 'Quechua', 1310, 0, 0);
2036 #EndIf
2038 #IfRow2D list_options list_id language option_id quechua
2039 UPDATE `list_options` SET `notes` = 'que' WHERE `option_id` = 'quechua' AND `list_id` = 'language';
2040 #EndIf
2042 #IfRow2D list_options list_id language title Quechua
2043 UPDATE `list_options` SET `notes` = 'que' WHERE `title` = 'Quechua' AND `list_id` = 'language';
2044 #EndIf
2046 #IfNotRow2Dx2 list_options list_id language option_id romanian_moldavian_moldovan title Romanian; Moldavian; Moldovan
2047 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'romanian_moldavian_moldovan', 'Romanian; Moldavian; Moldovan', 1320, 0, 0);
2048 #EndIf
2050 #IfRow2D list_options list_id language option_id romanian_moldavian_moldovan
2051 UPDATE `list_options` SET `notes` = 'rum(B)|ron(T)' WHERE `option_id` = 'romanian_moldavian_moldovan' AND `list_id` = 'language';
2052 #EndIf
2054 #IfRow2D list_options list_id language title Romanian; Moldavian; Moldovan
2055 UPDATE `list_options` SET `notes` = 'rum(B)|ron(T)' WHERE `title` = 'Romanian; Moldavian; Moldovan' AND `list_id` = 'language';
2056 #EndIf
2058 #IfNotRow2Dx2 list_options list_id language option_id romansh title Romansh
2059 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'romansh', 'Romansh', 1330, 0, 0);
2060 #EndIf
2062 #IfRow2D list_options list_id language option_id romansh
2063 UPDATE `list_options` SET `notes` = 'roh' WHERE `option_id` = 'romansh' AND `list_id` = 'language';
2064 #EndIf
2066 #IfRow2D list_options list_id language title Romansh
2067 UPDATE `list_options` SET `notes` = 'roh' WHERE `title` = 'Romansh' AND `list_id` = 'language';
2068 #EndIf
2070 #IfNotRow2Dx2 list_options list_id language option_id rundi title Rundi
2071 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'rundi', 'Rundi', 1340, 0, 0);
2072 #EndIf
2074 #IfRow2D list_options list_id language option_id rundi
2075 UPDATE `list_options` SET `notes` = 'run' WHERE `option_id` = 'rundi' AND `list_id` = 'language';
2076 #EndIf
2078 #IfRow2D list_options list_id language title Rundi
2079 UPDATE `list_options` SET `notes` = 'run' WHERE `title` = 'Rundi' AND `list_id` = 'language';
2080 #EndIf
2082 #IfNotRow2Dx2 list_options list_id language option_id russian title Russian
2083 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'russian', 'Russian', 1350, 0, 0);
2084 #EndIf
2086 #IfRow2D list_options list_id language option_id russian
2087 UPDATE `list_options` SET `notes` = 'rus' WHERE `option_id` = 'russian' AND `list_id` = 'language';
2088 #EndIf
2090 #IfRow2D list_options list_id language title Russian
2091 UPDATE `list_options` SET `notes` = 'rus' WHERE `title` = 'Russian' AND `list_id` = 'language';
2092 #EndIf
2094 #IfRow3D list_options list_id language seq 200 option_id russian
2095 UPDATE `list_options` SET `seq` = 1350 WHERE `option_id` = 'russian' AND `list_id` = 'language';
2096 #EndIf
2098 #IfRow3D list_options list_id language seq 200 title Russian
2099 UPDATE `list_options` SET `seq` = 1350 WHERE `title` = 'Russian' AND `list_id` = 'language';
2100 #EndIf
2102 #IfNotRow2Dx2 list_options list_id language option_id samoan title Samoan
2103 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'samoan', 'Samoan', 1360, 0, 0);
2104 #EndIf
2106 #IfRow2D list_options list_id language option_id samoan
2107 UPDATE `list_options` SET `notes` = 'smo' WHERE `option_id` = 'samoan' AND `list_id` = 'language';
2108 #EndIf
2110 #IfRow2D list_options list_id language title Samoan
2111 UPDATE `list_options` SET `notes` = 'smo' WHERE `title` = 'Samoan' AND `list_id` = 'language';
2112 #EndIf
2114 #IfNotRow2Dx2 list_options list_id language option_id sango title Sango
2115 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sango', 'Sango', 1370, 0, 0);
2116 #EndIf
2118 #IfRow2D list_options list_id language option_id sango
2119 UPDATE `list_options` SET `notes` = 'sag' WHERE `option_id` = 'sango' AND `list_id` = 'language';
2120 #EndIf
2122 #IfRow2D list_options list_id language title Sango
2123 UPDATE `list_options` SET `notes` = 'sag' WHERE `title` = 'Sango' AND `list_id` = 'language';
2124 #EndIf
2126 #IfNotRow2Dx2 list_options list_id language option_id sanskrit title Sanskrit
2127 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sanskrit', 'Sanskrit', 1380, 0, 0);
2128 #EndIf
2130 #IfRow2D list_options list_id language option_id sanskrit
2131 UPDATE `list_options` SET `notes` = 'san' WHERE `option_id` = 'sanskrit' AND `list_id` = 'language';
2132 #EndIf
2134 #IfRow2D list_options list_id language title Sanskrit
2135 UPDATE `list_options` SET `notes` = 'san' WHERE `title` = 'Sanskrit' AND `list_id` = 'language';
2136 #EndIf
2138 #IfNotRow2Dx2 list_options list_id language option_id sardinian title Sardinian
2139 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sardinian', 'Sardinian', 1390, 0, 0);
2140 #EndIf
2142 #IfRow2D list_options list_id language option_id sardinian
2143 UPDATE `list_options` SET `notes` = 'srd' WHERE `option_id` = 'sardinian' AND `list_id` = 'language';
2144 #EndIf
2146 #IfRow2D list_options list_id language title Sardinian
2147 UPDATE `list_options` SET `notes` = 'srd' WHERE `title` = 'Sardinian' AND `list_id` = 'language';
2148 #EndIf
2150 #IfNotRow2Dx2 list_options list_id language option_id serbian title Serbian
2151 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'serbian', 'Serbian', 1400, 0, 0);
2152 #EndIf
2154 #IfRow2D list_options list_id language option_id serbian
2155 UPDATE `list_options` SET `notes` = 'srp' WHERE `option_id` = 'serbian' AND `list_id` = 'language';
2156 #EndIf
2158 #IfRow2D list_options list_id language title Serbian
2159 UPDATE `list_options` SET `notes` = 'srp' WHERE `title` = 'Serbian' AND `list_id` = 'language';
2160 #EndIf
2162 #IfNotRow2Dx2 list_options list_id language option_id shona title Shona
2163 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'shona', 'Shona', 1410, 0, 0);
2164 #EndIf
2166 #IfRow2D list_options list_id language option_id shona
2167 UPDATE `list_options` SET `notes` = 'sna' WHERE `option_id` = 'shona' AND `list_id` = 'language';
2168 #EndIf
2170 #IfRow2D list_options list_id language title Shona
2171 UPDATE `list_options` SET `notes` = 'sna' WHERE `title` = 'Shona' AND `list_id` = 'language';
2172 #EndIf
2174 #IfNotRow2Dx2 list_options list_id language option_id sichuan_yi_nuosu title Sichuan Yi; Nuosu
2175 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sichuan_yi_nuosu', 'Sichuan Yi; Nuosu', 1420, 0, 0);
2176 #EndIf
2178 #IfRow2D list_options list_id language option_id sichuan_yi_nuosu
2179 UPDATE `list_options` SET `notes` = 'iii' WHERE `option_id` = 'sichuan_yi_nuosu' AND `list_id` = 'language';
2180 #EndIf
2182 #IfRow2D list_options list_id language title Sichuan Yi; Nuosu
2183 UPDATE `list_options` SET `notes` = 'iii' WHERE `title` = 'Sichuan Yi; Nuosu' AND `list_id` = 'language';
2184 #EndIf
2186 #IfNotRow2Dx2 list_options list_id language option_id sindhi title Sindhi
2187 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sindhi', 'Sindhi', 1430, 0, 0);
2188 #EndIf
2190 #IfRow2D list_options list_id language option_id sindhi
2191 UPDATE `list_options` SET `notes` = 'snd' WHERE `option_id` = 'sindhi' AND `list_id` = 'language';
2192 #EndIf
2194 #IfRow2D list_options list_id language title Sindhi
2195 UPDATE `list_options` SET `notes` = 'snd' WHERE `title` = 'Sindhi' AND `list_id` = 'language';
2196 #EndIf
2198 #IfNotRow2Dx2 list_options list_id language option_id sinhala_sinhalese title Sinhala; Sinhalese
2199 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sinhala_sinhalese', 'Sinhala; Sinhalese', 1440, 0, 0);
2200 #EndIf
2202 #IfRow2D list_options list_id language option_id sinhala_sinhalese
2203 UPDATE `list_options` SET `notes` = 'sin' WHERE `option_id` = 'sinhala_sinhalese' AND `list_id` = 'language';
2204 #EndIf
2206 #IfRow2D list_options list_id language title Sinhala; Sinhalese
2207 UPDATE `list_options` SET `notes` = 'sin' WHERE `title` = 'Sinhala; Sinhalese' AND `list_id` = 'language';
2208 #EndIf
2210 #IfNotRow2Dx2 list_options list_id language option_id slovak title Slovak
2211 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'slovak', 'Slovak', 1450, 0, 0);
2212 #EndIf
2214 #IfRow2D list_options list_id language option_id slovak
2215 UPDATE `list_options` SET `notes` = 'slo(B)|slk(T)' WHERE `option_id` = 'slovak' AND `list_id` = 'language';
2216 #EndIf
2218 #IfRow2D list_options list_id language title Slovak
2219 UPDATE `list_options` SET `notes` = 'slo(B)|slk(T)' WHERE `title` = 'Slovak' AND `list_id` = 'language';
2220 #EndIf
2222 #IfNotRow2Dx2 list_options list_id language option_id slovenian title Slovenian
2223 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'slovenian', 'Slovenian', 1460, 0, 0);
2224 #EndIf
2226 #IfRow2D list_options list_id language option_id slovenian
2227 UPDATE `list_options` SET `notes` = 'slv' WHERE `option_id` = 'slovenian' AND `list_id` = 'language';
2228 #EndIf
2230 #IfRow2D list_options list_id language title Slovenian
2231 UPDATE `list_options` SET `notes` = 'slv' WHERE `title` = 'Slovenian' AND `list_id` = 'language';
2232 #EndIf
2234 #IfNotRow2Dx2 list_options list_id language option_id somali title Somali
2235 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'somali', 'Somali', 1470, 0, 0);
2236 #EndIf
2238 #IfRow2D list_options list_id language option_id somali
2239 UPDATE `list_options` SET `notes` = 'som' WHERE `option_id` = 'somali' AND `list_id` = 'language';
2240 #EndIf
2242 #IfRow2D list_options list_id language title Somali
2243 UPDATE `list_options` SET `notes` = 'som' WHERE `title` = 'Somali' AND `list_id` = 'language';
2244 #EndIf
2246 #IfNotRow2Dx2 list_options list_id language option_id sotho_southern title Sotho, Southern
2247 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sotho_southern', 'Sotho, Southern', 1480, 0, 0);
2248 #EndIf
2250 #IfRow2D list_options list_id language option_id sotho_southern
2251 UPDATE `list_options` SET `notes` = 'sot' WHERE `option_id` = 'sotho_southern' AND `list_id` = 'language';
2252 #EndIf
2254 #IfRow2D list_options list_id language title Sotho, Southern
2255 UPDATE `list_options` SET `notes` = 'sot' WHERE `title` = 'Sotho, Southern' AND `list_id` = 'language';
2256 #EndIf
2258 #IfNotRow2Dx2 list_options list_id language option_id Spanish title Spanish
2259 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'Spanish', 'Spanish', 1490, 0, 0);
2260 #EndIf
2262 #IfRow2D list_options list_id language option_id Spanish
2263 UPDATE `list_options` SET `notes` = 'spa' WHERE `option_id` = 'Spanish' AND `list_id` = 'language';
2264 #EndIf
2266 #IfRow2D list_options list_id language title Spanish
2267 UPDATE `list_options` SET `notes` = 'spa' WHERE `title` = 'Spanish' AND `list_id` = 'language';
2268 #EndIf
2270 #IfRow3D list_options list_id language seq 210 option_id Spanish
2271 UPDATE `list_options` SET `seq` = 1490 WHERE `option_id` = 'Spanish' AND `list_id` = 'language';
2272 #EndIf
2274 #IfRow3D list_options list_id language seq 210 title Spanish
2275 UPDATE `list_options` SET `seq` = 1490 WHERE `title` = 'Spanish' AND `list_id` = 'language';
2276 #EndIf
2278 #IfNotRow2Dx2 list_options list_id language option_id sundanese title Sundanese
2279 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sundanese', 'Sundanese', 1500, 0, 0);
2280 #EndIf
2282 #IfRow2D list_options list_id language option_id sundanese
2283 UPDATE `list_options` SET `notes` = 'sun' WHERE `option_id` = 'sundanese' AND `list_id` = 'language';
2284 #EndIf
2286 #IfRow2D list_options list_id language title Sundanese
2287 UPDATE `list_options` SET `notes` = 'sun' WHERE `title` = 'Sundanese' AND `list_id` = 'language';
2288 #EndIf
2290 #IfNotRow2Dx2 list_options list_id language option_id swahili title Swahili
2291 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'swahili', 'Swahili', 1510, 0, 0);
2292 #EndIf
2294 #IfRow2D list_options list_id language option_id swahili
2295 UPDATE `list_options` SET `notes` = 'swa' WHERE `option_id` = 'swahili' AND `list_id` = 'language';
2296 #EndIf
2298 #IfRow2D list_options list_id language title Swahili
2299 UPDATE `list_options` SET `notes` = 'swa' WHERE `title` = 'Swahili' AND `list_id` = 'language';
2300 #EndIf
2302 #IfNotRow2Dx2 list_options list_id language option_id swati title Swati
2303 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'swati', 'Swati', 1520, 0, 0);
2304 #EndIf
2306 #IfRow2D list_options list_id language option_id swati
2307 UPDATE `list_options` SET `notes` = 'ssw' WHERE `option_id` = 'swati' AND `list_id` = 'language';
2308 #EndIf
2310 #IfRow2D list_options list_id language title Swati
2311 UPDATE `list_options` SET `notes` = 'ssw' WHERE `title` = 'Swati' AND `list_id` = 'language';
2312 #EndIf
2314 #IfNotRow2Dx2 list_options list_id language option_id swedish title Swedish
2315 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'swedish', 'Swedish', 1530, 0, 0);
2316 #EndIf
2318 #IfRow2D list_options list_id language option_id swedish
2319 UPDATE `list_options` SET `notes` = 'swe' WHERE `option_id` = 'swedish' AND `list_id` = 'language';
2320 #EndIf
2322 #IfRow2D list_options list_id language title Swedish
2323 UPDATE `list_options` SET `notes` = 'swe' WHERE `title` = 'Swedish' AND `list_id` = 'language';
2324 #EndIf
2326 #IfNotRow2Dx2 list_options list_id language option_id tagalog title Tagalog
2327 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tagalog', 'Tagalog', 1540, 0, 0);
2328 #EndIf
2330 #IfRow2D list_options list_id language option_id tagalog
2331 UPDATE `list_options` SET `notes` = 'tgl' WHERE `option_id` = 'tagalog' AND `list_id` = 'language';
2332 #EndIf
2334 #IfRow2D list_options list_id language title Tagalog
2335 UPDATE `list_options` SET `notes` = 'tgl' WHERE `title` = 'Tagalog' AND `list_id` = 'language';
2336 #EndIf
2338 #IfRow3D list_options list_id language seq 220 option_id tagalog
2339 UPDATE `list_options` SET `seq` = 1540 WHERE `option_id` = 'tagalog' AND `list_id` = 'language';
2340 #EndIf
2342 #IfRow3D list_options list_id language seq 220 title Tagalog
2343 UPDATE `list_options` SET `seq` = 1540 WHERE `title` = 'Tagalog' AND `list_id` = 'language';
2344 #EndIf
2346 #IfNotRow2Dx2 list_options list_id language option_id tahitian title Tahitian
2347 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tahitian', 'Tahitian', 1550, 0, 0);
2348 #EndIf
2350 #IfRow2D list_options list_id language option_id tahitian
2351 UPDATE `list_options` SET `notes` = 'tah' WHERE `option_id` = 'tahitian' AND `list_id` = 'language';
2352 #EndIf
2354 #IfRow2D list_options list_id language title Tahitian
2355 UPDATE `list_options` SET `notes` = 'tah' WHERE `title` = 'Tahitian' AND `list_id` = 'language';
2356 #EndIf
2358 #IfNotRow2Dx2 list_options list_id language option_id tajik title Tajik
2359 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tajik', 'Tajik', 1560, 0, 0);
2360 #EndIf
2362 #IfRow2D list_options list_id language option_id tajik
2363 UPDATE `list_options` SET `notes` = 'tgk' WHERE `option_id` = 'tajik' AND `list_id` = 'language';
2364 #EndIf
2366 #IfRow2D list_options list_id language title Tajik
2367 UPDATE `list_options` SET `notes` = 'tgk' WHERE `title` = 'Tajik' AND `list_id` = 'language';
2368 #EndIf
2370 #IfNotRow2Dx2 list_options list_id language option_id tamil title Tamil
2371 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tamil', 'Tamil', 1570, 0, 0);
2372 #EndIf
2374 #IfRow2D list_options list_id language option_id tamil
2375 UPDATE `list_options` SET `notes` = 'tam' WHERE `option_id` = 'tamil' AND `list_id` = 'language';
2376 #EndIf
2378 #IfRow2D list_options list_id language title Tamil
2379 UPDATE `list_options` SET `notes` = 'tam' WHERE `title` = 'Tamil' AND `list_id` = 'language';
2380 #EndIf
2382 #IfNotRow2Dx2 list_options list_id language option_id tatar title Tatar
2383 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tatar', 'Tatar', 1580, 0, 0);
2384 #EndIf
2386 #IfRow2D list_options list_id language option_id tatar
2387 UPDATE `list_options` SET `notes` = 'tat' WHERE `option_id` = 'tatar' AND `list_id` = 'language';
2388 #EndIf
2390 #IfRow2D list_options list_id language title Tatar
2391 UPDATE `list_options` SET `notes` = 'tat' WHERE `title` = 'Tatar' AND `list_id` = 'language';
2392 #EndIf
2394 #IfNotRow2Dx2 list_options list_id language option_id telugu title Telugu
2395 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'telugu', 'Telugu', 1590, 0, 0);
2396 #EndIf
2398 #IfRow2D list_options list_id language option_id telugu
2399 UPDATE `list_options` SET `notes` = 'tel' WHERE `option_id` = 'telugu' AND `list_id` = 'language';
2400 #EndIf
2402 #IfRow2D list_options list_id language title Telugu
2403 UPDATE `list_options` SET `notes` = 'tel' WHERE `title` = 'Telugu' AND `list_id` = 'language';
2404 #EndIf
2406 #IfNotRow2Dx2 list_options list_id language option_id thai title Thai
2407 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'thai', 'Thai', 1600, 0, 0);
2408 #EndIf
2410 #IfRow2D list_options list_id language option_id thai
2411 UPDATE `list_options` SET `notes` = 'tha' WHERE `option_id` = 'thai' AND `list_id` = 'language';
2412 #EndIf
2414 #IfRow2D list_options list_id language title Thai
2415 UPDATE `list_options` SET `notes` = 'tha' WHERE `title` = 'Thai' AND `list_id` = 'language';
2416 #EndIf
2418 #IfNotRow2Dx2 list_options list_id language option_id tibetan title Tibetan
2419 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tibetan', 'Tibetan', 1610, 0, 0);
2420 #EndIf
2422 #IfRow2D list_options list_id language option_id tibetan
2423 UPDATE `list_options` SET `notes` = 'tib(B)|bod(T)' WHERE `option_id` = 'tibetan' AND `list_id` = 'language';
2424 #EndIf
2426 #IfRow2D list_options list_id language title Tibetan
2427 UPDATE `list_options` SET `notes` = 'tib(B)|bod(T)' WHERE `title` = 'Tibetan' AND `list_id` = 'language';
2428 #EndIf
2430 #IfNotRow2Dx2 list_options list_id language option_id tigrinya title Tigrinya
2431 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tigrinya', 'Tigrinya', 1620, 0, 0);
2432 #EndIf
2434 #IfRow2D list_options list_id language option_id tigrinya
2435 UPDATE `list_options` SET `notes` = 'tir' WHERE `option_id` = 'tigrinya' AND `list_id` = 'language';
2436 #EndIf
2438 #IfRow2D list_options list_id language title Tigrinya
2439 UPDATE `list_options` SET `notes` = 'tir' WHERE `title` = 'Tigrinya' AND `list_id` = 'language';
2440 #EndIf
2442 #IfNotRow2Dx2 list_options list_id language option_id tonga_tonga_islands title Tonga (Tonga Islands)
2443 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tonga_tonga_islands', 'Tonga (Tonga Islands)', 1630, 0, 0);
2444 #EndIf
2446 #IfRow2D list_options list_id language option_id tonga_tonga_islands
2447 UPDATE `list_options` SET `notes` = 'ton' WHERE `option_id` = 'tonga_tonga_islands' AND `list_id` = 'language';
2448 #EndIf
2450 #IfRow2D list_options list_id language title Tonga (Tonga Islands)
2451 UPDATE `list_options` SET `notes` = 'ton' WHERE `title` = 'Tonga (Tonga Islands)' AND `list_id` = 'language';
2452 #EndIf
2454 #IfNotRow2Dx2 list_options list_id language option_id tsonga title Tsonga
2455 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tsonga', 'Tsonga', 1640, 0, 0);
2456 #EndIf
2458 #IfRow2D list_options list_id language option_id tsonga
2459 UPDATE `list_options` SET `notes` = 'tso' WHERE `option_id` = 'tsonga' AND `list_id` = 'language';
2460 #EndIf
2462 #IfRow2D list_options list_id language title Tsonga
2463 UPDATE `list_options` SET `notes` = 'tso' WHERE `title` = 'Tsonga' AND `list_id` = 'language';
2464 #EndIf
2466 #IfNotRow2Dx2 list_options list_id language option_id tswana title Tswana
2467 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tswana', 'Tswana', 1650, 0, 0);
2468 #EndIf
2470 #IfRow2D list_options list_id language option_id tswana
2471 UPDATE `list_options` SET `notes` = 'tsn' WHERE `option_id` = 'tswana' AND `list_id` = 'language';
2472 #EndIf
2474 #IfRow2D list_options list_id language title Tswana
2475 UPDATE `list_options` SET `notes` = 'tsn' WHERE `title` = 'Tswana' AND `list_id` = 'language';
2476 #EndIf
2478 #IfNotRow2Dx2 list_options list_id language option_id turkish title Turkish
2479 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'turkish', 'Turkish', 1660, 0, 0);
2480 #EndIf
2482 #IfRow2D list_options list_id language option_id turkish
2483 UPDATE `list_options` SET `notes` = 'tur' WHERE `option_id` = 'turkish' AND `list_id` = 'language';
2484 #EndIf
2486 #IfRow2D list_options list_id language title Turkish
2487 UPDATE `list_options` SET `notes` = 'tur' WHERE `title` = 'Turkish' AND `list_id` = 'language';
2488 #EndIf
2490 #IfRow3D list_options list_id language seq 230 option_id turkish
2491 UPDATE `list_options` SET `seq` = 1660 WHERE `option_id` = 'turkish' AND `list_id` = 'language';
2492 #EndIf
2494 #IfRow3D list_options list_id language seq 230 title Turkish
2495 UPDATE `list_options` SET `seq` = 1660 WHERE `title` = 'Turkish' AND `list_id` = 'language';
2496 #EndIf
2498 #IfNotRow2Dx2 list_options list_id language option_id turkmen title Turkmen
2499 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'turkmen', 'Turkmen', 1670, 0, 0);
2500 #EndIf
2502 #IfRow2D list_options list_id language option_id turkmen
2503 UPDATE `list_options` SET `notes` = 'tuk' WHERE `option_id` = 'turkmen' AND `list_id` = 'language';
2504 #EndIf
2506 #IfRow2D list_options list_id language title Turkmen
2507 UPDATE `list_options` SET `notes` = 'tuk' WHERE `title` = 'Turkmen' AND `list_id` = 'language';
2508 #EndIf
2510 #IfNotRow2Dx2 list_options list_id language option_id twi title Twi
2511 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'twi', 'Twi', 1680, 0, 0);
2512 #EndIf
2514 #IfRow2D list_options list_id language option_id twi
2515 UPDATE `list_options` SET `notes` = 'twi' WHERE `option_id` = 'twi' AND `list_id` = 'language';
2516 #EndIf
2518 #IfRow2D list_options list_id language title Twi
2519 UPDATE `list_options` SET `notes` = 'twi' WHERE `title` = 'Twi' AND `list_id` = 'language';
2520 #EndIf
2522 #IfNotRow2Dx2 list_options list_id language option_id uighur_uyghur title Uighur; Uyghur
2523 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'uighur_uyghur', 'Uighur; Uyghur', 1690, 0, 0);
2524 #EndIf
2526 #IfRow2D list_options list_id language option_id uighur_uyghur
2527 UPDATE `list_options` SET `notes` = 'uig' WHERE `option_id` = 'uighur_uyghur' AND `list_id` = 'language';
2528 #EndIf
2530 #IfRow2D list_options list_id language title Uighur; Uyghur
2531 UPDATE `list_options` SET `notes` = 'uig' WHERE `title` = 'Uighur; Uyghur' AND `list_id` = 'language';
2532 #EndIf
2534 #IfNotRow2Dx2 list_options list_id language option_id ukrainian title Ukrainian
2535 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ukrainian', 'Ukrainian', 1700, 0, 0);
2536 #EndIf
2538 #IfRow2D list_options list_id language option_id ukrainian
2539 UPDATE `list_options` SET `notes` = 'ukr' WHERE `option_id` = 'ukrainian' AND `list_id` = 'language';
2540 #EndIf
2542 #IfRow2D list_options list_id language title Ukrainian
2543 UPDATE `list_options` SET `notes` = 'ukr' WHERE `title` = 'Ukrainian' AND `list_id` = 'language';
2544 #EndIf
2546 #IfNotRow2Dx2 list_options list_id language option_id urdu title Urdu
2547 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'urdu', 'Urdu', 1710, 0, 0);
2548 #EndIf
2550 #IfRow2D list_options list_id language option_id urdu
2551 UPDATE `list_options` SET `notes` = 'urd' WHERE `option_id` = 'urdu' AND `list_id` = 'language';
2552 #EndIf
2554 #IfRow2D list_options list_id language title Urdu
2555 UPDATE `list_options` SET `notes` = 'urd' WHERE `title` = 'Urdu' AND `list_id` = 'language';
2556 #EndIf
2558 #IfNotRow2Dx2 list_options list_id language option_id uzbek title Uzbek
2559 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'uzbek', 'Uzbek', 1720, 0, 0);
2560 #EndIf
2562 #IfRow2D list_options list_id language option_id uzbek
2563 UPDATE `list_options` SET `notes` = 'uzb' WHERE `option_id` = 'uzbek' AND `list_id` = 'language';
2564 #EndIf
2566 #IfRow2D list_options list_id language title Uzbek
2567 UPDATE `list_options` SET `notes` = 'uzb' WHERE `title` = 'Uzbek' AND `list_id` = 'language';
2568 #EndIf
2570 #IfNotRow2Dx2 list_options list_id language option_id venda title Venda
2571 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'venda', 'Venda', 1730, 0, 0);
2572 #EndIf
2574 #IfRow2D list_options list_id language option_id venda
2575 UPDATE `list_options` SET `notes` = 'ven' WHERE `option_id` = 'venda' AND `list_id` = 'language';
2576 #EndIf
2578 #IfRow2D list_options list_id language title Venda
2579 UPDATE `list_options` SET `notes` = 'ven' WHERE `title` = 'Venda' AND `list_id` = 'language';
2580 #EndIf
2582 #IfNotRow2Dx2 list_options list_id language option_id vietnamese title Vietnamese
2583 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'vietnamese', 'Vietnamese', 1740, 0, 0);
2584 #EndIf
2586 #IfRow2D list_options list_id language option_id vietnamese
2587 UPDATE `list_options` SET `notes` = 'vie' WHERE `option_id` = 'vietnamese' AND `list_id` = 'language';
2588 #EndIf
2590 #IfRow2D list_options list_id language title Vietnamese
2591 UPDATE `list_options` SET `notes` = 'vie' WHERE `title` = 'Vietnamese' AND `list_id` = 'language';
2592 #EndIf
2594 #IfRow3D list_options list_id language seq 240 option_id vietnamese
2595 UPDATE `list_options` SET `seq` = 1740 WHERE `option_id` = 'vietnamese' AND `list_id` = 'language';
2596 #EndIf
2598 #IfRow3D list_options list_id language seq 240 title Vietnamese
2599 UPDATE `list_options` SET `seq` = 1740 WHERE `title` = 'Vietnamese' AND `list_id` = 'language';
2600 #EndIf
2602 #IfNotRow2Dx2 list_options list_id language option_id volapuk title Volapük
2603 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'volapuk', 'Volapük', 1750, 0, 0);
2604 #EndIf
2606 #IfRow2D list_options list_id language option_id volapuk
2607 UPDATE `list_options` SET `notes` = 'vol' WHERE `option_id` = 'volapuk' AND `list_id` = 'language';
2608 #EndIf
2610 #IfRow2D list_options list_id language title Volapük
2611 UPDATE `list_options` SET `notes` = 'vol' WHERE `title` = 'Volapük' AND `list_id` = 'language';
2612 #EndIf
2614 #IfNotRow2Dx2 list_options list_id language option_id walloon title Walloon
2615 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'walloon', 'Walloon', 1760, 0, 0);
2616 #EndIf
2618 #IfRow2D list_options list_id language option_id walloon
2619 UPDATE `list_options` SET `notes` = 'wln' WHERE `option_id` = 'walloon' AND `list_id` = 'language';
2620 #EndIf
2622 #IfRow2D list_options list_id language title Walloon
2623 UPDATE `list_options` SET `notes` = 'wln' WHERE `title` = 'Walloon' AND `list_id` = 'language';
2624 #EndIf
2626 #IfNotRow2Dx2 list_options list_id language option_id welsh title Welsh
2627 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'welsh', 'Welsh', 1770, 0, 0);
2628 #EndIf
2630 #IfRow2D list_options list_id language option_id welsh
2631 UPDATE `list_options` SET `notes` = 'wel(B)|cym(T)' WHERE `option_id` = 'welsh' AND `list_id` = 'language';
2632 #EndIf
2634 #IfRow2D list_options list_id language title Welsh
2635 UPDATE `list_options` SET `notes` = 'wel(B)|cym(T)' WHERE `title` = 'Welsh' AND `list_id` = 'language';
2636 #EndIf
2638 #IfNotRow2Dx2 list_options list_id language option_id western_frisian title Western Frisian
2639 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'western_frisian', 'Western Frisian', 1780, 0, 0);
2640 #EndIf
2642 #IfRow2D list_options list_id language option_id western_frisian
2643 UPDATE `list_options` SET `notes` = 'fry' WHERE `option_id` = 'western_frisian' AND `list_id` = 'language';
2644 #EndIf
2646 #IfRow2D list_options list_id language title Western Frisian
2647 UPDATE `list_options` SET `notes` = 'fry' WHERE `title` = 'Western Frisian' AND `list_id` = 'language';
2648 #EndIf
2650 #IfNotRow2Dx2 list_options list_id language option_id wolof title Wolof
2651 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'wolof', 'Wolof', 1790, 0, 0);
2652 #EndIf
2654 #IfRow2D list_options list_id language option_id wolof
2655 UPDATE `list_options` SET `notes` = 'wol' WHERE `option_id` = 'wolof' AND `list_id` = 'language';
2656 #EndIf
2658 #IfRow2D list_options list_id language title Wolof
2659 UPDATE `list_options` SET `notes` = 'wol' WHERE `title` = 'Wolof' AND `list_id` = 'language';
2660 #EndIf
2662 #IfNotRow2Dx2 list_options list_id language option_id xhosa title Xhosa
2663 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'xhosa', 'Xhosa', 1800, 0, 0);
2664 #EndIf
2666 #IfRow2D list_options list_id language option_id xhosa
2667 UPDATE `list_options` SET `notes` = 'xho' WHERE `option_id` = 'xhosa' AND `list_id` = 'language';
2668 #EndIf
2670 #IfRow2D list_options list_id language title Xhosa
2671 UPDATE `list_options` SET `notes` = 'xho' WHERE `title` = 'Xhosa' AND `list_id` = 'language';
2672 #EndIf
2674 #IfNotRow2Dx2 list_options list_id language option_id yiddish title Yiddish
2675 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'yiddish', 'Yiddish', 1810, 0, 0);
2676 #EndIf
2678 #IfRow2D list_options list_id language option_id yiddish
2679 UPDATE `list_options` SET `notes` = 'yid' WHERE `option_id` = 'yiddish' AND `list_id` = 'language';
2680 #EndIf
2682 #IfRow2D list_options list_id language title Yiddish
2683 UPDATE `list_options` SET `notes` = 'yid' WHERE `title` = 'Yiddish' AND `list_id` = 'language';
2684 #EndIf
2686 #IfRow3D list_options list_id language seq 250 option_id yiddish
2687 UPDATE `list_options` SET `seq` = 1810 WHERE `option_id` = 'yiddish' AND `list_id` = 'language';
2688 #EndIf
2690 #IfRow3D list_options list_id language seq 250 title Yiddish
2691 UPDATE `list_options` SET `seq` = 1810 WHERE `title` = 'Yiddish' AND `list_id` = 'language';
2692 #EndIf
2694 #IfNotRow2Dx2 list_options list_id language option_id yoruba title Yoruba
2695 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'yoruba', 'Yoruba', 1820, 0, 0);
2696 #EndIf
2698 #IfRow2D list_options list_id language option_id yoruba
2699 UPDATE `list_options` SET `notes` = 'yor' WHERE `option_id` = 'yoruba' AND `list_id` = 'language';
2700 #EndIf
2702 #IfRow2D list_options list_id language title Yoruba
2703 UPDATE `list_options` SET `notes` = 'yor' WHERE `title` = 'Yoruba' AND `list_id` = 'language';
2704 #EndIf
2706 #IfNotRow2Dx2 list_options list_id language option_id zhuang_chuang title Zhuang; Chuang
2707 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'zhuang_chuang', 'Zhuang; Chuang', 1830, 0, 0);
2708 #EndIf
2710 #IfRow2D list_options list_id language option_id zhuang_chuang
2711 UPDATE `list_options` SET `notes` = 'zha' WHERE `option_id` = 'zhuang_chuang' AND `list_id` = 'language';
2712 #EndIf
2714 #IfRow2D list_options list_id language title Zhuang; Chuang
2715 UPDATE `list_options` SET `notes` = 'zha' WHERE `title` = 'Zhuang; Chuang' AND `list_id` = 'language';
2716 #EndIf
2718 #IfNotRow2Dx2 list_options list_id language option_id zulu title Zulu
2719 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'zulu', 'Zulu', 1840, 0, 0);
2720 #EndIf
2722 #IfRow2D list_options list_id language option_id zulu
2723 UPDATE `list_options` SET `notes` = 'zul' WHERE `option_id` = 'zulu' AND `list_id` = 'language';
2724 #EndIf
2726 #IfRow2D list_options list_id language title Zulu
2727 UPDATE `list_options` SET `notes` = 'zul' WHERE `title` = 'Zulu' AND `list_id` = 'language';
2728 #EndIf
2730 #IfRow3D list_options list_id language seq 260 option_id zulu
2731 UPDATE `list_options` SET `seq` = 1840 WHERE `option_id` = 'zulu' AND `list_id` = 'language';
2732 #EndIf
2734 #IfRow3D list_options list_id language seq 260 title Zulu
2735 UPDATE `list_options` SET `seq` = 1840 WHERE `title` = 'Zulu' AND `list_id` = 'language';
2736 #EndIf
2738 #IfMissingColumn code_types ct_drug
2739 ALTER TABLE `code_types` ADD COLUMN ct_drug tinyint(1) NOT NULL default 0 COMMENT '1 if this is a medication';
2740 #EndIf
2742 #IfNotRow code_types ct_key RXCUI
2743 DROP TABLE IF EXISTS `temp_table_one`;
2744 CREATE TABLE `temp_table_one` (`id` int(11) NOT NULL DEFAULT '0',`seq` int(11) NOT NULL DEFAULT '0') ENGINE=MyISAM;
2745 INSERT INTO `temp_table_one` (`id`, `seq`) VALUES (
2746   IF(((SELECT MAX(`ct_id` ) FROM `code_types`) >= 100), ((SELECT MAX(`ct_id` ) FROM `code_types`) + 1), 100),
2747   IF(((SELECT MAX(`ct_seq`) FROM `code_types`) >= 100), ((SELECT MAX(`ct_seq`) FROM `code_types`) + 1), 100));
2748 INSERT INTO code_types (ct_key, ct_id, ct_seq, ct_mod, ct_just, ct_fee, ct_rel, ct_nofs, ct_diag, ct_active, ct_label, ct_drug ) VALUES
2749   ('RXCUI', (SELECT MAX(`id`) FROM `temp_table_one`), (SELECT MAX(`seq`) FROM `temp_table_one`), 0, '', 0, 0, 1, 0, 0, 'RXCUI Medication', 1);
2750 DROP TABLE `temp_table_one`;
2751 #EndIf
2753 #IfNotColumnType immunizations amount_administered float
2754 ALTER TABLE immunizations CHANGE amount_administered amount_administered FLOAT;
2755 #EndIf
2757 #IfNotRow4D supported_external_dataloads load_type ICD9 load_source CMS load_release_date 2014-10-01 load_filename ICD-9-CM-v32-master-descriptions.zip
2758 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD9', 'CMS', '2014-10-01', 'ICD-9-CM-v32-master-descriptions.zip', 'b852b85f770c83433201dc8ae2c59074');
2759 #EndIf
2761 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename 2015-PCS-long-and-abbreviated-titles.zip
2762 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', '2015-PCS-long-and-abbreviated-titles.zip', 'd1504d6cbc40e008e52dbc50600a4b66');
2763 #EndIf
2765 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename DiagnosisGEMs_2015.zip
2766 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', 'DiagnosisGEMs_2015.zip', 'a4505805edf25ba4eacda07f23934e63');
2767 #EndIf
2769 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename 2015-code-descriptions.zip
2770 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', '2015-code-descriptions.zip', '6a8c0ab630d5afa7482daa417950846a');
2771 #EndIf
2773 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename ProcedureGEMs_2015.zip
2774 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', 'ProcedureGEMs_2015.zip', 'fcba4e4c96851f4c900345bc557483e2');
2775 #EndIf
2777 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename Reimbursement_Mapping_dx_2015.zip
2778 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', 'Reimbursement_Mapping_dx_2015.zip', '0990d5bcac13ccf5e288249be5261fd7');
2779 #EndIf
2781 #IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename Reimbursement_Mapping_pr_2015.zip
2782 INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', 'Reimbursement_Mapping_pr_2015.zip', '493c022db17a70fcdcbb41bf0ad61a47');
2783 #EndIf
2785 #IfMissingColumn clinical_rules amc_2011_flag
2786 ALTER TABLE `clinical_rules` ADD COLUMN `amc_2011_flag` tinyint(1) COMMENT '2011 Automated Measure Calculation flag for (unable to customize per patient)';
2787 UPDATE `clinical_rules` SET `amc_2011_flag` = 1 WHERE `amc_flag` = 1;
2788 #EndIf
2790 #IfMissingColumn clinical_rules amc_2014_flag
2791 ALTER TABLE `clinical_rules` ADD COLUMN `amc_2014_flag` tinyint(1) COMMENT '2014 Automated Measure Calculation flag for (unable to customize per patient)';
2792 #EndIf
2794 #IfMissingColumn clinical_rules amc_code_2014
2795 ALTER TABLE `clinical_rules` ADD COLUMN `amc_code_2014` varchar(30) NOT NULL default '' COMMENT 'Automated Measure Calculation 2014 identifier (MU rule)';
2796 #EndIf
2798 #IfMissingColumn clinical_rules cqm_2011_flag
2799 ALTER TABLE `clinical_rules` ADD COLUMN `cqm_2011_flag` tinyint(1) COMMENT '2011 Clinical Quality Measure flag (unable to customize per patient)';
2800 UPDATE `clinical_rules` SET `cqm_2011_flag` = 1 WHERE `cqm_flag` = 1;
2801 #EndIf
2803 #IfMissingColumn clinical_rules cqm_2014_flag
2804 ALTER TABLE `clinical_rules` ADD COLUMN `cqm_2014_flag` tinyint(1) COMMENT '2014 Clinical Quality Measure flag (unable to customize per patient)';
2805 #EndIf
2807 #IfMissingColumn clinical_plans cqm_2011_flag
2808 ALTER TABLE `clinical_plans` ADD COLUMN `cqm_2011_flag` tinyint(1) COMMENT '2011 Clinical Quality Measure flag (unable to customize per patient)';
2809 UPDATE `clinical_plans` SET `cqm_2011_flag` = 1 WHERE `cqm_flag` = 1;
2810 #EndIf
2812 #IfMissingColumn clinical_plans cqm_2014_flag
2813 ALTER TABLE `clinical_plans` ADD COLUMN `cqm_2014_flag` tinyint(1) COMMENT '2014 Clinical Quality Measure flag (unable to customize per patient)';
2814 #EndIf
2816 #IfNotRow2D clinical_rules id problem_list_amc amc_2014_flag 1
2817 UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–4' WHERE `id` = 'problem_list_amc';
2818 #EndIf
2820 #IfNotRow2D clinical_rules id med_list_amc amc_2014_flag 1
2821 UPDATE `clinical_rules` SET `amc_2014_flag` = 1 ,`amc_code_2014` = '170.314(g)(1)/(2)–5' WHERE `id` = 'med_list_amc';
2822 #EndIf
2824 #IfNotRow2D clinical_rules id med_allergy_list_amc amc_2014_flag 1
2825 UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–6' WHERE `id` = 'med_allergy_list_amc';
2826 #EndIf
2828 #IfNotRow2D clinical_rules id record_dem_amc amc_2014_flag 1
2829 UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–9' WHERE `id` = 'record_dem_amc';
2830 #EndIf
2832 #IfNotRow2D clinical_rules id record_smoke_amc amc_2014_flag 1
2833 UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–11' WHERE `id` = 'record_smoke_amc';
2834 #EndIf
2836 #IfNotRow2D clinical_rules id lab_result_amc amc_2014_flag 1
2837 UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–12' WHERE `id` = 'lab_result_amc';
2838 #EndIf
2840 #IfNotRow2D clinical_rules id med_reconc_amc amc_2014_flag 1
2841 UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–17' WHERE `id` = 'med_reconc_amc';
2842 #EndIf
2844 #IfMissingColumn history_data dc_father
2845         ALTER TABLE `history_data` ADD `dc_father` text;
2846 #EndIf
2847 #IfMissingColumn history_data dc_mother
2848         ALTER TABLE `history_data` ADD `dc_mother` text;
2849 #EndIf
2850 #IfMissingColumn history_data dc_siblings
2851         ALTER TABLE `history_data` ADD `dc_siblings` text;
2852 #EndIf
2853 #IfMissingColumn history_data dc_spouse
2854         ALTER TABLE `history_data` ADD `dc_spouse` text;
2855 #EndIf
2856 #IfMissingColumn history_data dc_offspring
2857         ALTER TABLE `history_data` ADD `dc_offspring` text;
2858 #EndIf
2859 #IfNotRow2D layout_options form_id HIS field_id dc_father
2860         INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_father', '2Family History', 'Diagnosis Code', 2, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, '');
2861         UPDATE `layout_options` SET `seq` = '3' WHERE `layout_options`.`form_id` = 'HIS' AND `layout_options`.`field_id` = 'history_mother';
2862 #EndIf
2863 #IfNotRow2D layout_options form_id HIS field_id dc_mother
2864         INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_mother', '2Family History', 'Diagnosis Code', 4, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, '');
2865         UPDATE `layout_options` SET `seq` = '5' WHERE `layout_options`.`form_id` = 'HIS' AND `layout_options`.`field_id` = 'history_siblings';
2866 #EndIf
2867 #IfNotRow2D layout_options form_id HIS field_id dc_siblings
2868         INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_siblings', '2Family History', 'Diagnosis Code', 6, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, '');
2869         UPDATE `layout_options` SET `seq` = '7' WHERE `layout_options`.`form_id` = 'HIS' AND `layout_options`.`field_id` = 'history_spouse';
2870 #EndIf
2871 #IfNotRow2D layout_options form_id HIS field_id dc_spouse
2872         INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_spouse', '2Family History', 'Diagnosis Code', 8, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, '');
2873         UPDATE `layout_options` SET `seq` = '9', `datacols` = '1' WHERE `layout_options`.`form_id` = 'HIS' AND `layout_options`.`field_id` = 'history_offspring';
2874 #EndIf
2875 #IfNotRow2D layout_options form_id HIS field_id dc_offspring
2876         INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_offspring', '2Family History', 'Diagnosis Code', 10, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, '');
2877 #EndIf
2879 #IfNotRow2D list_options list_id lists option_id amendment_status
2880         INSERT INTO `list_options` ( `list_id`, `option_id`, `title` ) 
2881         VALUES ('lists' ,'amendment_status','Amendment Status');
2883         INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES
2884         ('amendment_status' ,'approved','Approved', 10, 0),
2885         ('amendment_status' ,'rejected','Rejected', 20, 0);
2886 #EndIf
2888 #IfNotRow2D list_options list_id lists option_id amendment_from 
2889         INSERT INTO `list_options` ( `list_id`, `option_id`, `title` ) 
2890         VALUES ('lists' ,'amendment_from','Amendment From');
2892         INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES
2893         ('amendment_from' ,'patient','Patient', 10, 0),
2894         ('amendment_from' ,'insurance','Insurance', 20, 0);
2895 #EndIf
2897 #IfNotTable amendments
2898         CREATE TABLE `amendments` (
2899                 `amendment_id`  int(11)                 NOT NULL AUTO_INCREMENT COMMENT 'Amendment ID',
2900                 `amendment_date` date                   NOT NULL        COMMENT 'Amendement request date',
2901                 `amendment_by`  varchar(50)             NOT NULL        COMMENT 'Amendment requested from',
2902                 `amendment_status` varchar(50)  NULL            COMMENT 'Amendment status accepted/rejected/null',
2903                 `pid`                   int(11)                 NOT NULL        COMMENT 'Patient ID from patient_data',
2904                 `amendment_desc` text                   NOT NULL        COMMENT 'Amendment Details',
2905                 `created_by`    int(11)                 NOT NULL        COMMENT 'references users.id for session owner',
2906                 `modified_by`   int(11)                 NULL            COMMENT 'references users.id for session owner',
2907                 `created_time`  timestamp               NOT NULL DEFAULT '0000-00-00 00:00:00'  COMMENT 'created time',
2908                 `modified_time` timestamp               NULL            COMMENT 'modified time',
2909                 PRIMARY KEY amendments_id(`amendment_id`),
2910                 KEY amendment_pid(`pid`)
2911         ) ENGINE = MyISAM;
2912 #EndIf
2914 #IfNotTable amendments_history
2915         CREATE TABLE `amendments_history` (
2916                 `amendment_id`  int(11)                 NOT NULL AUTO_INCREMENT COMMENT 'Amendment ID',
2917                 `amendment_note` text                   NOT NULL        COMMENT 'Amendment requested from',
2918                 `amendment_status` VARCHAR(50)  NULL            COMMENT 'Amendment Request Status',
2919                 `created_by`    int(11)                 NOT NULL        COMMENT 'references users.id for session owner',
2920                 `created_time`  timestamp               NOT NULL DEFAULT '0000-00-00 00:00:00'  COMMENT 'created time',
2921                 KEY amendment_history_id(`amendment_id`)
2922         ) ENGINE = MyISAM;
2923 #EndIf
2925 #IfNotTable log_comment_encrypt
2926         CREATE TABLE `log_comment_encrypt` (
2927           `id` int(11) NOT NULL AUTO_INCREMENT,
2928           `log_id` int(11) NOT NULL,
2929           `encrypt` enum('Yes','No') NOT NULL DEFAULT 'No',
2930           `checksum` longtext NOT NULL,
2931           PRIMARY KEY (`id`)
2932         ) ENGINE=InnoDB;
2933 #EndIf
2935 #IfMissingColumn documents encounter_id
2936   ALTER TABLE `documents` ADD `encounter_id` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Encounter id if tagged';
2937 #EndIf
2939 #IfMissingColumn documents encounter_check
2940         ALTER TABLE `documents` ADD `encounter_check` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'If encounter is created while tagging';
2941 #EndIf
2943 #IfNotTable report_itemized
2944 CREATE TABLE `report_itemized` (
2945   `report_id` bigint(20) NOT NULL,
2946   `itemized_test_id` smallint(6) NOT NULL,
2947   `numerator_label` varchar(25) NOT NULL DEFAULT '' COMMENT 'Only used in special cases',
2948   `pass` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 is fail, 1 is pass, 2 is excluded',
2949   `pid` bigint(20) NOT NULL,
2950   KEY (`report_id`,`itemized_test_id`,`numerator_label`,`pass`)
2951 ) ENGINE=MyISAM;
2952 #EndIf
2954 #IfNotTable shared_attributes
2955 CREATE TABLE `shared_attributes` (
2956   `pid`          bigint(20)   NOT NULL,
2957   `encounter`    bigint(20)   NOT NULL COMMENT '0 if patient attribute, else encounter attribute',
2958   `field_id`     varchar(31)  NOT NULL COMMENT 'references layout_options.field_id',
2959   `last_update`  datetime     NOT NULL COMMENT 'time of last update',
2960   `user_id`      bigint(20)   NOT NULL COMMENT 'user who last updated',
2961   `field_value`  TEXT         NOT NULL,
2962   PRIMARY KEY (`pid`, `encounter`, `field_id`)
2964 #EndIf
2966 #IfMissingColumn layout_options source
2967 ALTER TABLE `layout_options` ADD COLUMN `source` char(1) NOT NULL default 'F'
2968   COMMENT 'F=Form, D=Demographics, H=History, E=Encounter';
2969 #EndIf
2971 #IfMissingColumn layout_options conditions
2972 ALTER TABLE `layout_options` ADD COLUMN
2973   `conditions` text NOT NULL DEFAULT '' COMMENT 'serialized array of skip conditions';
2974 #EndIf