| Revision 500,
1019 bytes
checked in by anarcat, 7 years ago
(diff) |
|
[project @ alternc: changeset 2005-01-18 23:20:00 by anarcat]
put a request before the 'use mysql' so that it uses the right DB
Original author: anarcat
Date: 2005-01-18 23:20:00
|
| Line | |
|---|
| 1 | -- add support for .it |
|---|
| 2 | INSERT IGNORE INTO tld VALUES ('it', 1); |
|---|
| 3 | INSERT IGNORE INTO tld VALUES ('ws', 1); |
|---|
| 4 | |
|---|
| 5 | -- remove the old "estelle" default mx in older tables |
|---|
| 6 | ALTER TABLE `domaines` MODIFY `mx` varchar(64) DEFAULT NULL; |
|---|
| 7 | ALTER TABLE `domaines_standby` MODIFY `mx` varchar(64) DEFAULT NULL; |
|---|
| 8 | |
|---|
| 9 | -- add the new variable table |
|---|
| 10 | CREATE TABLE variable ( |
|---|
| 11 | name varchar(48) NOT NULL default '', |
|---|
| 12 | value longtext NOT NULL, |
|---|
| 13 | PRIMARY KEY (name) |
|---|
| 14 | ) TYPE=MyISAM; |
|---|
| 15 | |
|---|
| 16 | USE mysql; |
|---|
| 17 | |
|---|
| 18 | -- In AlternC 0.9.3, the GRANTS were created with the wrong Db |
|---|
| 19 | -- pattern: the underscores were not escaped. |
|---|
| 20 | |
|---|
| 21 | -- this allowed the user to create extra tables not under alternc's |
|---|
| 22 | -- quota controls since the underscore is a wildcard in MySQL. |
|---|
| 23 | |
|---|
| 24 | -- the database creation and deletion code has been update, so the |
|---|
| 25 | -- grants themselves need to be modified otherwise the AlternC |
|---|
| 26 | -- deletion code will fail and produce evil errors |
|---|
| 27 | UPDATE `db` set `Db` = REPLACE(`Db`,'_','\_') WHERE `Db` REGEXP '[^\\]_'; |
|---|
| 28 | |
|---|
| 29 | -- make sure this has an effect at all. |
|---|
| 30 | FLUSH PRIVILEGES; |
|---|
Note: See
TracBrowser
for help on using the repository browser.