mirror of
https://github.com/openssh/oss-fuzz
synced 2025-12-06 07:32:45 +00:00
Add indexer DB schema versioning
Indexer-PiperOrigin-RevId: 782677989
This commit is contained in:
committed by
Copybara-Service
parent
3ab94a745d
commit
65a755887a
@@ -25,11 +25,15 @@
|
||||
#include "absl/types/span.h"
|
||||
#include "sqlite3.h"
|
||||
|
||||
#define SCHEMA_VERSION "1"
|
||||
|
||||
namespace oss_fuzz {
|
||||
namespace indexer {
|
||||
namespace {
|
||||
const char kCreateDb[] =
|
||||
"PRAGMA foreign_keys = ON;\n"
|
||||
"PRAGMA user_version = " SCHEMA_VERSION
|
||||
";\n"
|
||||
"\n"
|
||||
"CREATE TABLE IF NOT EXISTS location(\n"
|
||||
" id INTEGER PRIMARY KEY,\n"
|
||||
|
||||
Reference in New Issue
Block a user