mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
Add sciprt to update steam_apps table and add patch for new table
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user