Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some migrations can't be reverted #345

Closed
Torgen opened this issue Dec 19, 2024 · 0 comments
Closed

Some migrations can't be reverted #345

Torgen opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Torgen
Copy link
Contributor

Torgen commented Dec 19, 2024

  • CreateTestData uses "Test 1" as the category in the revert and "Egype" in the prepare.
  • StreamPhotoSchemaV2 fails with:
    [ ERROR ] [Migrator] Failed revert [database-id: psql, error: PSQLError(code: server, serverInfo: [sqlState: 42710, file: tablecmds.c, line: 8767, message: constraint "fk:streamphoto.at_event+streamphoto.id" for relation "streamphoto" already exists, routine: ATExecAddConstraint, localizedSeverity: ERROR, severity: ERROR], triggeredFromRequestInFile: PostgresKit/PostgresDatabase+SQL.swift, line: 57, query: PostgresQuery(sql: ALTER TABLE "streamphoto" ADD CONSTRAINT "fk:streamphoto.at_event+streamphoto.id" FOREIGN KEY ("at_event") REFERENCES "event" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION, binds: [])), migration: swiftarr.StreamPhotoSchemaV2]
@cohoe cohoe added the bug Something isn't working label Dec 23, 2024
challfry pushed a commit that referenced this issue Jan 19, 2025
Fixes a few migration reverts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants