Skip to content

Commit

Permalink
Fix for Database name contains illegal characters. Only alphanumeric …
Browse files Browse the repository at this point in the history
…characters are valid. (#1597)
  • Loading branch information
axesider authored Jul 8, 2024
1 parent 358c2f9 commit 5a4f41f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mapper/localization.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ amap.localization = amap.localization or {
current_short = ""
}

amap.localization.db = db:create("roomDescriptions", {
amap.localization.db = db:create("roomdescriptions", {
roomDescriptions = {
room_id = -1,
short = "",
Expand Down
5 changes: 3 additions & 2 deletions skrypty/misc/counter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ misc.counter["all_kills"] = misc.counter["all_kills"] or 0
misc.counter.killed_amount["JA"] = misc.counter.killed_amount["JA"] or 0

-- counter2
misc.counter2["db_log"] = db:create("counter2_log", {
misc.counter2["db_log"] = db:create("counter2log", {
counter2_log = {
year = 0,
month = 0,
day = 0,
hour = "",
text = "",
character = "",
roomId = 0,
changed = db:Timestamp("CURRENT_TIMESTAMP")
}
})

misc.counter2["db_daysum"] = db:create("counter2_daysum", {
misc.counter2["db_daysum"] = db:create("counter2daysum", {
counter2_daysum = {
year = 0,
month = 0,
Expand Down
3 changes: 2 additions & 1 deletion skrypty/misc/counter/counter2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function misc.counter2:add_log(original_text, year, month, day, hour)
day = day,
text = original_text,
hour = hour,
character = scripts.character_name
character = scripts.character_name,
roomId = amap.curr.id
})

if not ret then
Expand Down

0 comments on commit 5a4f41f

Please sign in to comment.