Permalink
Browse files

Remove unused sqlmeta_exists from changeset support

  • Loading branch information...
1 parent 05299af commit 7f8acda7780dcb1b78eeecbf861bc7427a50fd49 @iarna iarna committed Apr 17, 2012
Showing with 1 addition and 11 deletions.
  1. +1 −11 Modyllic/Diff.php
View
@@ -45,15 +45,6 @@ private function calculate_changeset() {
$this->changeset->schema->collate = $this->to->collate;
}
- // If our metadata table doesn't yet exist, create it
- if ( ! $this->from->sqlmeta_exists and $this->to->sqlmeta_exists ) {
- $this->changeset->sqlmeta_exists = TRUE;
- }
- // If we no longer need a metadata table, we'll drop it
- if ( $this->from->sqlmeta_exists and ! $this->to->sqlmeta_exists ) {
- $this->changeset->sqlmeta_exists = FALSE;
- }
-
# Find completely new tables
foreach ($this->to->tables as $name=>$table) {
if ( ! isset($this->from->tables[$name]) ) {
@@ -374,7 +365,6 @@ class Modyllic_Changeset {
public $remove;
public $update;
public $schema;
- public $sqlmeta_exists;
function __construct() {
$this->add = array(
@@ -522,7 +512,7 @@ function has_changes() {
count($this->add['views' ]) + count($this->update['views' ]) + count($this->remove['views' ]) +
count($this->add['triggers']) + count($this->update['triggers']) + count($this->remove['triggers'])
);
- return ($changed != 0 or isset($this->sqlmeta_exists) or isset($this->schema->charset) or isset($this->schema->collate));
+ return ($changed != 0 or isset($this->schema->charset) or isset($this->schema->collate));
}
}

0 comments on commit 7f8acda

Please sign in to comment.