forked from Percona-QA/package-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
USE world3; | ||
ALTER TABLE City DROP FOREIGN KEY city_ibfk_1; | ||
ALTER TABLE City Engine=RocksDB; | ||
OPTIMIZE TABLE City; | ||
SHOW CREATE TABLE City; | ||
CREATE TABLE `CityRocks` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`Name` char(35) NOT NULL DEFAULT '', | ||
`CountryCode` char(3) NOT NULL DEFAULT '', | ||
`District` char(20) NOT NULL DEFAULT '', | ||
`Population` int(11) NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`ID`), | ||
KEY `CountryCode` (`CountryCode`) | ||
); | ||
INSERT INTO CityRocks SELECT * FROM City; | ||
-- ALTER TABLE City Engine=RocksDB; | ||
OPTIMIZE TABLE CityRocks; | ||
SHOW CREATE TABLE CityRocks; |