mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 00:29:04 +02:00
Add IF NOT EXISTS to index creation sql statement.
This commit is contained in:
+2
-1
@@ -10,7 +10,8 @@ import java.sql.SQLException;
|
||||
*/
|
||||
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
|
||||
public String getSQL() {
|
||||
|
||||
Reference in New Issue
Block a user