"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/userstorage/migrations/0002_fix_json_field_not_null.py" (15 Jan 2020, 421 Bytes) of package /linux/www/taiga-back-5.0.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "0002_fix_json_field_not_null.py" see the Fossies "Dox" file reference documentation.

    1 # -*- coding: utf-8 -*-
    2 from __future__ import unicode_literals
    3 
    4 from taiga.base.db.models.fields import JSONField
    5 
    6 from django.db import models, migrations
    7 
    8 
    9 class Migration(migrations.Migration):
   10 
   11     dependencies = [
   12         ('userstorage', '0001_initial'),
   13     ]
   14 
   15     operations = [
   16         migrations.RunSQL(
   17             sql='ALTER TABLE userstorage_storageentry ALTER COLUMN value DROP NOT NULL;',
   18         ),
   19     ]