Skip to content
Browse files

Change docs to comply with recent API changes.

  • Loading branch information...
1 parent 3bcec43 commit ebf545fabe897f6bb6fe3d2679737f3d1bf54d3f @beberlei beberlei committed Feb 16, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 reference/en/generating-migrations.txt
  2. +2 −2 reference/en/migration-classes.txt
View
4 reference/en/generating-migrations.txt
@@ -49,12 +49,12 @@ update your database:
{
public function up(Schema $schema)
{
- $this->_addSql('ALTER TABLE users ADD test VARCHAR(255) NOT NULL');
+ $this->addSql('ALTER TABLE users ADD test VARCHAR(255) NOT NULL');
}
public function down(Schema $schema)
{
- $this->_addSql('ALTER TABLE users DROP test');
+ $this->addSql('ALTER TABLE users DROP test');
}
}
View
4 reference/en/migration-classes.txt
@@ -49,11 +49,11 @@ custom SQL queries:
{
public function up(Schema $schema)
{
- $this->_addSql('CREATE TABLE addresses (id INT NOT NULL, street VARCHAR(255) NOT NULL, PRIMARY KEY(id)) ENGINE = InnoDB');
+ $this->addSql('CREATE TABLE addresses (id INT NOT NULL, street VARCHAR(255) NOT NULL, PRIMARY KEY(id)) ENGINE = InnoDB');
}
public function down(Schema $schema)
{
- $this->_addSql('DROP TABLE addresses');
+ $this->addSql('DROP TABLE addresses');
}
}

0 comments on commit ebf545f

Please sign in to comment.
Something went wrong with that request. Please try again.