Update 'src/Schema/Wrapper.php'

This commit is contained in:
ahwelp
2020-04-16 02:06:16 +00:00
parent 5632f15107
commit 8b45dd556a
+17 -17
View File
@@ -10,27 +10,27 @@ use Schema\Db\Adapter\SQLiteAdapter;
use Schema\Db\Adapter\SqlServerAdapter;
/*
* @gt Wrapper::get_table('table');
* @gt Wrapper::exec('table');
* @ctag Wrapper::get_table('table');
* @ctag Wrapper::exec('table');
*
* @gt $table->addColumn('column', 'type', $options = array());
* @gt $table->addColumn('column', 'string', $options = array( 'null' => true, 'default' => '' ) );
* @gt $table->addColumn('column', 'integer', $options = array( 'null' => true, 'default' => 0 ) );
* @gt $table->addColumn('column', 'text', $options = array( 'null' => true, 'default'=> '' ) );
* @gt $table->hasColumn('column');
* @ctag $table->addColumn('column', 'type', $options = array());
* @ctag $table->addColumn('column', 'string', $options = array( 'null' => true, 'default' => '' ) );
* @ctag $table->addColumn('column', 'integer', $options = array( 'null' => true, 'default' => 0 ) );
* @ctag $table->addColumn('column', 'text', $options = array( 'null' => true, 'default'=> '' ) );
* @ctag $table->hasColumn('column');
*
* @gt $table->addTimestamps();
* @gt $table->addTimestamps('created_at', 'updated_at');
* @gt $table->addSoftDelete();
* @gt $table->addSoftDelete($deletedAtColumnName = 'deleted_at');
* @ctag $table->addTimestamps();
* @ctag $table->addTimestamps('created_at', 'updated_at');
* @ctag $table->addSoftDelete();
* @ctag $table->addSoftDelete($deletedAtColumnName = 'deleted_at');
*
* @gt $table->addSoftDelete();
* @gt $table->removeColumn('column');
* @gt $table->renameColumn('column', 'newName');
* @gt $table->changeColumn('column', 'type', $options = array());
* @ctag $table->addSoftDelete();
* @ctag $table->removeColumn('column');
* @ctag $table->renameColumn('column', 'newName');
* @ctag $table->changeColumn('column', 'type', $options = array());
*
* @gt $table->addForeignKey(Array('column'), 'remoteTable', Array('remoteColumn'), $options = array());
* @gt $table->addIndex($columns, $options = array());
* @ctag $table->addForeignKey(Array('column'), 'remoteTable', Array('remoteColumn'), $options = array());
* @ctag $table->addIndex($columns, $options = array());
*
*/