0
我是zend的新手,我想爲應用程序使用DB模塊。Zend framerwork DB DDL更新
我沒有創建此代碼
$DB = new Zend\Db\Adapter\Adapter(array(
'driver' => 'Mysqli',
'database' => 'database',
'username' => 'user',
'password' => 'pass'
));
use Zend\Db\Sql\Ddl;
use Zend\Db\Sql\Ddl\Column;
use Zend\Db\Sql\Ddl\Constraint;
$table = new Ddl\CreateTable('table');
$table->setTable('table');
$table->addColumn(new Column\Integer('id',false,NULL,array('autoincrement'=>true)));
$table->addColumn(new Column\Varchar('name', 255));
$table->addConstraint(new Constraint\PrimaryKey('id'));
表,有一個更新的功能?我找不到它。
我錯過了。謝謝。我只檢查了脫機文檔 – gtht90