Files
ROSS/database sql files/accounts.sql
T
ThomasandClaude Sonnet 5 582e29106b Fix new-account creation failing under MariaDB strict mode
accounts.lastlogin/logtime had no defaults and were NOT NULL, but the
auto-create-account INSERT never set them, so new accounts failed
under MariaDB strict mode (silently accepted under the old MySQL
5.0 target). Insert explicit empty/zero values and give lastlogin a
default; also widen it to varchar(32) to match the runtime.sql fix
already applied to the starttime column.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-09 06:35:31 +02:00

52 lines
1.4 KiB
SQL

-- phpMyAdmin SQL Dump
-- version 2.10.3
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 07, 2012 at 09:30 AM
-- Server version: 5.0.45
-- PHP Version: 5.2.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `irose`
--
-- --------------------------------------------------------
--
-- Table structure for table `accounts`
--
DROP TABLE IF EXISTS `accounts`;
CREATE TABLE IF NOT EXISTS `accounts` (
`id` int(11) NOT NULL auto_increment,
`username` varchar(64) default NULL,
`password` varchar(32) default NULL,
`accesslevel` int(11) default '100',
`lastip` varchar(15) default '0.0.0.0',
`lasttime` int(11) default '0',
`lastsvr` int(11) default '0',
`lastchar` varchar(64) default NULL,
`email` varchar(100) default NULL,
`nb_donation` int(11) default '0',
`donation` varchar(255) default '0',
`active` int(11) default '1',
`active_key` varchar(255) default NULL,
`zulystorage` int(11) default '0',
`platinum` tinyint(1) default '0',
`online` tinyint(1) default '0',
`login_count` int(11) default '0',
`isSiteLogged` tinyint(1) default '0',
`ktpoints` int(11) NOT NULL default '0',
`newpoints` int(11) NOT NULL default '0',
`lastlogin` varchar(32) NOT NULL default '',
`logtime` int(11) NOT NULL,
`totlogtime` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;