This is an automated archive.

The original was posted on /r/php by /u/jpgerb on 2023-09-08 23:14:38+00:00.


Does anyone use PHP scripts to run .sql files for initializing a database (creating tables indexes, and inserting initial values)? If not, what alternatives aside from putting the script in php (basically prepping a PDO/whatever query script) and running it from there do you use?

—UPDATE— I think the consensus is clear — migration and seeding. Thanks everyone!