Skip to content

Commit

Permalink
Add the "flipr" user.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Dec 31, 2013
1 parent 79fe2cc commit c63acb9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/appuser.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Deploy appuser

BEGIN;

CREATE USER flipr;

COMMIT;
7 changes: 7 additions & 0 deletions revert/appuser.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Revert appuser

BEGIN;

DROP USER flipr;

COMMIT;
1 change: 1 addition & 0 deletions sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
%project=flipr
%uri=https://github.com/theory/sqitch-mysql-intro/

appuser 2013-12-31T21:04:04Z Marge N. O’Vera <marge@example.com> # Creates a an application user.
8 changes: 8 additions & 0 deletions verify/appuser.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Verify appuser

BEGIN;

SELECT sqitch.checkit(COUNT(*), 'User "flipr" does not exist')
FROM mysql.user WHERE user = 'flipr';

ROLLBACK;

0 comments on commit c63acb9

Please sign in to comment.