diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-18 19:29:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 19:29:16 +0100 |
commit | 526688a953b3ec7992218c195449c05a071242ff (patch) | |
tree | 6a5704e454616166604119bf84fe69ca035cc3b4 /src/branch | |
parent | 77715d93b2112b7d231db541ecce6ddca5c762c7 (diff) | |
parent | 4e266a2c2a22385a12ea16b992d345e9856f012f (diff) |
Merge pull request #19 from gico-net/feat/repo-with-branch
Create branch when the repository is created
Diffstat (limited to 'src/branch')
-rw-r--r-- | src/branch/models.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/branch/models.rs b/src/branch/models.rs index c8a8d65..3d57537 100644 --- a/src/branch/models.rs +++ b/src/branch/models.rs @@ -119,7 +119,7 @@ impl Branch { let statement = client .prepare( - "INSERT INTO repository(id, name, repository_id, head) + "INSERT INTO branch(id, name, repository_id, head) VALUES($1, $2, $3, $4) RETURNING *", ) |