Commit 1589f6282c81551324723e59bae5167f080f9166

Authored by Luan
1 parent 17785222

Adding fix to proxy 0002 backwards

src/proxy/migrations/0002_add_key_to_revision_view.py
... ... @@ -34,18 +34,7 @@ class Migration(DataMigration):
34 34  
35 35 cursor = connection.cursor()
36 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 40 models = {
... ...