branch | stable |
changeset 8205 | 14c52c5ee706 |
child 8263 | a73ad255ff63 |
8204:332596be995e | 8205:14c52c5ee706 |
---|---|
1 from yams import schema2sql as y2sql |
|
2 |
|
3 dbhelper = repo.system_source.dbhelper |
|
4 rdefdef = schema['CWSource'].rdef('name') |
|
5 attrtype = y2sql.type_from_constraints(dbhelper, rdefdef.object, rdefdef.constraints).split()[0] |
|
6 |
|
7 sql(dbhelper.sql_change_col_type('entities', 'asource', attrtype, False)) |
|
8 sql(dbhelper.sql_change_col_type('entities', 'source', attrtype, False)) |
|
9 sql(dbhelper.sql_change_col_type('deleted_entities', 'source', attrtype, False)) |