Gitea: Crash in V75 Migration and old database

Created on 18 Dec 2018  路  1Comment  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): fe55ab2a68
  • Git version:
  • Operating system: Linux
  • Database (use [x]):

    • [ ] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [x] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [x ] Not relevant

  • Log gist:

Description

Latest version errors out with no such table "stop_watch" when migrating V75 on the following statement:

+ if _, err := x.Exec(builder.Delete(condDelete("user_id")).From("stop_watch")); err != nil {

聽 return err
}

In my version of SQLite - the table is called stopwatch (no underscore character). I have a very old database so this may be related to that. I replaced the tablename with "stopwatch", rebuilt gitea and it worked.

...

Screenshots

kinbug

Most helpful comment

I have the same error running the latest docker image

>All comments

I have the same error running the latest docker image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thehowl picture thehowl  路  3Comments

cookiengineer picture cookiengineer  路  3Comments

lunny picture lunny  路  3Comments

BNolet picture BNolet  路  3Comments

Fastidious picture Fastidious  路  3Comments