Project

General

Profile

0002-corrige-migration-ajout-colonne-deleted-to-fixup.patch

Benjamin Dauvergne, 17 Dec 2018 02:34 PM

Download (853 Bytes)

View differences:

Subject: [PATCH 2/7] corrige migration ajout colonne deleted (to fixup)

 wcs/sql.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/sql.py
589 589
        cur.execute('ALTER TABLE %s ADD COLUMN ascii_name varchar' % table_name)
590 590

  
591 591
    if not 'deleted' in existing_fields:
592
        cur.execute('ALTER TABLE %s ADD COLUMN deleted DEFAULT(FALSE)' % table_name)
592
        cur.execute('ALTER TABLE %s ADD COLUMN deleted boolean DEFAULT(FALSE)' % table_name)
593 593

  
594 594
    # delete obsolete fields
595 595
    for field in (existing_fields - needed_fields):
596
-