Code Duplication    Length = 5-5 lines in 2 locations

ecrire/req/sqlite_generique.php 2 locations

@@ 339-343 (lines=5) @@
336
					// artillerie lourde pour sqlite2 !
337
				} else {
338
					$table_dest = trim(substr($do, 9));
339
					if (!_sqlite_modifier_table(array($table => $table_dest), '', array(), $serveur)) {
340
						spip_log("SQLite : Erreur ALTER TABLE / RENAME : $query", 'sqlite.' . _LOG_ERREUR);
341
342
						return false;
343
					}
344
				}
345
				break;
346
@@ 423-427 (lines=5) @@
420
						$def = preg_replace(',primary\s+key,i', '', $def);
421
					}
422
					$opts['field'] = array($colonne_ajoutee => $def);
423
					if (!_sqlite_modifier_table($table, array($colonne_ajoutee), $opts, $serveur)) {
424
						spip_log("SQLite : Erreur ALTER TABLE / ADD : $query", 'sqlite.' . _LOG_ERREUR);
425
426
						return false;
427
					}
428
				}
429
				break;
430
		}