Skip to content

Instantly share code, notes, and snippets.

@paultyng
Last active April 14, 2017 16:20
Show Gist options
  • Select an option

  • Save paultyng/7adfe2266832a314ddb3d1b21464dcad to your computer and use it in GitHub Desktop.

Select an option

Save paultyng/7adfe2266832a314ddb3d1b21464dcad to your computer and use it in GitHub Desktop.

Revisions

  1. paultyng revised this gist Apr 14, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ops.yaml
    Original file line number Diff line number Diff line change
    @@ -9,5 +9,5 @@
    id:
    type: integer
    email:
    pattern: @
    pattern: '@'
    type: string
  2. paultyng revised this gist Apr 14, 2017. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions ops.yaml
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,13 @@
    - name: update-user-email
    title: Update User's Email
    description: Update a user's email address.
    db:
    connection: users
    sql: update users set email = :email where id = :id
    schema:
    properties:
    id:
    type: integer
    email:
    pattern: @
    type: string
  3. paultyng revised this gist Apr 14, 2017. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions ops.yaml
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    title: Update User's Email
    description: Update a user's email address.
    schema:
    email:
    pattern: @
    type: string
    properties:
    email:
    pattern: @
    type: string
  4. paultyng created this gist Apr 14, 2017.
    7 changes: 7 additions & 0 deletions ops.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    - name: update-user-email
    title: Update User's Email
    description: Update a user's email address.
    schema:
    email:
    pattern: @
    type: string