How a database schema is specified changed in V4.0. The newer wview_extended schema uses the new way, the older wview schema uses the old way. My hunch is that you're mixing the new way and the old way.
Take a look in the [[wx_binding]] section of weewx.conf. You want either:
# Old way, using wview schema
[DataBindings]
[[wx_binding]]
# The database must match one of the sections in [Databases].
# This is likely to be the only option you would want to change.
database = archive_sqlite
# The name of the table within the database
table_name = archive
# The manager handles aggregation of data for historical summaries
manager = weewx.wxmanager.WXDaySummaryManager
# The schema defines the structure of the database.
# It is *only* used when the database is created.
schema = schemas.wview.schema
# New way, using wview_extended schema
[DataBindings]
[[wx_binding]]
# The database must match one of the sections in [Databases].
# This is likely to be the only option you would want to change.
database = archive_sqlite
# The name of the table within the database
table_name = archive
# The manager handles aggregation of data for historical summaries
manager = weewx.manager.DaySummaryManager
# The schema defines the structure of the database.
# It is *only* used when the database is created.
schema = schemas.wview_extended.schema
If you're using the older wview schema, make sure the manager is set to weewx.wxmanager.WXDaySummaryManager. Then, use wee_database to drop, then rebuild the daily summaries.
-tk