1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00
woodpecker/pkg/database/migrate
Nurahmadie 8ce87f0d2c More tests for alter columns migration
Also change the way we handle columns rename migration.
SQLite restrict column addition not to have PRIMARY KEY and/or
UNIQUE attribute, so we have to change from:

add new column -> migrate data from old column to new column ->
rename old table -> create new table with old columns removed ->
migrate data from old table to the new table -> drop old table

to directly:
rename old table -> create new table with renamed columns ->
migrate data from old table to the new table -> drop old table
2014-02-16 00:56:17 +07:00
..
migrate_20150209.go package for database migrations 2014-02-10 03:03:22 -07:00
migrate.go More tests for alter columns migration 2014-02-16 00:56:17 +07:00
sqlite_test.go More tests for alter columns migration 2014-02-16 00:56:17 +07:00
sqlite.go More tests for alter columns migration 2014-02-16 00:56:17 +07:00
util.go Fix migration step not checked against current version. 2014-02-15 22:17:22 +07:00