20.11.2016, 14:13
Well the thing is I even set the AI on the ID and set the default for the command_name altho its still saying that the query was executed normaly but nothing actually happens with a query.
Dont mind the execution time, running on full debug
And this is the new structure
Dont mind the execution time, running on full debug
Quote:
[04:03:24] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 39.570 milliseconds [04:03:24] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving |
PHP код:
CREATE TABLE `commands` (
`ID` int(11) NOT NULL,
`command_name` varchar(128) NOT NULL DEFAULT 'NONE',
`command_power` int(10) NOT NULL,
`author` varchar(64) NOT NULL,
`patch` varchar(128) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `commands`
--
ALTER TABLE `commands`
ADD PRIMARY KEY (`ID`),
ADD UNIQUE KEY `command_name` (`command_name`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `commands`
--
ALTER TABLE `commands`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;