Skip to content

Commit

Permalink
Fxi for UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Mar 4, 2024
1 parent 04ad576 commit c301705
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Platform/Type/MySQLDataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MySQLDataType extends DataType
public const ENUM = 'enum';

public const SET = 'set';

public const BINARY = 'binary';

/**
* Property types.
Expand Down Expand Up @@ -45,6 +47,7 @@ class MySQLDataType extends DataType
self::TIMESTAMP => [null, '1970-01-01 12:00:01', 'int'],
self::TEXT => [null, false, 'string'],
self::LONGTEXT => [null, false, 'string'],
self::BINARY => [16, '', 'string'],
];

/**
Expand Down
3 changes: 3 additions & 0 deletions src/Platform/Type/PostgreSQLDataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class PostgreSQLDataType extends DataType
public const SERIAL = 'serial';

public const REAL = 'real';

public const BYTEA = 'bytea';

/**
* Property typeMapping.
Expand All @@ -37,6 +39,7 @@ class PostgreSQLDataType extends DataType
MySQLDataType::SET => self::TEXT,
MySQLDataType::FLOAT => self::REAL,
MySQLDataType::CHAR => self::VARCHAR,
MySQLDataType::BINARY => self::BYTEA,
];

/**
Expand Down

0 comments on commit c301705

Please sign in to comment.