Kehom / GodotAddonPack

A collection of pure GDScript addons for Godot
http://kehomsforge.com
MIT License
189 stars 15 forks source link

[DB] Problem with database tables when saved as resources #37

Closed ababen1 closed 3 years ago

ababen1 commented 3 years ago

Ok, so when you create a table you have 2 options: save it as "embedded" or save it as a resource in your db's folder so i used the latter and created a table. then i removed the table i created with the little minus icon here: image and when i added the same table back (by dragging it from the filesystem) it showed up in the editor but when i ran the code and printed the list of tables it wasnt there. so basically the bug is that if you save a table as a resource it stops working if you remove it and add it back again the embedded ones work fine though so there's a workaround (btw i really appreciate your addons ty 👉 👈 )

Kehom commented 3 years ago

Oh! Thank you for notifying about this issue.

I completely forgot to save the database when a table is dropped into it!

Pushing the fix.