English 中文(简体)
从Yi模式中形成银图
原标题:Generating DB schema from model in Yii

Is there way to generate mysql schema from Yii model? In model i describe fields and relations. So it is enough to generate/update db structure. Like symfony 2 command line:

php console/app theory:schema:update

最佳回答

无,在 y里,模型属性是动态的,来自数据库。 该模型界定的任何特性不是属性,因此不在数据库中。 因此,如果在员额表中增加一个新的栏目,员额模式将自动拥有该栏的<条码>魔法>。

之后我想到的是

问题回答

暂无回答




相关问题
Matrix to Represent a Triangle in Screen Space

So i have a set of four points in 3D Space. P1 [0, 0, 0] P2 [128, 0, 0] P3 [0, 128, 0] P4 [128, 128, 0] Which I m then projecting orthographically to the screen effectively giving me two ...

Using LINQ To SQL with multiple database tables

I have an employee class with as follows: public class Employee { public string FirstName { get; set; } public string LastName { get; set; } public string UserName { get; set; } ...

Mapping points from Euclician 2-space onto a Poincare disc

For some reason it seems that everyone writing webpages about Poincare discs is only concerned with how to represent lines and measure distances. I d like to morph a collection of 2D points (as ...

Fluent NHibernate, varbinary(max) and SQLite

I have a varbinary field in my sql server database that needs to be varbinary(max). I create my database with NHibernate and I use Fluent Nhibernate for my mappings. I also use SQLite for my unit ...

Javascript redirect

I am working with javascript and here is what I am trying to do: 1. Send a get request which looks like "http://localhost:8080/myapp/verify.htm?verifyId=Agkvhs" My requests reaches my verify.jsp in ...

热门标签