There were discrepancies between the latest 149.sql and the latest schema.sql.
As I was fighting the replication at the time already, I prefered aligning
both. Out of 149, I understood we wanted to make not null constraints on the
following tables, so here goes that diff.
This commits fixes that, migrating first the data not respecting those
constraints.