]> gitweb.michael.orlitzky.com - mailshears.git/commitdiff
Add missing principal stuff to the Davical fixtures.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 30 Oct 2015 03:37:54 +0000 (23:37 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 30 Oct 2015 03:37:54 +0000 (23:37 -0400)
test/sql/davical-fixtures.sql

index 775fa6b608f2710573f6591f94014267f2c3287a..5abf7a67b2dc5b83b6ea3e45dc4ecf713a1f43d8 100644 (file)
@@ -6,3 +6,11 @@ INSERT INTO usr (user_no, username) VALUES (17, 'alice@example.com');
  */
 INSERT INTO usr_setting (user_no, setting_name, setting_value)
   VALUES (17, 'dumb setting', 'its dumb value');
  */
 INSERT INTO usr_setting (user_no, setting_name, setting_value)
   VALUES (17, 'dumb setting', 'its dumb value');
+
+/* Create a "Person" principal type... */
+INSERT INTO principal_type (principal_type_id, principal_type_desc)
+  VALUES (1, 'Person');
+
+/* ...and assign it to the new user. */
+INSERT INTO principal (type_id, user_no, displayname, default_privileges)
+  VALUES (1, 17, 'Alice', '000000000001111000000000');