Make "CacheTimestamp" table name singular

This commit is contained in:
The Magician 2024-05-20 17:21:16 +01:00
parent d74d299418
commit d3583cee0e
2 changed files with 2 additions and 2 deletions

View File

@ -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 = ?;`

View File

@ -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
); );