Skip to content

Commit

Permalink
Version 1.0.189
Browse files Browse the repository at this point in the history
  • Loading branch information
einar-saukas committed Apr 7, 2024
1 parent 36ee0a7 commit 549e537
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified ZXDB_mysql.sql.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions scripts/01-ZXDB_import_demozoo.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ order by name;
-- Categories from Demozoo not in ZXDB
select concat('(''',category,'''),') as 'insert into categories(text) values'
from (
select replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(c.name,'CAFePARTY 2019 Invitations','Invitation'),'BASIC 10Liner Contest PUR-80','PUR-80'),'Old School Demo','Oldschool Demo'),'Combined - Game','Combined Game'),'64 Byte Intro Oldschool','Oldschool 64b Intro'),'Low End','LowEnd'),' Tiny Intro (256b)',' 256b Intro'),' Intro 256B',' 256b Intro'),' Intro 4KB',' 4K Intro'),' Intro 4Kb',' 4K Intro'),' Intro 4k',' 4K Intro'),'640k ','640K '),' Byte ','b '),'Kb ','K '),'kb ','K '),'1k','1K'),'4k','4K'),'8-bit - ','8Bit '),'8-bit ','8Bit '),'8bit','8Bit'),' plattform ',' Platform '),' showcase',' Showcase'),' intro',' Intro'),' demo',' Demo'),' game',' Game'),'(normal results)',''),'(alternative results)','') as category
select replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(c.name,'CAFePARTY 2019 Invitations','Invitation'),'BASIC 10Liner Contest ',''),'Old School Demo','Oldschool Demo'),'Combined - Game','Combined Game'),'64 Byte Intro Oldschool','Oldschool 64b Intro'),'Low End','LowEnd'),' Tiny Intro (256b)',' 256b Intro'),' Intro 256B',' 256b Intro'),' Intro 4KB',' 4K Intro'),' Intro 4Kb',' 4K Intro'),' Intro 4k',' 4K Intro'),'640k ','640K '),' Byte ','b '),'Kb ','K '),'kb ','K '),'1k','1K'),'4k','4K'),'8-bit - ','8Bit '),'8-bit ','8Bit '),'8bit','8Bit'),' plattform ',' Platform '),' showcase',' Showcase'),' intro',' Intro'),' demo',' Demo'),' game',' Game'),'WILD','Wild'),'(normal results)',''),'(alternative results)','') as category
from zxdb.entries e
inner join zxdb.webrefs w on w.entry_id = e.id and w.website_id = 48
inner join public.productions_production p on p.id = replace(replace(w.link,'https://demozoo.org/productions/',''),'/','')
Expand All @@ -53,7 +53,7 @@ inner join public.parties_competitionplacing n on p.id = n.production_id
inner join public.parties_competition c on n.competition_id = c.id
inner join public.parties_party y on c.party_id = y.id
inner join zxdb.tags t on t.name = y.name
inner join zxdb.categories g on g.text = replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(c.name,'CAFePARTY 2019 Invitations','Invitation'),'BASIC 10Liner Contest PUR-80','PUR-80'),'Old School Demo','Oldschool Demo'),'Combined - Game','Combined Game'),'64 Byte Intro Oldschool','Oldschool 64b Intro'),'Low End','LowEnd'),' Tiny Intro (256b)',' 256b Intro'),' Intro 256B',' 256b Intro'),' Intro 4KB',' 4K Intro'),' Intro 4Kb',' 4K Intro'),' Intro 4k',' 4K Intro'),'640k ','640K '),' Byte ','b '),'Kb ','K '),'kb ','K '),'1k','1K'),'4k','4K'),'8-bit - ','8Bit '),'8-bit ','8Bit '),'8bit','8Bit'),' plattform ',' Platform '),' showcase',' Showcase'),' intro',' Intro'),' demo',' Demo'),' game',' Game'),'(normal results)',''),'(alternative results)','')
inner join zxdb.categories g on g.text = replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(c.name,'CAFePARTY 2019 Invitations','Invitation'),'BASIC 10Liner Contest ',''),'Old School Demo','Oldschool Demo'),'Combined - Game','Combined Game'),'64 Byte Intro Oldschool','Oldschool 64b Intro'),'Low End','LowEnd'),' Tiny Intro (256b)',' 256b Intro'),' Intro 256B',' 256b Intro'),' Intro 4KB',' 4K Intro'),' Intro 4Kb',' 4K Intro'),' Intro 4k',' 4K Intro'),'640k ','640K '),' Byte ','b '),'Kb ','K '),'kb ','K '),'1k','1K'),'4k','4K'),'8-bit - ','8Bit '),'8-bit ','8Bit '),'8bit','8Bit'),' plattform ',' Platform '),' showcase',' Showcase'),' intro',' Intro'),' demo',' Demo'),' game',' Game'),'WILD','Wild'),'(normal results)',''),'(alternative results)','')
left join zxdb.members m on m.tag_id = t.id and m.entry_id = e.id and m.category_id = g.id
where m.tag_id is null and t.id not in (30046)
union all
Expand Down

0 comments on commit 549e537

Please sign in to comment.