Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Unrecognized field found when running migration #45

Closed
BarbDMC opened this issue Jan 30, 2024 · 2 comments
Closed

Unrecognized field found when running migration #45

BarbDMC opened this issue Jan 30, 2024 · 2 comments

Comments

@BarbDMC
Copy link

BarbDMC commented Jan 30, 2024

When I run the following migration with the command dotenv 'moo-postgresql upgrade':

Description: Sample Migration 
Created: 2024-01-30 14:21:56.815803195 UTC 
Depends:  
Apply: | 
  SELECT * FROM table;

I have the following error:

There were errors in the migration store: There was an error loading a migration: Could not parse migration migrations/foo.txt: Error in "migrations/foo.txt": unrecognized field found

The workaround that I found was to remove the decimal values after the seconds (.815803195) and, remove 'UTC' from the Created field like this:

Description: Sample Migration
Created: 2024-01-30 14:21:56
Depends: create_new_table
Apply: |
  SELECT * FROM table;
@jtdaugherty
Copy link
Owner

Hi @BarbDMC, you might consider trying master which includes #43.

@jtdaugherty
Copy link
Owner

Since this package is no longer maintained, I'd like to mark the GitHub repository as read-only. I'm closing this ticket as part of that change. This package is now marked as deprecated on Hackage; see the maintenance note in the README if you're interested in taking over maintenance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants