Add sciprt to update steam_apps table and add patch for new table

This commit is contained in:
DariusIII
2017-02-03 23:33:50 +01:00
parent 5055206bf0
commit e9ec481bd8
2 changed files with 28 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
/**
* Created by PhpStorm.
* User: darius
* Date: 3.2.17.
* Time: 22.25
*/
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'bootstrap.php');
use nntmux\Steam;
$steam = new Steam();
$steam->populateSteamAppsTable();
@@ -0,0 +1,13 @@
#Create the new steam_apps table
DROP TABLE IF EXISTS steam_apps;
CREATE TABLE steam_apps (
appid INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY (appid),
UNIQUE KEY (name)
)
ENGINE = MYISAM
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;