Yii Framework Forum: ./yii migrate/diff - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

./yii migrate/diff Rate Topic: -----

#1 User is offline   fsb 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 159
  • Joined: 09-January 11

Posted 02 October 2017 - 01:28 PM

To see the difference between yii migrate/history and filenames in your migrations directory

doc_root/yii migrate/history all | cut -c 24- | grep '^m' | tac > /tmp/m1
ls doc_root/migrations/ | grep '^m' | sed 's:\.php$::' | sort > /tmp/m2
diff -y /tmp/m1 /tmp/m2


It's just a quick hack but it might be handy as a starting point.

A yii migrate/diff action would be a swell contribution for anyone interested.
1

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 02 October 2017 - 02:45 PM

/* moved */
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users