I would like to be able to modify a schema and not have it drop columns that no longer exists. Is this possible?
i did this...
$sql = $schema->ParseSchema($this->schemaFile); foreach ($sql as $key => $value) { if (strstr($value, "DROP")) { unset($sql[$key]); } } $result = $schema->ExecuteSchema($sql);
lame, but works :)
Log in to post a comment.
I would like to be able to modify a schema and not have it drop columns that no longer exists. Is this possible?
i did this...
$sql = $schema->ParseSchema($this->schemaFile);
foreach ($sql as $key => $value) {
if (strstr($value, "DROP")) {
unset($sql[$key]);
}
}
$result = $schema->ExecuteSchema($sql);
lame, but works :)