示例#1
0
from gareth53.apps.dmigrations.mysql import migrations as m
import datetime
migration = m.AddColumn('podcast', 'episode', 'author', 'integer NULL',
                        'auth_user')
from gareth53.apps.dmigrations.mysql import migrations as m
import datetime
migration = m.AddColumn('articles', 'article', 'category', 'integer NOT NULL',
                        'articles_articlecategory')
from gareth53.apps.dmigrations.mysql import migrations as m
import datetime
migration = m.Compound([
    m.AddColumn('articles', 'articlecategory', 'pages_title',
                'varchar(200) NOT NULL'),
    m.AddColumn('articles', 'articlecategory', 'mainNavigation',
                'integer NULL', 'navigation_navigation'),
    m.AddColumn('articles', 'articlecategory', 'footerNavigation',
                'integer NULL', 'navigation_navigation'),
])
from gareth53.apps.dmigrations.mysql import migrations as m
import datetime

migration = m.AddColumn('podcast', 'episode', 'duration', 'varchar(8) NULL')
示例#5
0
from gareth53.apps.dmigrations.mysql import migrations as m
import datetime
migration = m.AddColumn('podcast', 'episode', 'image_description',
                        'varchar(50) NULL')
from gareth53.apps.dmigrations.mysql import migrations as m
import datetime
migration = m.AddColumn('articles', 'article', 'pod_promos', 'integer NULL',
                        'articles_promo')
示例#7
0
from gareth53.apps.dmigrations.mysql import migrations as m
import datetime
migration = m.AddColumn('podcast', 'episode', 'enhanced_media_URL',
                        'varchar(200) NULL')
示例#8
0
from gareth53.apps.dmigrations.mysql import migrations as m
import datetime
migration = m.AddColumn('blog', 'blogcategory', 'use_count',
                        'integer NOT NULL')