Phase 1: Update database configuration and schema (OGP to GSP)

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-08 15:45:27 +00:00
parent ea665c34d5
commit 7f19731158
82 changed files with 730 additions and 730 deletions

View file

@ -11,8 +11,8 @@ $module_required = TRUE;
$module_menus = array( array( 'subpage' => 'dashboard', 'name'=>'Dashboard', 'group'=>'user' ) );
$install_queries = array();
$install_queries[0] = array(
"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."widgets;",
"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."widgets` (
"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."widgets;",
"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."widgets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`column_id` int(11) NOT NULL,
`sort_no` int(11) NOT NULL,
@ -21,8 +21,8 @@ $install_queries[0] = array(
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;",
"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."widgets_users",
"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."widgets_users` (
"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."widgets_users",
"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."widgets_users` (
`user_id` int(11) NOT NULL,
`widget_id` int(11) NOT NULL,
`column_id` int(11) NOT NULL,
@ -31,7 +31,7 @@ $install_queries[0] = array(
`title` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;",
"INSERT INTO `".OGP_DB_PREFIX."widgets` (`id`, `column_id`, `sort_no`, `collapsed`, `title`) VALUES
"INSERT INTO `".GSP_DB_PREFIX."widgets` (`id`, `column_id`, `sort_no`, `collapsed`, `title`) VALUES
(1, 1, 1, 0, 'Game Monitor'),
(2, 2, 0, 0, 'Online Server'),
(3, 2, 1, 0, 'Currently Online'),