What's the recommended location for SQL (DDL) scripts?

前端 未结 6 1287
北荒
北荒 2020-12-28 11:46

What\'s the recommended location for SQL, DDL, ... scripts in the Maven standard directory structure?

I bet almost every web project uses a DB and some kind of SQL s

6条回答
  •  误落风尘
    2020-12-28 11:57

    It very much depends on your mileage but first of all it's a good idea to separate your application from the underlying database structure. Therefore i'll recommend that you move all database related stuff to a separate maven project. Having done that, database scripts have a nice slot in /src/main/scripts.

提交回复
热议问题