| 274 | } |
| 275 | |
| 276 | static bool db_postgres_rename_column(struct db *db, |
| 277 | const char *tablename, |
| 278 | const char *from, const char *to) |
| 279 | { |
| 280 | char *cmd; |
| 281 | |
| 282 | cmd = tal_fmt(db, "ALTER TABLE %s RENAME %s TO %s;", |
| 283 | tablename, from, to); |
| 284 | db_exec_prepared_v2(take(db_prepare_untranslated(db, cmd))); |
| 285 | return true; |
| 286 | } |
| 287 | |
| 288 | static bool db_postgres_delete_columns(struct db *db, |
| 289 | const char *tablename, |
nothing calls this directly
no test coverage detected