diff options
author | Peter Smit <peter@smitmail.eu> | 2015-02-05 15:29:08 +0200 |
---|---|---|
committer | Peter Smit <peter@smitmail.eu> | 2015-02-12 14:14:45 +0200 |
commit | 0a4cda0dd4d7c906668d9d2e283fbe9ebe2e1608 (patch) | |
tree | 7068350836e187523f0bcf741695c84c0eab42a9 /models/migrations | |
parent | 2804784df93f392ed76a85d8e7153c66964f1ba5 (diff) | |
download | gitea-0a4cda0dd4d7c906668d9d2e283fbe9ebe2e1608.tar.gz gitea-0a4cda0dd4d7c906668d9d2e283fbe9ebe2e1608.zip |
Refactoring of the Access Table
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.
The result does compile, but has not been tested. It may eat your kittens.
Diffstat (limited to 'models/migrations')
-rw-r--r-- | models/migrations/migrations.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 814564e9af..1510bafdb6 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -47,10 +47,11 @@ type Version struct { } // This is a sequence of migrations. Add new migrations to the bottom of the list. -// If you want to "retire" a migration, remove it from the top of the list and -// update _MIN_VER_DB accordingly +// If you want to "retire" a migration, remove it from the top of the list and +// update _MIN_VER_DB accordingly var migrations = []Migration{ NewMigration("generate collaboration from access", accessToCollaboration), // V0 -> V1 + NewMigration("refactor access table to use id's", accessRefactor), // V1 -> V2 } // Migrate database to current version @@ -206,3 +207,8 @@ func accessToCollaboration(x *xorm.Engine) error { return sess.Commit() } + +func accessRefactor(x *xorm.Engine) error { + //TODO + return nil +} |