mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 13:46:22 +00:00
Add lib/, t/lib/, and sandbox/. All modules are updated and passing on MySQL 5.1.
This commit is contained in:
18
t/lib/samples/issue_109-01-v50.sql
Normal file
18
t/lib/samples/issue_109-01-v50.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
CREATE TABLE `staff` (
|
||||
`staff_id` tinyint(3) unsigned NOT NULL auto_increment,
|
||||
`first_name` varchar(45) NOT NULL,
|
||||
`last_name` varchar(45) NOT NULL,
|
||||
`address_id` smallint(5) unsigned NOT NULL,
|
||||
`picture` blob,
|
||||
`email` varchar(50) default NULL,
|
||||
`store_id` tinyint(3) unsigned NOT NULL,
|
||||
`active` tinyint(1) NOT NULL default '1',
|
||||
`username` varchar(16) NOT NULL,
|
||||
`password` varchar(40) character set utf8 collate utf8_bin default NULL,
|
||||
`last_update` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`staff_id`),
|
||||
KEY `idx_fk_store_id` (`store_id`),
|
||||
KEY `idx_fk_address_id` (`address_id`),
|
||||
CONSTRAINT `fk_staff_store` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON UPDATE CASCADE,
|
||||
CONSTRAINT `fk_staff_address` FOREIGN KEY (`address_id`) REFERENCES `address` (`address_id`) ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
||||
Reference in New Issue
Block a user