4 ms·
I've been looking through the repository on GitHub and I for the life of me can't figure out where the SQL code is. How is the database created? What do the tab
by the_mungler 3y ago
I've been looking through the repository on GitHub and I for the life of me can't figure out where the SQL code is. How is the database created? What do the tables look like? I've never looked at a php codebase before, I'm quite lost. I'm guessing this is using some ORM provided by Laravel?
- deleted 3y ago[deleted]
- leonjza 3y agoCreation is done by running migrations [1] (invoked via Laravel's artisan command line). Using the database is done via Models[2]. [1] https://github.com/firefly-iii/firefly-iii/tree/main/database/migrations https://github.com/firefly-iii/firefly-iii/tree/main/databas... [2] https://github.com/firefly-iii/firefly-iii/tree/main/app/Models https://github.com/firefly-iii/firefly-iii/tree/main/app/Mod...
- c0pium 3y agoNot SQL, but check out the contents of the database folder. For example: https://github.com/firefly-iii/firefly-iii/blob/main/database/migrations/2016_06_16_000000_create_support_tables.php https://github.com/firefly-iii/firefly-iii/blob/main/databas...