Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mysql 5.7 json support #172

Merged
merged 1 commit into from
Jul 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/Ruckusing/Adapter/MySQL/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public function native_database_types()
'enum' => array('name' => "enum", 'values' => array()),
'uuid' => array('name' => "char", 'limit' => 36),
'char' => array('name' => "char"),
'json' => array('name' => "json"),
);

return $types;
Expand Down Expand Up @@ -664,7 +665,7 @@ public function rename_column($table_name, $column_name, $new_column_name)
$this->identifier($table_name),
$this->identifier($column_name),
$this->identifier($new_column_name), $current_type);

$sql .= $this->add_column_options($current_type, $column_info);

return $this->execute_ddl($sql);
Expand Down Expand Up @@ -851,7 +852,7 @@ public function remove_index($table_name, $column_name, $options = array())

return $this->execute_ddl($sql);
}

/**
* Add timestamps
*
Expand Down Expand Up @@ -886,7 +887,7 @@ public function add_timestamps($table_name, $created_column_name, $updated_colum

return $created_at && $updated_at;
}

/**
* Remove timestamps
*
Expand Down