2019-06-18.sql 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. delete from frame_dict where dict_name='OrgType' and dict_text='学服中心' and dict_value=5;
  2. insert into frame_dict (DICT_NAME, DICT_VALUE, DICT_TEXT, DICT_ORDER)
  3. values ('OrgType', '5', '衔接学校', '5');
  4. -- Create table
  5. create table pl_major_apply_join_school
  6. (
  7. id number(10) not null,
  8. apply_id number(10),
  9. join_school_id number(10)
  10. )
  11. ;
  12. -- Add comments to the table
  13. comment on table pl_major_apply_join_school
  14. is '申报专业-对应的衔接学校表';
  15. -- Add comments to the columns
  16. comment on column pl_major_apply_join_school.apply_id
  17. is '专业申报ID,和专业申报表关联';
  18. comment on column pl_major_apply_join_school.join_school_id
  19. is '衔接学校ID,和cf_organization表关联';
  20. -- Create/Recreate primary, unique and foreign key constraints
  21. alter table pl_major_apply_join_school
  22. add constraint PK_PL_MAJOR_APPLY_SCHOOL_ID primary key (ID);
  23. -- Create sequence
  24. create sequence SEQ_PL_MAJOR_APPLY_JOIN_SCHOOL
  25. minvalue 1
  26. maxvalue 9999999999999999999999999999
  27. start with 1
  28. increment by 1
  29. cache 20;