fix: autoincrement ?
This commit is contained in:
parent
7ef5f956b9
commit
b0b19c49b0
1 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ impl Database {
|
||||||
};
|
};
|
||||||
db.execute(
|
db.execute(
|
||||||
"CREATE TABLE IF NOT EXISTS events (
|
"CREATE TABLE IF NOT EXISTS events (
|
||||||
id INTEGER PRIMARY KEY AUTO INCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
service INTEGER NOT NULL,
|
service INTEGER NOT NULL,
|
||||||
time BIG INTEGER NOT NULL,
|
time BIG INTEGER NOT NULL,
|
||||||
value BIG INTEGER NULL,
|
value BIG INTEGER NULL,
|
||||||
|
@ -208,7 +208,7 @@ impl Database {
|
||||||
|
|
||||||
db.execute(
|
db.execute(
|
||||||
"CREATE TABLE IF NOT EXISTS services (
|
"CREATE TABLE IF NOT EXISTS services (
|
||||||
id INTEGER PRIMARY KEY AUTO INCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
name STRING NOT NULL,
|
name STRING NOT NULL,
|
||||||
)", params![]
|
)", params![]
|
||||||
)?;
|
)?;
|
||||||
|
|
Loading…
Reference in a new issue