pmpermission: migration bug fixes for "PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null:"