We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b9b044 commit 812b436Copy full SHA for 812b436
src/DbSchema/SchemaHasherMysql.php
@@ -43,19 +43,24 @@ public function hashDb(): string
43
SELECT
44
MD5(
45
GROUP_CONCAT(
46
- CONCAT(
47
- COALESCE(COLUMN_NAME, ""),
48
- COALESCE(EXTRA, ""),
49
- COLUMN_TYPE,
50
- IS_NULLABLE
51
- )
+ InnerSelect.columns
52
)
53
) AS dbsignature,
54
1 AS grouper
55
- FROM
56
- information_schema.columns
57
- WHERE
58
- table_schema = DATABASE()
+ FROM (
+ SELECT
+ CONCAT(
+ COALESCE(COLUMN_NAME, ""),
+ COALESCE(EXTRA, ""),
+ COLUMN_TYPE,
+ IS_NULLABLE
+ ) as columns
+ FROM
59
+ information_schema.columns
60
+ WHERE
61
+ table_schema = DATABASE()
62
+ ORDER BY table_name, column_name
63
+ ) as InnerSelect
64
GROUP BY
65
grouper';
66
0 commit comments