mirror of
https://github.com/DBDiff/DBDiff.git
synced 2026-04-25 05:15:49 +03:00
[GH-ISSUE #101] I add some code for create full field name when create the db migrations #72
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DBDiff#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kmdaliu on GitHub (Sep 22, 2020).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/101
I found the migrations sql statements is simple format ,like this:
if the source table field's sequence if different to the target table, the created migrations will can't insert into table rightly , the two table fields are name and type are same even if it is. because the "sequence" is defferent , so the data is wrong.
for this bug.
I add some code for create full field name when create the db migrations. like this:
for two files:
1.DBDiff-master\src\SQLGen\DiffToSQL\DeleteDataSQL.php
( getDown() ----------in this function )
2.DBDiff-master\src\SQLGen\DiffToSQL\InsertDataSQL.php
( getUp() ----------in this function )
and you need to add the following code to the two files above :
i wish this will can help to peoples who be plagued by this problem.
my english is very weak, I hope you understand.
thanks DBDiff.