jamband / yii2-schemadump

Generate the schema from an existing database
https://www.yiiframework.com/extension/yii2-schemadump
MIT License
93 stars 21 forks source link

Create indexes and drop foreign keys #10

Open nirvana-msu opened 9 years ago

nirvana-msu commented 9 years ago

Hi,

First of all, thanks for this very useful tool!

I am wondering if it would be possible to add the following features, similar to how it's done in this gist?

  1. Create indexes along with foreign keys
  2. Drop foreign keys before dropping tables, otherwise downgrade simply doesn't work
jamband commented 9 years ago

Recently, yii\db\SchemaBuilder class has been implemented. Perhaps, because it is expected to be released in v2.0.6, we'll see how it goes.

Thank you for some comment :)

jamband commented 9 years ago

Changed class. yii\db\SchemaBuilder to yii\db\SchemaBuilderTrait

nirvana-msu commented 9 years ago

Any plans to update this fantastic extension to make use of the new yii\db\SchemaBuilderTrait?

jamband commented 9 years ago

Yes. I would like to rewrite the new notation :) However, there are still some problems. https://github.com/yiisoft/yii2/pull/9441, https://github.com/yiisoft/yii2/issues/8148, https://github.com/yiisoft/yii2/pull/9089

SilverFire commented 8 years ago

Comments on columns and tables are implemented in https://github.com/yiisoft/yii2/commit/fde8aa6bcbb902aaea10f02f07fa87e11e5d2d17