Skip to content

Fixes for issue 425 - Postgres schema files for newsletter_*.sql files fail at install#426

Open
karlstevens wants to merge 2 commits into
givanz:masterfrom
karlstevens:master
Open

Fixes for issue 425 - Postgres schema files for newsletter_*.sql files fail at install#426
karlstevens wants to merge 2 commits into
givanz:masterfrom
karlstevens:master

Conversation

@karlstevens
Copy link
Copy Markdown

Changed instances of "tinyint" to "smallint", "largetext" to "text", "unsigned" to "bigint" and "datetime" to "timestamp"

I selected "bigint" for unsigned to make sure there would be no overflow (I'm not sure how large the values are.)

Mysql's "largetext" can hold values up to 4GB; the closest Postgres has (without using blobs) is "text", which can hold up to 1GB; I hope this is large enough.

Used 'text' instead of 'longtext' should work; Mysql longtext is 4GB
while Postgresql text is 1GB.   I'm assuming that 4GB is used for Mysql
as the next shortest (mediumtext) is 16MB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant