[DiscordArchive] would that be full list of the tables that need to be synced or is there some way to know which ones
[DiscordArchive] would that be full list of the tables that need to be synced or is there some way to know which ones
Archived author: Revision • Posted: 2022-07-27T17:09:28.496000+00:00
Original source
It does take a long time I found but at least it doesn't have to happen often, heh.
Archived author: Grandold • Posted: 2022-07-27T17:09:55.178000+00:00
Original source
that --sync-all sure is great idea
Archived author: Revision • Posted: 2022-07-27T17:10:44.064000+00:00
Original source
Oh yeah, all available tables are in `setup\tools\sqlgen`, I remember now.
Archived author: Grandold • Posted: 2022-07-27T17:11:06.632000+00:00
Original source
aaa so filelist from those and just loop through i guess
Archived author: Revision • Posted: 2022-07-27T17:11:42.082000+00:00
Original source
I'm gonna see how aowow handles it since it does check if the class exists, perhaps there's a list somewhere I can grab rather than simply looping through the files.
Archived author: Grandold • Posted: 2022-07-27T17:13:02.818000+00:00
Original source
mm probably more stable that way, not sure if you can rely on just filenames etc
Archived author: Grandold • Posted: 2022-07-27T17:13:10.827000+00:00
Original source
probably cant
Archived author: Revision • Posted: 2022-07-27T17:13:12.610000+00:00
Original source
They do in fact loop through the files, that simplifies things `foreach (glob('setup/tools/sqlgen/*.func.php') as $file)`
Archived author: Grandold • Posted: 2022-07-27T17:14:55.162000+00:00
Original source
but you needs to extract the table name from the files i guess? seems the actual filenames arent matching the table names
Archived author: Revision • Posted: 2022-07-27T17:16:10.041000+00:00
Original source
Actually, the functions know what to do so I just need to call those functions and it should work out fine.
creature.func.php