New Database Model ZXDB

This is the place for general discussion and updates about the ZXDB Database. This forum is not specific to Spectrum Computing.

Moderator: druellan

User avatar
PeterJ
Site Admin
Posts: 6909
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New Database Model ZXDB

Post by PeterJ »

Thanks [mention]Einar Saukas[/mention]. I will update the site over the weekend. More exact times to follow.
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

Another ZXDB update is available again!

This should be a new record :)
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

There's now a new column "book_isbn" in table "releases".

The old column "book_isbn" in table "entries" is not used anymore, and it will be removed in the next ZXDB release.

The reason for this change is that each book edition has a different ISBN. Therefore this property belongs to book edition, not book title.

A different ISBN per book edition can be seen for instance here.
User avatar
pavero
Dynamite Dan
Posts: 1599
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: New Database Model ZXDB

Post by pavero »

Einar Saukas wrote: Fri May 28, 2021 5:08 pm There's now a new column "book_isbn" in table "releases".

The old column "book_isbn" in table "entries" is not used anymore, and it will be removed in the next ZXDB release.

The reason for this change is that each book edition has a different ISBN. Therefore this property belongs to book edition, not book title.

A different ISBN per book edition can be seen for instance here.
And what about "book_pages" column?
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

pavero wrote: Fri May 28, 2021 6:37 pm And what about "book_pages" column?
I didn't think anyone would ask :)

This change will have to wait for another ZXDB update, simply because I forgot to add this column in the last ZXDB release.

I only noticed my mistake this morning when I updated SC to display book_isbn, then realized that book_pages was still in the wrong place. Dammit!
User avatar
pavero
Dynamite Dan
Posts: 1599
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: New Database Model ZXDB

Post by pavero »

:-)

BTW, why is this column varchar(50)? ;)
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

It won't be.

Code: Select all

alter table releases add column book_pages smallint(6) after book_isbn;
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

A new ZXDB update is available!
User avatar
PeterJ
Site Admin
Posts: 6909
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New Database Model ZXDB

Post by PeterJ »

Einar Saukas wrote: Tue Jun 01, 2021 5:12 pm A new ZXDB update is available!
Thanks. I will upgrade the site in the morning. It's likely to be early, before I start work. Einar tells me that this includes the fix for [mention]Bubu[/mention].
User avatar
Bubu
Manic Miner
Posts: 542
Joined: Fri Apr 02, 2021 8:24 pm
Location: Spain

Re: New Database Model ZXDB

Post by Bubu »

Should it be repaired tomorrow?
If something works, don't touch it !!!! at all !!!
User avatar
PeterJ
Site Admin
Posts: 6909
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New Database Model ZXDB

Post by PeterJ »

Bubu wrote: Tue Jun 01, 2021 11:35 pm Should it be repaired tomorrow?
Yes, will start update in about one hour.
User avatar
PeterJ
Site Admin
Posts: 6909
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New Database Model ZXDB

Post by PeterJ »

Bubu wrote: Tue Jun 01, 2021 11:35 pm Should it be repaired tomorrow?
All done.
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

Einar Saukas wrote: Fri May 28, 2021 6:49 pm I only noticed my mistake this morning when I updated SC to display book_isbn, then realized that book_pages was still in the wrong place. Dammit!
OK, there's now a new column "book_pages" in table "releases".

The old column "book_pages" in table "entries" is not used anymore, and it will be removed in the next ZXDB release.
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

A new ZXDB update is available!
User avatar
PeterJ
Site Admin
Posts: 6909
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New Database Model ZXDB

Post by PeterJ »

Einar Saukas wrote: Tue Jun 08, 2021 6:58 pm A new ZXDB update is available!
Thanks [mention]Einar Saukas[/mention]. Will update on Thursday. Time to be confirmed.
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

I didn't know that "groups" became a reserved word in MySQL 8.0.2 (for absolutely no reason). This change broke several queries in SC when it upgraded the database.

It's too inconvenient to keep a table name that causes issues on certain databases. To avoid this problem affecting any other site or service using ZXDB in the future, I'm planning to rename table "groups" to something else (probably "tags"). As usual, it will be a gradual change: a future version of ZXDB will have both names as synonyms, afterwards sites will have time to change this table name in queries before the old name is removed. It will be a very easy change really.

Even so, I wanted to describe this idea here in advance, before I change anything, thus if anyone sees any problem with this change then please let me know!
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

A new ZXDB update is available!

Many thanks to everyone involved!!!
User avatar
PeterJ
Site Admin
Posts: 6909
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New Database Model ZXDB

Post by PeterJ »

Einar Saukas wrote: Mon Jun 21, 2021 7:25 pm A new ZXDB update is available!

Many thanks to everyone involved!!!
Excellent. Will sort the update on Thursday. Details to follow.
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

Einar Saukas wrote: Sat Jun 12, 2021 10:31 pm I didn't know that "groups" became a reserved word in MySQL 8.0.2 (for absolutely no reason). This change broke several queries in SC when it upgraded the database.

It's too inconvenient to keep a table name that causes issues on certain databases. To avoid this problem affecting any other site or service using ZXDB in the future, I'm planning to rename table "groups" to something else (probably "tags"). As usual, it will be a gradual change: a future version of ZXDB will have both names as synonyms, afterwards sites will have time to change this table name in queries before the old name is removed. It will be a very easy change really.
In the next ZXDB update, tables "groups" and "grouptypes" will be dropped, for the reasons mentioned above. Instead of them, please use tables "tags" and "tagtypes" (that already exist in latest ZXDB version). Likewise column "members.group_id" will be removed, please use column "members.tag_id" instead.

Moreover table "interviews" will be also dropped. Instead there's now a new table called "articles" that contains different kinds of web articles about people and companies, not just interviews. For instance the page about Veronika Megler now includes also a memoir (written by herself) about her experience developing The Hobbit.
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

Another ZXDB update is available!
User avatar
PeterJ
Site Admin
Posts: 6909
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New Database Model ZXDB

Post by PeterJ »

Einar Saukas wrote: Tue Jun 29, 2021 7:20 pm Another ZXDB update is available!
Thanks [mention]Einar Saukas[/mention],

This will be done on Friday. Details to follow.
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

A new ZXDB update is now available!

Many thanks to everyone involved!
User avatar
PeterJ
Site Admin
Posts: 6909
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New Database Model ZXDB

Post by PeterJ »

Einar Saukas wrote: Mon Jul 05, 2021 7:14 pm A new ZXDB update is now available!

Many thanks to everyone involved!
Thanks [mention]Einar Saukas[/mention]. I will do on Friday.
User avatar
Einar Saukas
Bugaboo
Posts: 3167
Joined: Wed Nov 15, 2017 2:48 pm

Re: New Database Model ZXDB

Post by Einar Saukas »

Another ZXDB update is available!
User avatar
PeterJ
Site Admin
Posts: 6909
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New Database Model ZXDB

Post by PeterJ »

Einar Saukas wrote: Wed Jul 14, 2021 1:06 am Another ZXDB update is available!
Thank you. I will apply this later in the week.. Peter
Post Reply