Make "CacheTimestamp" table name singular
This commit is contained in:
parent
d74d299418
commit
d3583cee0e
|
@ -7,7 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func InsertOrUpdateCacheTimestampByType(db *sql.DB, cacheType string, stamp time.Time) error {
|
func InsertOrUpdateCacheTimestampByType(db *sql.DB, cacheType string, stamp time.Time) error {
|
||||||
query := `INSERT INTO CacheTimestamps (CacheType, Stamp)
|
query := `INSERT INTO CacheTimestamp (CacheType, Stamp)
|
||||||
VALUES (?, ?)
|
VALUES (?, ?)
|
||||||
ON DUPLICATE KEY
|
ON DUPLICATE KEY
|
||||||
UPDATE Stamp = ?;`
|
UPDATE Stamp = ?;`
|
||||||
|
|
|
@ -2,7 +2,7 @@ CREATE DATABASE IF NOT EXISTS sevenkeys;
|
||||||
|
|
||||||
USE sevenkeys;
|
USE sevenkeys;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS CacheTimestamps (
|
CREATE TABLE IF NOT EXISTS CacheTimestamp (
|
||||||
CacheType ENUM('AllCardsBulkData') PRIMARY KEY,
|
CacheType ENUM('AllCardsBulkData') PRIMARY KEY,
|
||||||
Stamp DATETIME NOT NULL
|
Stamp DATETIME NOT NULL
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue