Preparing store games.
このコミットが含まれているのは:
コミット
6668b82d77
|
@ -22,9 +22,9 @@ class StoreController extends Controller {
|
|||
->get();
|
||||
}
|
||||
|
||||
public function getCategoryParent($id) { // /api/rpc/store/category/getcategoryparent/1
|
||||
public function getCategoryGame($id) { // /api/rpc/store/category/getcategorygame/1
|
||||
return DB::table('str_category')
|
||||
->select('parent_id')
|
||||
->select('game_id')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// Category
|
||||
Route::get('/api/rpc/store/category/getcategories', 'StoreController@getCategories');
|
||||
Route::get('/api/rpc/store/category/getcategory/{id}', 'StoreController@getCategory');
|
||||
Route::get('/api/rpc/store/category/getcategoryparent/{id}', 'StoreController@getCategoryParent');
|
||||
Route::get('/api/rpc/store/category/getcategorygame/{id}', 'StoreController@getCategoryGame');
|
||||
Route::get('/api/rpc/store/category/getcategoryminscrot/{id}', 'StoreController@getCategoryMinScreenshots');
|
||||
Route::get('/api/rpc/store/category/getcategoryname/{id}', 'StoreController@getCategoryName');
|
||||
|
||||
|
|
|
@ -48,6 +48,11 @@ CREATE TABLE IF NOT EXISTS `usr_profile` (
|
|||
`isShowTimezone` int(1) NOT NULL
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `str_games` (
|
||||
`id` int(10) NOT NULL,
|
||||
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `usr_perm_id` (
|
||||
`user_id` int(10) NOT NULL,
|
||||
`perm_id` int(10) NOT NULL,
|
||||
|
@ -67,6 +72,8 @@ INSERT INTO `users` SELECT `id`, `username`, `email`, `password`, NULL, NULL, NU
|
|||
INSERT INTO `usr_details` SELECT `id`, `total_posts`, `total_threads`, `reg_date`, `last_post_date`, `last_post_location`, `ontime`, `strikes` FROM `for_users`;
|
||||
INSERT INTO `usr_profile` SELECT `id`, `gender`, `member_title`, `website_address`, `website_name`, `location`, `birthday`, `bio`, `ip_address`, `avatar`, `ostatus`, `header`, `footer`, NULL, NULL, `name_colour`, `display_name`, `yt_channel`, `country`, `curDF`, NULL, NULL, NULL FROM `for_users`;
|
||||
INSERT INTO `usr_perm_id` SELECT `id`, `perm_id`, `usr_per_id`, `blg_per_id`, `for_per_id`, `sbx_per_id`, `str_per_id`, `doc_per_id`, `odb_per_id` FROM `for_users`;
|
||||
INSERT INTO `str_games` (`id`, `name`) VALUES (NULL, 'MKDS'), (NULL, 'MK7');
|
||||
ALTER TABLE `str_category` CHANGE `parent_id` `game_id` INT(10) NOT NULL;
|
||||
|
||||
--
|
||||
-- Indexes
|
||||
|
|
新しいイシューから参照