暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片
schemadiff: in memory schema analysis, validation, normalization, diffing, and manipulation.pdf
9
49页
0次
2025-02-12
5墨值下载
schemadiff
In-memory schema analysis, validation, normalization,
ding, and manipulation
Shlomi Noach
PlanetScale
FOSDEM 2025
CREATE TABLE `schema_migrations` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`mysql_table` varchar(128) NOT NULL,
`migration_statement` text NOT NULL,
PRIMARY KEY (`id`)
);
Incentive: diff, and much beyond
CREATE TABLE `schema_migrations` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`mysql_table` varchar(128) NOT NULL,
`migration_statement` text NOT NULL,
`completed_timestamp` timestamp(6) NULL DEFAULT NULL,
`migration_status` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
KEY `completed_status_idx` (
`completed_timestamp`,`migration_status`)
);
ALTER TABLE `schema_migrations`
MODIFY COLUMN `id` bigint unsigned NOT NULL AUTO_INCREMENT,
ADD COLUMN `completed_timestamp` timestamp(6) NULL,
ADD COLUMN `migration_status` varchar(128) NOT NULL,
ADD KEY `completed_status_idx` (`completed_timestamp`, `migration_status`);
of 49
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜