
ALTER TABLE hotel_channel DROP COLUMN commission;
ALTER TABLE hotel_channel DROP COLUMN payment_method;
ALTER TABLE hotel_booking RENAME COLUMN party_seller TO channel;
UPDATE hotel_folio SET nights_quantity=(departure_date-arrival_date)


UPDATE account_statement_line SET source=t.booking FROM (
  SELECT account_statement_line.id AS lid, 'hotel.booking,' || hfst.booking AS booking
    FROM account_statement_line
    INNER JOIN hotel_booking_statement_line_rel AS hfst
      ON hfst.statement_line=account_statement_line.id) AS t
    WHERE t.lid=account_statement_line.id;
