Report the user's name and company to Marketo
Also fixes the API to report the other changes (username and email) as well
This commit is contained in:
parent
860942ece1
commit
1a61ef4e04
8 changed files with 78 additions and 24 deletions
|
@ -1,23 +1,25 @@
|
|||
"""Add user metadata fields
|
||||
|
||||
Revision ID: 491a530df230
|
||||
Revision ID: faf752bd2e0a
|
||||
Revises: 6c7014e84a5e
|
||||
Create Date: 2016-11-04 18:03:05.237408
|
||||
Create Date: 2016-11-14 17:29:03.984665
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '491a530df230'
|
||||
revision = 'faf752bd2e0a'
|
||||
down_revision = '6c7014e84a5e'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
from util.migrate import UTF8CharField
|
||||
|
||||
def upgrade(tables):
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('user', sa.Column('company', UTF8CharField(length=255), nullable=True))
|
||||
op.add_column('user', sa.Column('name', UTF8CharField(length=255), nullable=True))
|
||||
op.add_column('user', sa.Column('family_name', UTF8CharField(length=255), nullable=True))
|
||||
op.add_column('user', sa.Column('given_name', UTF8CharField(length=255), nullable=True))
|
||||
### end Alembic commands ###
|
||||
|
||||
op.bulk_insert(tables.userpromptkind,
|
||||
|
@ -29,7 +31,8 @@ def upgrade(tables):
|
|||
|
||||
def downgrade(tables):
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('user', 'name')
|
||||
op.drop_column('user', 'given_name')
|
||||
op.drop_column('user', 'family_name')
|
||||
op.drop_column('user', 'company')
|
||||
### end Alembic commands ###
|
||||
|
Reference in a new issue