I have a scenario in which a number of SQL files need to be executed in a given order. The file names are like accounts.sql, contacts.sql, etc. Is there a way we can specify the order (probably in a text file or configuration) so that we can control the sequence? The order is important as the SQL files contain various types of instructions such as creating or altering tables, setting index, creating stored procedures and triggers etc.
Any suggestions on this would be immensely helpful. Thanks in advance.