Skip to content

Commit

Permalink
Fix #279
Browse files Browse the repository at this point in the history
  • Loading branch information
Bara committed Jan 7, 2018
1 parent b00c282 commit e5df38c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions addons/sourcemod/scripting/ttt/ttt.sp
Expand Up @@ -194,11 +194,10 @@ public void TTT_OnSQLConnect(Database db)

void AlterKarmaColumn()
{
char sQuery[64];
Format(sQuery, sizeof(sQuery), "ALTER TABLE `ttt` ADD COLUMN `karma` INT(11) NOT NULL DEFAULT 0;");

if (g_dDB != null)
{
char sQuery[72];
Format(sQuery, sizeof(sQuery), "ALTER TABLE `ttt` ADD COLUMN `karma` INT(11) NOT NULL DEFAULT 0;");
g_dDB.Query(SQL_AlterKarmaColumn, sQuery);
}
else
Expand Down
5 changes: 2 additions & 3 deletions addons/sourcemod/scripting/ttt/ttt_shop.sp
Expand Up @@ -245,11 +245,10 @@ public void TTT_OnSQLConnect(Database db)

void AlterCreditsColumn()
{
char sQuery[64];
Format(sQuery, sizeof(sQuery), "ALTER TABLE `ttt` ADD COLUMN `credits` INT(11) NOT NULL DEFAULT 0;");

if (g_dDB != null)
{
char sQuery[72];
Format(sQuery, sizeof(sQuery), "ALTER TABLE `ttt` ADD COLUMN `credits` INT(11) NOT NULL DEFAULT 0;");
g_dDB.Query(SQL_AlterCreditsColumn, sQuery);
}
else
Expand Down

0 comments on commit e5df38c

Please sign in to comment.