mirror of
https://github.com/odoo/runbot.git
synced 2025-03-17 16:35:47 +07:00
13 lines
383 B
Python
13 lines
383 B
Python
![]() |
def migrate(cr, version):
|
||
|
cr.execute("""
|
||
|
CREATE TABLE runbot_merge_events_sources (
|
||
|
id serial primary key,
|
||
|
repository varchar not null,
|
||
|
secret varchar
|
||
|
);
|
||
|
INSERT INTO runbot_merge_events_sources (repository, secret)
|
||
|
SELECT r.name, p.secret
|
||
|
FROM runbot_merge_repository r
|
||
|
JOIN runbot_merge_project p ON p.id = r.project_id;
|
||
|
""")
|