Skip to content
This repository was archived by the owner on Dec 2, 2017. It is now read-only.

Write last Gogs version with compatible db version #108

Merged
merged 2 commits into from
Apr 8, 2017

Conversation

strk
Copy link
Member

@strk strk commented Mar 29, 2017

And include db version info

\cc @lunny, @bkcsoft, @tboerger

@lunny lunny added this to the 1.2 milestone Mar 29, 2017
@tboerger
Copy link
Member

The version of the database ist fixed with the gogs version. Nobody will really know what this database version means.

@strk
Copy link
Member Author

strk commented Mar 30, 2017

@tboerger whoever wants to know if an upgrade will work can check the version.version table in their database, if not greater than the given number (15) then the upgrade will be smooth. Isn't that all ?

@bkcsoft
Copy link
Member

bkcsoft commented Mar 30, 2017

I'm with @tboerger here, in most cases db-version will just confuse rather than help.

@strk
Copy link
Member Author

strk commented Mar 30, 2017 via email

@ptman
Copy link

ptman commented Mar 30, 2017

I think documenting both gogs version and db schema version is ideal

Does not add the db schema version part as I'd need help with
that (@lunny?)
@strk
Copy link
Member Author

strk commented Apr 1, 2017

@lunny also please L-G-T-M if you agree with this (and what do you think about this @geek1011 ?)

@tboerger
Copy link
Member

tboerger commented Apr 1, 2017

It's quite simple. Which version has your Gogs? It's bigger than the mentioned version? Than it's up to you to try it, it's pretty sure that there are diffs. The migration number anyway only changes with new migrations, the database will be anyway on a different state if unknwon adds a new column anywhere

@strk
Copy link
Member Author

strk commented Apr 1, 2017

@tboerger you mean adding columns does not require a migration ? In that case I don't know if the version referenced by this PR is really the same as the current version in tables composition.

@strk
Copy link
Member Author

strk commented Apr 6, 2017

@lunny so your vote for this is no ? I don't like pending PRs...
@ptman unfortunately only maintainers votes count here (please become one!).
@geek1011 your opinion ? @appleboy ?

@appleboy
Copy link
Member

appleboy commented Apr 7, 2017

LGTM

@tboerger
Copy link
Member

tboerger commented Apr 7, 2017

@strk migrations are only used to change data or to drop columns. Sync2 is always called to create new columns automatically and it doesn't change the migration number

@pgaskin
Copy link
Contributor

pgaskin commented Apr 7, 2017

LGTM

@lunny lunny merged commit 67a08b0 into go-gitea:master Apr 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants