Skip to content
Snippets Groups Projects
Commit a8a53e3f authored by MELERIX's avatar MELERIX
Browse files

BETA/STABLE: Added `email` & `created_time` columns to accounts.sql (used by...

BETA/STABLE: Added `email` & `created_time` columns to accounts.sql (used by some tools like ACM and Drupal).
parent f43ccb90
No related branches found
No related tags found
No related merge requests found
CREATE TABLE IF NOT EXISTS `accounts` ( CREATE TABLE IF NOT EXISTS `accounts` (
`login` VARCHAR(45) NOT NULL default '', `login` VARCHAR(45) NOT NULL default '',
`password` VARCHAR(45) , `password` VARCHAR(45),
`email` varchar(255) DEFAULT NULL,
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastactive` bigint(13) unsigned NOT NULL DEFAULT '0', `lastactive` bigint(13) unsigned NOT NULL DEFAULT '0',
`accessLevel` TINYINT NOT NULL DEFAULT 0, `accessLevel` TINYINT NOT NULL DEFAULT 0,
`lastIP` CHAR(15) NULL DEFAULT NULL, `lastIP` CHAR(15) NULL DEFAULT NULL,
......
ALTER TABLE `accounts` ADD COLUMN `email` varchar(255) DEFAULT NULL AFTER `password`;
ALTER TABLE `accounts` ADD COLUMN `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `email`;
UPDATE `accounts` SET `created_time`=NOW() WHERE `created_time`='0000-00-00 00:00:00';
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment