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
61 changed files
with
404 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[production] | ||
host=127.0.0.1 | ||
port={DYNAMICALLY INSERTED BY TEST} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
schema=analytics |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE `activity` ( | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`action_id` int(10) unsigned NOT NULL, | ||
`ts` int(10) unsigned NOT NULL, | ||
`target_type` varchar(20) DEFAULT NULL, | ||
`target_id` bigint(20) unsigned DEFAULT NULL, | ||
PRIMARY KEY (`user_id`,`action_id`,`ts`), | ||
KEY `by_target` (`target_id`,`target_type`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `pageviews` ( | ||
`url` varchar(200) NOT NULL, | ||
`start_ts` int(10) unsigned NOT NULL, | ||
`end_ts` int(10) unsigned NOT NULL, | ||
`views` bigint(20) unsigned DEFAULT NULL, | ||
`domain` varchar(40) NOT NULL, | ||
PRIMARY KEY (`url`,`start_ts`,`end_ts`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE `rollups` ( | ||
`metric_id` int(10) unsigned NOT NULL, | ||
`value` bigint(20) DEFAULT NULL, | ||
PRIMARY KEY (`metric_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
schema=product |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `comments` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`post_id` bigint(20) unsigned NOT NULL, | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`created_at` datetime DEFAULT NULL, | ||
`body` text, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE `posts` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`body` text, | ||
`created_at` datetime DEFAULT NULL, | ||
`edited_at` datetime DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `user_created` (`user_id`,`created_at`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
7 changes: 7 additions & 0 deletions
7
testdata/golden-mysql55/autoinc/mydb/product/subscriptions.sql
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE `subscriptions` ( | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`post_id` bigint(20) unsigned NOT NULL, | ||
`subscribed_at` int(10) unsigned DEFAULT NULL, | ||
PRIMARY KEY (`post_id`,`user_id`), | ||
KEY `user_post` (`user_id`,`post_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `users` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`name` varchar(30) NOT NULL, | ||
`credits` decimal(9,2) DEFAULT '10.00', | ||
`last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `name` (`name`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[production] | ||
host=127.0.0.1 | ||
port={DYNAMICALLY INSERTED BY TEST} | ||
ignore-schema=^archives$ | ||
ignore-table=^_ |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
schema=analytics |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE `activity` ( | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`action_id` int(10) unsigned NOT NULL, | ||
`ts` int(10) unsigned NOT NULL, | ||
`target_type` varchar(20) DEFAULT NULL, | ||
`target_id` bigint(20) unsigned DEFAULT NULL, | ||
PRIMARY KEY (`user_id`,`action_id`,`ts`), | ||
KEY `by_target` (`target_id`,`target_type`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `pageviews` ( | ||
`url` varchar(200) NOT NULL, | ||
`start_ts` int(10) unsigned NOT NULL, | ||
`end_ts` int(10) unsigned NOT NULL, | ||
`views` bigint(20) unsigned DEFAULT NULL, | ||
`domain` varchar(40) NOT NULL, | ||
PRIMARY KEY (`url`,`start_ts`,`end_ts`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE `rollups` ( | ||
`metric_id` int(10) unsigned NOT NULL, | ||
`value` bigint(20) DEFAULT NULL, | ||
PRIMARY KEY (`metric_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
schema=product |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `comments` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`post_id` bigint(20) unsigned NOT NULL, | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`created_at` datetime DEFAULT NULL, | ||
`body` text, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE `posts` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`body` text, | ||
`created_at` datetime DEFAULT NULL, | ||
`edited_at` datetime DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `user_created` (`user_id`,`created_at`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
7 changes: 7 additions & 0 deletions
7
testdata/golden-mysql55/ignore/mydb/product/subscriptions.sql
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE `subscriptions` ( | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`post_id` bigint(20) unsigned NOT NULL, | ||
`subscribed_at` int(10) unsigned DEFAULT NULL, | ||
PRIMARY KEY (`post_id`,`user_id`), | ||
KEY `user_post` (`user_id`,`post_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `users` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`name` varchar(30) NOT NULL, | ||
`credits` decimal(9,2) DEFAULT '10.00', | ||
`last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `name` (`name`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[production] | ||
host=127.0.0.1 | ||
port={DYNAMICALLY INSERTED BY TEST} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
schema=analytics |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE `activity` ( | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`action_id` int(10) unsigned NOT NULL, | ||
`ts` int(10) unsigned NOT NULL, | ||
`target_type` varchar(20) DEFAULT NULL, | ||
`target_id` bigint(20) unsigned DEFAULT NULL, | ||
PRIMARY KEY (`user_id`,`action_id`,`ts`), | ||
KEY `by_target` (`target_id`,`target_type`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `pageviews` ( | ||
`url` varchar(200) NOT NULL, | ||
`start_ts` int(10) unsigned NOT NULL, | ||
`end_ts` int(10) unsigned NOT NULL, | ||
`views` bigint(20) unsigned DEFAULT NULL, | ||
`domain` varchar(40) NOT NULL, | ||
PRIMARY KEY (`url`,`start_ts`,`end_ts`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE `rollups` ( | ||
`metric_id` int(10) unsigned NOT NULL, | ||
`value` bigint(20) DEFAULT NULL, | ||
PRIMARY KEY (`metric_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
schema=product |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `comments` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`post_id` bigint(20) unsigned NOT NULL, | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`created_at` datetime DEFAULT NULL, | ||
`body` text, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE `posts` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`body` text, | ||
`created_at` datetime DEFAULT NULL, | ||
`edited_at` datetime DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `user_created` (`user_id`,`created_at`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE `subscriptions` ( | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`post_id` bigint(20) unsigned NOT NULL, | ||
`subscribed_at` int(10) unsigned DEFAULT NULL, | ||
PRIMARY KEY (`post_id`,`user_id`), | ||
KEY `user_post` (`user_id`,`post_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `users` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`name` varchar(30) NOT NULL, | ||
`credits` decimal(9,2) DEFAULT '10.00', | ||
`last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `name` (`name`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[production] | ||
host=127.0.0.1 | ||
port={DYNAMICALLY INSERTED BY TEST} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
schema=analytics | ||
default-character-set=utf8 | ||
default-collation=utf8_swedish_ci |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE `activity` ( | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`action_id` int(10) unsigned NOT NULL, | ||
`ts` int(10) unsigned NOT NULL, | ||
`target_type` varchar(20) DEFAULT NULL, | ||
`target_id` bigint(20) unsigned DEFAULT NULL, | ||
PRIMARY KEY (`user_id`,`action_id`,`ts`), | ||
KEY `by_target` (`target_id`,`target_type`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE `pageviews` ( | ||
`url` varchar(200) NOT NULL, | ||
`start_ts` int(10) unsigned NOT NULL, | ||
`end_ts` int(10) unsigned NOT NULL, | ||
`views` bigint(20) unsigned DEFAULT NULL, | ||
`domain` varchar(40) NOT NULL, | ||
PRIMARY KEY (`url`,`start_ts`,`end_ts`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE `rollups` ( | ||
`metric_id` int(10) unsigned NOT NULL, | ||
`value` bigint(20) DEFAULT NULL, | ||
PRIMARY KEY (`metric_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
5 changes: 5 additions & 0 deletions
5
testdata/golden-mysql55/pull1/mydb/analytics/widget_counts.sql
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE `widget_counts` ( | ||
`name` varchar(40) NOT NULL, | ||
`cnt` int(10) unsigned DEFAULT NULL, | ||
PRIMARY KEY (`name`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
schema=archives | ||
default-character-set=utf8mb4 | ||
default-collation=utf8mb4_general_ci |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CREATE TABLE `foo` ( | ||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
schema=product |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE `posts` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`user_id` bigint(20) unsigned NOT NULL, | ||
`body` text, | ||
`created_at` datetime DEFAULT NULL, | ||
`edited_at` datetime DEFAULT NULL, | ||
`status` varchar(20) DEFAULT 'published', | ||
PRIMARY KEY (`id`), | ||
KEY `user_created` (`user_id`,`created_at`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Oops, something went wrong.