Last change
on this file since 305 was
266,
checked in by quinn, 17 years ago
|
Bugfixes found during strangecode site upgrade.
|
File size:
1.9 KB
|
Rev | Line | |
---|
[261] | 1 | ## Update user_tbl. |
---|
[266] | 2 | ## (If it exists!) |
---|
| 3 | ALTER TABLE `user_tbl` ADD modified_by_user_id smallint(11) default NULL AFTER added_by_user_id; |
---|
| 4 | ALTER TABLE `user_tbl` MODIFY added_datetime datetime NOT NULL default '0000-00-00 00:00:00' AFTER modified_by_user_id; |
---|
| 5 | ALTER TABLE `user_tbl` ADD modified_datetime datetime NOT NULL default '0000-00-00 00:00:00' AFTER added_datetime; |
---|
[261] | 6 | |
---|
| 7 | ## Update admin_tbl. |
---|
[266] | 8 | ## NOTE: This first one might need customizing. |
---|
| 9 | ALTER TABLE `admin_tbl` CHANGE priv user_type enum('root','admin','editor') default NULL; |
---|
| 10 | |
---|
| 11 | ALTER TABLE `admin_tbl` ADD login_abuse_exempt enum('true') default NULL AFTER user_type; |
---|
[261] | 12 | ALTER TABLE `admin_tbl` ADD blocked enum('true') default NULL AFTER login_abuse_exempt; |
---|
| 13 | ALTER TABLE `admin_tbl` ADD blocked_reason varchar(255) NOT NULL default '' AFTER blocked; |
---|
| 14 | ALTER TABLE `admin_tbl` ADD abuse_warning_level tinyint(4) NOT NULL default '0' AFTER blocked_reason; |
---|
| 15 | ALTER TABLE `admin_tbl` ADD added_by_user_id smallint(11) default NULL AFTER last_login_ip; |
---|
| 16 | ALTER TABLE `admin_tbl` ADD modified_by_user_id smallint(11) default NULL AFTER added_by_user_id; |
---|
| 17 | ALTER TABLE `admin_tbl` MODIFY added_datetime datetime NOT NULL default '0000-00-00 00:00:00' AFTER modified_by_user_id; |
---|
| 18 | ALTER TABLE `admin_tbl` ADD modified_datetime datetime NOT NULL default '0000-00-00 00:00:00' AFTER added_datetime; |
---|
| 19 | |
---|
| 20 | ## Upgrade version_tbl. |
---|
[238] | 21 | ALTER TABLE `version_tbl` ADD version_number SMALLINT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER version_title; |
---|
[239] | 22 | ALTER TABLE `version_tbl` ADD version_notes VARCHAR(255) NOT NULL DEFAULT '' AFTER version_number; |
---|
[261] | 23 | ALTER TABLE `version_tbl` CHANGE saved_by_admin_id saved_by_user_id smallint(11) default NULL; |
---|
[239] | 24 | |
---|
[261] | 25 | ## Rename added_by_admin_id -> added_by_user_id in all tables. |
---|
| 26 | ## Changing these will require source code modifications. |
---|
[266] | 27 | ## This is just an EXAMPLE! |
---|
| 28 | # ALTER TABLE `client_tbl` CHANGE added_by_admin_id added_by_user_id smallint(11) default NULL; |
---|
Note: See
TracBrowser
for help on using the repository browser.