-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from gisce/52708_Comunicacio_automatica_rectif…
…icatives Nuevo campo reference_extra_data
- Loading branch information
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
poweremail_campaign/migrations/5.0.23.12.0/post-0001_add_reference_extra_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
import logging | ||
import pooler | ||
from oopgrade.oopgrade import load_data, load_data_records | ||
|
||
|
||
def up(cursor, installed_version): | ||
if not installed_version: | ||
return | ||
|
||
logger = logging.getLogger('openerp.migration') | ||
|
||
logger.info("Creating pooler") | ||
pool = pooler.get_pool(cursor.dbname) | ||
|
||
##UPDATAR UN MODUL NOU AL CREAR-LO O AFEGIR UNA COLUMNA## | ||
logger.info("Creating table: poweremail.campaign.line") | ||
pool.get("poweremail.campaign.line")._auto_init(cursor, context={'module': 'poweremail_campaign'}) | ||
logger.info("Table created succesfully.") | ||
|
||
def down(cursor, installed_version): | ||
pass | ||
|
||
|
||
migrate = up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters