mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-08-01 10:44:26 +02:00
Add space before replacements to avoid any issues with similar types
This commit is contained in:
@@ -3,9 +3,11 @@
|
|||||||
class AlterTableSQLRewriter extends AbstractSQLRewriter
|
class AlterTableSQLRewriter extends AbstractSQLRewriter
|
||||||
{
|
{
|
||||||
private $stringReplacements = [
|
private $stringReplacements = [
|
||||||
|
' bigint(40)' => ' bigint',
|
||||||
' bigint(20)' => ' bigint',
|
' bigint(20)' => ' bigint',
|
||||||
' bigint(10)' => ' int',
|
' bigint(10)' => ' int',
|
||||||
' int(11)' => ' int',
|
' int(11)' => ' int',
|
||||||
|
' int(10)' => ' int',
|
||||||
' tinytext' => ' text',
|
' tinytext' => ' text',
|
||||||
' mediumtext' => ' text',
|
' mediumtext' => ' text',
|
||||||
' longtext' => ' text',
|
' longtext' => ' text',
|
||||||
|
@@ -3,9 +3,11 @@
|
|||||||
class CreateTableSQLRewriter extends AbstractSQLRewriter
|
class CreateTableSQLRewriter extends AbstractSQLRewriter
|
||||||
{
|
{
|
||||||
private $stringReplacements = [
|
private $stringReplacements = [
|
||||||
|
' bigint(40)' => ' bigint',
|
||||||
' bigint(20)' => ' bigint',
|
' bigint(20)' => ' bigint',
|
||||||
' bigint(10)' => ' int',
|
' bigint(10)' => ' int',
|
||||||
' int(11)' => ' int',
|
' int(11)' => ' int',
|
||||||
|
' int(10)' => ' int',
|
||||||
' int(1)' => ' smallint',
|
' int(1)' => ' smallint',
|
||||||
' tinytext' => ' text',
|
' tinytext' => ' text',
|
||||||
' mediumtext' => ' text',
|
' mediumtext' => ' text',
|
||||||
|
Reference in New Issue
Block a user