mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-25 19:42:15 +00:00
Add IF NOT EXISTS to index creation sql statement.
This commit is contained in:
parent
fee792f5ee
commit
a91390dd37
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ import java.sql.SQLException;
|
||||||
*/
|
*/
|
||||||
public class CreateIndexURLIndexStore implements SQLUpdate {
|
public class CreateIndexURLIndexStore implements SQLUpdate {
|
||||||
|
|
||||||
public static final String CREATE_INDEX_URL_INDEX_STORE = "CREATE INDEX `project_path_index` ON `url_index_store`(`project_name`, `path`);\n";
|
public static final String CREATE_INDEX_URL_INDEX_STORE =
|
||||||
|
"CREATE INDEX IF NOT EXISTS `project_path_index` ON `url_index_store`(`project_name`, `path`);\n";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getSQL() {
|
public String getSQL() {
|
||||||
|
|
Loading…
Reference in a new issue