diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-16 17:52:43 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-16 17:52:43 +0000 |
commit | 54a0e51ca1940d1a3afd77920264e72ec5882d4a (patch) | |
tree | ca5b5af6f01f330bfc7458ed3c9c00dab0827cde | |
parent | 75f251685c9d0a17546447cb67315e6fc7e878ec (diff) | |
download | morph-cache-server-54a0e51ca1940d1a3afd77920264e72ec5882d4a.tar.gz |
Add missing migration file (oops)
-rw-r--r-- | morphcacheserver/migrations/0002.repo_ref.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/morphcacheserver/migrations/0002.repo_ref.py b/morphcacheserver/migrations/0002.repo_ref.py new file mode 100644 index 0000000..151e869 --- /dev/null +++ b/morphcacheserver/migrations/0002.repo_ref.py @@ -0,0 +1,31 @@ +# Copyright (C) 2015 Codethink Limited +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see <http://www.gnu.org/licenses/>. + + +from yoyo import step, transaction + + +# This is a 'yoyo' database migration. Each step has an 'apply' SQL statement, +# in some cases followed by a 'revert' SQL statement (in other cases, it's not +# possible to revert). + + +transaction( + step( + 'ALTER TABLE artifact_files ADD COLUMN source_repo STRING' + ), + step( + 'ALTER TABLE artifact_files ADD COLUMN source_ref STRING' + ) +) |