|
@@ 297-300 (lines=4) @@
|
| 294 |
|
// artillerie lourde pour sqlite2 ! |
| 295 |
|
} else { |
| 296 |
|
$table_dest = trim(substr($do, 9)); |
| 297 |
|
if (!_sqlite_modifier_table(array($table => $table_dest), '', '', $serveur)){ |
| 298 |
|
spip_log("SQLite : Erreur ALTER TABLE / RENAME : $query", 'sqlite.'._LOG_ERREUR); |
| 299 |
|
return false; |
| 300 |
|
} |
| 301 |
|
} |
| 302 |
|
break; |
| 303 |
|
|
|
@@ 377-380 (lines=4) @@
|
| 374 |
|
$def = preg_replace(',primary\s+key,i','',$def); |
| 375 |
|
} |
| 376 |
|
$opts['field'] = array($colonne_ajoutee => $def); |
| 377 |
|
if (!_sqlite_modifier_table($table, array($colonne_ajoutee), $opts, $serveur)){ |
| 378 |
|
spip_log("SQLite : Erreur ALTER TABLE / ADD : $query", 'sqlite.'._LOG_ERREUR); |
| 379 |
|
return false; |
| 380 |
|
} |
| 381 |
|
} |
| 382 |
|
break; |
| 383 |
|
} |