Permalink
Browse files

Fix #279

  • Loading branch information...
Bara committed Jan 7, 2018
1 parent b00c282 commit e5df38ccea247b48f254e44db95aacb2f6fd4b97
Showing with 4 additions and 6 deletions.
  1. +2 −3 addons/sourcemod/scripting/ttt/ttt.sp
  2. +2 −3 addons/sourcemod/scripting/ttt/ttt_shop.sp
@@ -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
@@ -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

0 comments on commit e5df38c

Please sign in to comment.