No primary key on archive

71 views
Skip to first unread message

Clay Jackson

unread,
May 1, 2024, 12:39:14 AM5/1/24
to weewx-user
I'm importing weewx data from a mariadb  database to a percona xtradb  and it has strict primary key enforcement turned on.  Is there a reason there's a key but not a primary key defined for the archive table?

Tom Keffer

unread,
May 1, 2024, 9:31:56 AM5/1/24
to weewx...@googlegroups.com
But, there is a primary key: field dateTime. It should be defined as "INTEGER NOT NULL UNIQUE PRIMARY KEY".

You're not seeing that?

On Tue, Apr 30, 2024 at 9:39 PM Clay Jackson <cl...@n7qnm.net> wrote:
I'm importing weewx data from a mariadb  database to a percona xtradb  and it has strict primary key enforcement turned on.  Is there a reason there's a key but not a primary key defined for the archive table?

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/5c4a39f8-5517-4c26-9a79-98ac3df11b6fn%40googlegroups.com.

Cameron D

unread,
May 1, 2024, 8:10:08 PM5/1/24
to weewx-user
Some of the  utilities for exporting data structure only declare the primary key in an ALTER TABLE at  the end of the file.  I never understood why.
Not sure if it was phpmyadmin or mysql workbench.

Mysqdump declares it differently again

Reply all
Reply to author
Forward
0 new messages