修改表字段类型后,在 Navicat for MySQL 中,查看 DDL 无变化
1、修改表字段类型的 PHP 实现
1 | $table ->integer( 'shop_id' )->comment( '店铺ID' )->change(); |
1 | $table ->bigInteger( 'shop_id' )-> default (0)->comment( '店铺ID' )->change(); |
2、但是,在 Navicat for MySQL 中,查看 DDL 无变化。即使关闭连接、关闭数据库后,再次打开,发现仍然无变化。最后不得不关闭 Navicat for MySQL ,再次打开。终于发现有变化。如图1
1 | `shop_id` int NOT NULL COMMENT '店铺ID' , |
1 | `shop_id` bigint NOT NULL DEFAULT '0' COMMENT '店铺ID' , |
近期评论