Skip to content

Migration error >= 1.26.4 #177

@YC

Description

@YC

Database Engine: sqlite

On 1.26.4

2021-04-18T03:36:50.879195765Z [INFO ] potentially running migration '20201103-rename_language_mappings_table'
2021-04-18T03:36:50.907514853Z [INFO ] potentially running migration '20201106-migration_cascade_constraints'
2021-04-18T03:36:50.907545161Z [INFO ] not attempting to drop and regenerate constraints on sqlite
2021-04-18T03:36:50.907548256Z [INFO ] potentially running migration '20210202-fix_cascade_for_alias_user_constraint'
2021-04-18T03:36:50.907551532Z [INFO ] not attempting to drop and regenerate constraints on sqlite
2021-04-18T03:36:50.943274498Z [ERROR] table heartbeats already exists
panic: table heartbeats already exists

goroutine 1 [running]:
github.com/emvi/logbuch.(*StandardFormatter).Pnc(0xc0000a60a8, 0xc0001ff640, 0x1f, 0x0, 0x0, 0x0)
	/go/pkg/mod/github.com/emvi/[email protected]/standard_formatter.go:57 +0xc5
github.com/emvi/logbuch.(*Logger).Fatal(0xc0000f2000, 0xc0001ff640, 0x1f, 0x0, 0x0, 0x0)
	/go/pkg/mod/github.com/emvi/[email protected]/logger.go:132 +0xb3
github.com/emvi/logbuch.Fatal(...)
	/go/pkg/mod/github.com/emvi/[email protected]/funcs.go:55
github.com/muety/wakapi/migrations.RunSchemaMigrations(0xc0001e9a10, 0xc0000c9680)
	/src/migrations/migrations.go:39 +0x9e
github.com/muety/wakapi/migrations.Run(0xc0001e9a10, 0xc0000c9680)
	/src/migrations/migrations.go:33 +0x4d
main.main()
	/src/main.go:130 +0x389

On 1.26.3

2021-04-18T03:35:35.216092946Z [INFO ] potentially running migration '20201103-rename_language_mappings_table'
2021-04-18T03:35:35.217842192Z [INFO ] potentially running migration '20201106-migration_cascade_constraints'
2021-04-18T03:35:35.217855567Z [INFO ] not attempting to drop and regenerate constraints on sqlite
2021-04-18T03:35:35.217858232Z [INFO ] potentially running migration '20210202-fix_cascade_for_alias_user_constraint'
2021-04-18T03:35:35.217861227Z [INFO ] not attempting to drop and regenerate constraints on sqlite
2021-04-18T03:35:35.323460299Z [INFO ] potentially running migration '20210206_drop_badges_column_add_sharing_flags'
2021-04-18T03:35:35.323862156Z [INFO ] not attempting to drop column 'badges_enabled' on sqlite
2021-04-18T03:35:35.323900598Z [INFO ] potentially running migration '20210213-add_has_data_field'
2021-04-18T03:35:35.324017018Z [INFO ] no need to migrate '20210213-add_has_data_field'
2021-04-18T03:35:35.324052575Z [INFO ] potentially running migration '20210221-add_created_date_column'
2021-04-18T03:35:35.324143636Z [INFO ] no need to migrate '20210221-add_created_date_column'
2021-04-18T03:35:35.324177941Z [INFO ] potentially running migration '20210411-add_imprint_content'
2021-04-18T03:35:35.324266939Z [INFO ] no need to migrate '20210411-add_imprint_content'
2021-04-18T03:35:35.324300622Z [INFO ] potentially running migration '20210411-drop_migrations_table'
2021-04-18T03:35:35.324520557Z [INFO ] generating summaries
2021-04-18T03:35:35.327221305Z [INFO ] --> Listening for HTTP on 0.0.0.0:3000... ✅
2021-04-18T03:35:35.632765074Z [INFO ] successfully counted total for user yc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions