문제

With the migrate new command, it generates a sql file:

-- // create blog table
-- Migration SQL that makes the change goes here.

-- //@UNDO
-- SQL to undo the change goes here.

Does the command detect my table and data changes and fill in with the script, such as Alter Table query, automatically? Or I have to fill in the scripts manually?

도움이 되었습니까?

해결책

It was answered here:

Migrations does not do any introspection or reverse engineering of your database. You have to enter the DDL changes your self.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top