Permalink
Browse files

Last run-through, ready to go!

  • Loading branch information...
1 parent 20ae1b2 commit 5a348e48cacbef6716773e3a333828a5831aa03c @theory committed Jul 19, 2010
View
@@ -1,3 +1,4 @@
-CREATE ROLE fliprapp;
+CREATE USER fliprapp
+ WITH LOGIN;
GRANT SELECT ON users TO fliprapp;
View
@@ -1,9 +1,14 @@
-BEGIN;
+ BEGIN;
ALTER TABLE users
RENAME timestamp TO created_at;
ALTER TABLE users
ADD birth_date DATE;
+UPDATE users
+ SET birth_date = created_at,
+ created_at = '2010-07-19 15:30:00+00'
+ WHERE created_at < '2010-07-19 15:30:00+00';
+
COMMIT;
View
BIN tddd.key
Binary file not shown.
View
@@ -33,12 +33,13 @@ CREATE OR REPLACE FUNCTION mock.get_random_string(
SELECT 'a'::text;
$$;
+SET search_path = mock,public,tap,pg_catalog;
+
SELECT ins_user('jrivers', '****');
SELECT is( COUNT(*)::int, 0, 'Should be no flips')
FROM flips;
-SET search_path = mock,public,tap;
SELECT is(
ins_flip(
'jrivers',
View
@@ -33,12 +33,13 @@ CREATE OR REPLACE FUNCTION mock.get_random_string(
SELECT 'a'::text;
$$;
+SET search_path = mock,public,tap,pg_catalog;
+
SELECT ins_user('jrivers', '****');
SELECT is( COUNT(*)::int, 0, 'Should be no flips')
FROM flips;
-SET search_path = mock,public,tap,pg_catalog;
SELECT is(
ins_flip(
'jrivers',
View
@@ -33,12 +33,13 @@ CREATE OR REPLACE FUNCTION mock.get_random_string(
SELECT 'a'::text;
$$;
+SET search_path = mock,public,tap,pg_catalog;
+
SELECT ins_user('jrivers', '****');
SELECT is( COUNT(*)::int, 0, 'Should be no flips')
FROM flips;
-SET search_path = mock,public,tap,pg_catalog;
SELECT is(
ins_flip(
'jrivers',
View
@@ -62,12 +62,13 @@ CREATE OR REPLACE FUNCTION mock.clock_timestamp(
SELECT '2010-07-19 11:01:03.306399+00'::timestamptz;
$$;
+SET search_path = mock,public,tap,pg_catalog;
+
SELECT ins_user('jrivers', '****');
SELECT is( COUNT(*)::int, 0, 'Should be no flips')
FROM flips;
-SET search_path = mock,public,tap,pg_catalog;
SELECT is(
ins_flip(
'jrivers',
View
@@ -62,12 +62,13 @@ CREATE OR REPLACE FUNCTION mock.clock_timestamp(
SELECT '2010-07-19 11:01:03.306399+00'::timestamptz;
$$;
+SET search_path = mock,public,tap,pg_catalog;
+
SELECT ins_user('jrivers', '****');
SELECT is( COUNT(*)::int, 0, 'Should be no flips')
FROM flips;
-SET search_path = mock,public,tap,pg_catalog;
SELECT is(
ins_flip(
'jrivers',
View
@@ -62,12 +62,13 @@ CREATE OR REPLACE FUNCTION mock.clock_timestamp(
SELECT '2010-07-19 11:01:03.306399+00'::timestamptz;
$$;
+SET search_path = mock,public,tap,pg_catalog;
+
SELECT ins_user('jrivers', '****');
SELECT is( COUNT(*)::int, 0, 'Should be no flips')
FROM flips;
-SET search_path = mock,public,tap,pg_catalog;
SELECT is(
ins_flip(
'jrivers',
View
@@ -62,12 +62,13 @@ CREATE OR REPLACE FUNCTION mock.clock_timestamp(
SELECT '2010-07-19 11:01:03.306399+00'::timestamptz;
$$;
+SET search_path = mock,public,tap,pg_catalog;
+
SELECT ins_user('jrivers', '****');
SELECT is( COUNT(*)::int, 0, 'Should be no flips')
FROM flips;
-SET search_path = mock,public,tap,pg_catalog;
SELECT is(
ins_flip(
'jrivers',
View
@@ -62,12 +62,13 @@ CREATE OR REPLACE FUNCTION mock.clock_timestamp(
SELECT '2010-07-19 11:01:03.306399+00'::timestamptz;
$$;
+SET search_path = mock,public,tap,pg_catalog;
+
SELECT ins_user('jrivers', '****');
SELECT is( COUNT(*)::int, 0, 'Should be no flips')
FROM flips;
-SET search_path = mock,public,tap,pg_catalog;
SELECT is(
ins_flip(
'jrivers',

0 comments on commit 5a348e4

Please sign in to comment.