Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# Changelog

All Notable changes to `:package_name` will be documented in this file

## NEXT - YYYY-MM-DD
All Notable changes to this project will be documented in this file
we use the follow tags to organize our release:

### Added
- Nothing

### Deprecated
- Nothing

### Fixed
- Nothing

### Removed
- Nothing

### Security
- Nothing


RELEASES ============================================================================

## [Unreleased]
### Added
- CREATE TABLE reader from @marco
25 changes: 25 additions & 0 deletions src/Queries/Columns/BooleanColumn.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Highideas\SqlToMigration\Queries\Columns;

use Highideas\SqlToMigration\Exceptions\InvalidColumnException;

class BooleanColumn extends AbstractColumn
{

protected function match($column)
{
preg_match(
"/^[`]*([a-zA-Z-_]+)[`]*\s+(BOOLEAN)\s*(NOT NULL|NULL|)*/i",
$column,
$this->splitColumn
);
if (empty($this->splitColumn)) {
$this->setInvalidColumnException('Invalid Column.');
}
}

protected function defineDefault()
{
}
}