Skip to content

Add PostgreSQL migrations#55

Closed
Rafikooo wants to merge 1 commit into
Sylius:1.1from
Rafikooo:fix/add-postgresql-migrations
Closed

Add PostgreSQL migrations#55
Rafikooo wants to merge 1 commit into
Sylius:1.1from
Rafikooo:fix/add-postgresql-migrations

Conversation

@Rafikooo

Copy link
Copy Markdown
Contributor

Adds PostgreSQL migration counterparts for all 8 existing MySQL-only migrations. Each PostgreSQL migration extends AbstractPostgreSQLMigration (which skips execution on MySQL) and uses PostgreSQL-appropriate SQL syntax: SERIAL for auto-increment, TIMESTAMP(0) WITHOUT TIME ZONE for datetime, ALTER INDEX ... RENAME TO instead of ALTER TABLE ... RENAME INDEX, DROP CONSTRAINT instead of DROP FOREIGN KEY, and separate CREATE INDEX statements instead of inline index definitions.

Each existing MySQL migration now has a corresponding PostgreSQL
counterpart extending AbstractPostgreSQLMigration. The PostgreSQL
versions use platform-appropriate SQL syntax (SERIAL, TIMESTAMP,
ALTER INDEX, DROP CONSTRAINT, etc.).
@Rafikooo Rafikooo requested a review from a team as a code owner March 11, 2026 11:50
@Rafikooo

Copy link
Copy Markdown
Contributor Author

Closing in favor of #49 by @TheMilek which already addresses PostgreSQL support.

@Rafikooo Rafikooo closed this Mar 11, 2026
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