Commit 1589f6282c81551324723e59bae5167f080f9166
1 parent
17785222
Exists in
master
and in
39 other branches
Adding fix to proxy 0002 backwards
Showing
1 changed file
with
1 additions
and
12 deletions
Show diff stats
src/proxy/migrations/0002_add_key_to_revision_view.py
| @@ -34,18 +34,7 @@ class Migration(DataMigration): | @@ -34,18 +34,7 @@ class Migration(DataMigration): | ||
| 34 | 34 | ||
| 35 | cursor = connection.cursor() | 35 | cursor = connection.cursor() |
| 36 | cursor.execute(''' | 36 | cursor.execute(''' |
| 37 | - CREATE OR REPLACE VIEW revision_view AS SELECT | ||
| 38 | - revision.rev, | ||
| 39 | - revision.author, | ||
| 40 | - revision.message, | ||
| 41 | - repository.value AS repository_name, | ||
| 42 | - TIMESTAMP WITH TIME ZONE 'epoch' + (revision.time/1000000) * INTERVAL '1s' AS created | ||
| 43 | - FROM revision | ||
| 44 | - INNER JOIN repository ON( | ||
| 45 | - repository.id = revision.repos | ||
| 46 | - AND repository.name = 'name' | ||
| 47 | - AND repository.value != '' | ||
| 48 | - ); | 37 | + ALTER VIEW revision_view ALTER COLUMN key DROP DEFAULT; |
| 49 | ''') | 38 | ''') |
| 50 | 39 | ||
| 51 | models = { | 40 | models = { |