mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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 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() {
|
||||
|
|
Loading…
Reference in a new issue