feat: added sql to sync items_base with items_crackable

This commit is contained in:
Niklas 2023-03-20 18:43:48 +01:00
parent c3542cc919
commit 7c5e96da3e
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,5 +3,6 @@ db/*
assets/assets assets/assets
assets/translation/gamedata/ assets/translation/gamedata/
assets/translation/*.sql assets/translation/*.sql
!assets/translation/update_crackable.sql
assets/swf assets/swf
assets/usercontent/**/*.png assets/usercontent/**/*.png

View File

@ -0,0 +1 @@
UPDATE items_base SET interaction_type='crackable' WHERE (SELECT prizes FROM items_crackable WHERE items_crackable.item_id = items_base.id) IS NOT NULL;