Remove unnecessary IF NOT EXISTS clause from DB migration
Same reasoning as in crrev.com/c/3891592: If the table already exists, then the subsequent operations using it are going to fail anyway. Change-Id: I78594a0e09fea7235488d1304dee9dfe26038176 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4013563 Reviewed-by: Nan Lin <linnan@chromium.org> Commit-Queue: Andrew Paseltiner <apaseltiner@chromium.org> Quick-Run: Andrew Paseltiner <apaseltiner@chromium.org> Cr-Commit-Position: refs/heads/main@{#1068686}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
67c6e45755
commit
442bdbf9ed
@ -233,8 +233,8 @@ bool MigrateToVersion37(sql::Database* db, sql::MetaTable* meta_table) {
|
||||
return false;
|
||||
|
||||
static constexpr char kNewDedupKeyTableSql[] =
|
||||
"CREATE TABLE IF NOT EXISTS new_dedup_keys"
|
||||
"(source_id INTEGER NOT NULL,"
|
||||
"CREATE TABLE new_dedup_keys("
|
||||
"source_id INTEGER NOT NULL,"
|
||||
"report_type INTEGER NOT NULL,"
|
||||
"dedup_key INTEGER NOT NULL,"
|
||||
"PRIMARY KEY(source_id,report_type,dedup_key))WITHOUT ROWID";
|
||||
|
Reference in New Issue
Block a user