Advertisement
tmerry

Untitled

Jan 19th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. <changeSet id="20170118_00.16" author="tmerry">
  2.  
  3. <comment>
  4. create table pr_balancing16
  5. </comment>
  6.  
  7. <createSequence schemaName="public"
  8. sequenceName="pr_balancing16_cp_id_seq"/>
  9.  
  10. <sql>
  11. alter table public.pr_balancing15_cp_id_seq
  12. owner to postgres;
  13. </sql>
  14.  
  15. <sql>
  16. grant select, update on table
  17. public.pr_balancing16_cp_id_seq to public;
  18. </sql>
  19.  
  20. <sql>
  21. create table private.pr_balancing16 (
  22. cp_id integer primary care not null default
  23. nextval('public.pr_balancing16_cp_id_seq'::text),
  24. person_id integer,
  25. location_id integer,
  26. jobs_id integer,
  27. earn_rate_id integer, <!-- rate type -->
  28. rate numeric(10,4),
  29. first_pay integer,
  30. last_pay integer,
  31. number_of_pays integer,
  32. constraint pr_balancing16_person_id_fkey foreign key (person_id)
  33. references personid (person_id) match simple
  34. on update no action on delete no action,
  35. constraint pr_balancing16_jobs_id_fkey foreign key (jobs_id)
  36. references jobs (cp_id) match simple
  37. on update no action on delete no action,
  38. constraint pr_balancing16_earn_rate_id_fkey
  39. foreign key (earn_rate_id)
  40. references lk_earn_rate_code (cp_id) match simple
  41. on update no action on delete no action
  42. );
  43. </sql>
  44.  
  45. <sql>
  46. alter table private.pr_balancing16 own to veil_owner;
  47. </sql>
  48.  
  49. <sql>
  50. comment on table private.pr_balancing16 is
  51. 'i_have_global_priv(%s)';
  52. </sql>
  53.  
  54. </changeSet>
  55.  
  56. <changeSet id="20170118_01.16" author="tmerry">
  57.  
  58. <comment>
  59. create table pr_pay_balancing16
  60. </comment>
  61.  
  62. <createSequence schemaName="public"
  63. sequenceName="pr_pay_balancing16_cp_id_seq"/>
  64.  
  65. <sql>
  66. alter table public.pr_pay_balancing15_cp_id_seq
  67. owner to postgres;
  68. </sql>
  69.  
  70. <sql>
  71. grant select, update on table
  72. public.pr_pay_balancing16_cp_id_seq to public;
  73. </sql>
  74.  
  75. <sql>
  76. create table private.pr_pay_balancing16 (
  77. cp_id integer primary care not null default
  78. nextval('public.pr_pay_balancing16_cp_id_seq'::text),
  79. master_id integer,
  80. person_id integer,
  81. location_id integer,
  82. jobs_id integer,
  83. earn_rate_id integer, <!-- rate type -->
  84. rate numeric(10,4),
  85. first_pay integer,
  86. last_pay integer,
  87. number_of_pays,
  88. hours numeric(14,4),
  89. adjustment numeric(14.4,
  90. comment text,
  91. constraint pr_pay_balancing16_person_id_fkey
  92. foreign key (person_id)
  93. references personid (person_id) match simple
  94. on update no action on delete no action,
  95. constraint pr_pay_balancing16_person_id_fkey
  96. foreign key (person_id)
  97. references personid (person_id) match simple
  98. on update no action on delete no action,
  99. constraint pr_pay_balancing16_jobs_id_fkey
  100. foreign key (jobs_id)
  101. references jobs (cp_id) match simple
  102. on update no action on delete no action,
  103. constraint pr_pay_balancing16_earn_rate_id_fkey
  104. foreign key (earn_rate_id)
  105. references lk_earn_rate_code (cp_id) match simple
  106. on update no action on delete no action
  107. );
  108. </sql>
  109.  
  110. <sql>
  111. alter table private.pr_pay_balancing16 own to veil_owner;
  112. </sql>
  113.  
  114. <sql>
  115. comment on table private.pr_pay_balancing16 is
  116. 'i_have_global_priv(%s)';
  117. </sql>
  118.  
  119. </changeSet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement