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 {
|
||||
query := `INSERT INTO CacheTimestamps (CacheType, Stamp)
|
||||
query := `INSERT INTO CacheTimestamp (CacheType, Stamp)
|
||||
VALUES (?, ?)
|
||||
ON DUPLICATE KEY
|
||||
UPDATE Stamp = ?;`
|
||||
|
|
|
@ -2,7 +2,7 @@ CREATE DATABASE IF NOT EXISTS sevenkeys;
|
|||
|
||||
USE sevenkeys;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS CacheTimestamps (
|
||||
CREATE TABLE IF NOT EXISTS CacheTimestamp (
|
||||
CacheType ENUM('AllCardsBulkData') PRIMARY KEY,
|
||||
Stamp DATETIME NOT NULL
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue