ATENÇÃO
Tabelas removidas
1. HABILITRECONHEC
2. PORTARIARECONHEC
Tabelas novas
3. NORMARECONHECHABILGR (vide anexo: VUgr - Visão de Replicação Padrão - Graduação.pdf)
Tabelas alteradas
4. HABILPROGGR
Inclusão de coluna
observacao-historico-escolar-ingles obshstescigl text null
Comentário que deve constar do Histórico escolar, em inglês.
5. OCUPTURMA
Alteração de coluna
data-final-ocupacao: dtafimocp: de smalldatetime not null para null
nnnnnullsmalldatetime null
/************************************************************************************/
/** **/
/** Sybase (ASE) **/
/** **/
/************************************************************************************/
/*-------------------------------------------------------------------------*/
alter table HABILPROGGR add obshstescigl text null
go
/*-------------------------------------------------------------------------*/
alter table OCUPTURMA modify dtafimocp smalldatetime null
go
/*-------------------------------------------------------------------------*/
create table NORMARECONHECHABILGR (
codbsenorgrd int not null
, codcurgrd int not null
, codhab smallint not null
, codclgcur smallint not null
, sglclgcur char(12) not null
, dtapubnorgrd smalldatetime not null
, dtafimvalnor smalldatetime null
, tippubnor varchar(255) null
, numnorgrd char(10) null
, orgrspnorgrd varchar(30) null
, dtaasinorgrd smalldatetime null
, obsnorgrd varchar(1000) null
, dtaencnorgrd smalldatetime null
, dtaatl smalldatetime null
, timestamp timestamp null
)
go
alter table NORMARECONHECHABILGR add constraint inxnormareconhechabilgr1
primary key nonclustered (codbsenorgrd,codcurgrd,codhab)
go
/*-------------------------------------------------------------------------*/
drop table HABILITRECONHEC
go
/*-------------------------------------------------------------------------*/
drop table PORTARIARECONHEC
go
/*-------------------------------------------------------------------------*/
/************************************************************************************/
/** **/
/** SQL Server (Microsoft) **/
/** **/
/************************************************************************************/
/*-------------------------------------------------------------------------*/
alter table HABILPROGGR add obshstescigl text null
go
/*-------------------------------------------------------------------------*/
alter table OCUPTURMA alter column dtafimocp smalldatetime null
go
/*-------------------------------------------------------------------------*/
create table NORMARECONHECHABILGR (
codbsenorgrd int not null
, codcurgrd int not null
, codhab smallint not null
, codclgcur smallint not null
, sglclgcur char(12) not null
, dtapubnorgrd smalldatetime not null
, dtafimvalnor smalldatetime null
, tippubnor varchar(255) null
, numnorgrd char(10) null
, orgrspnorgrd varchar(30) null
, dtaasinorgrd smalldatetime null
, obsnorgrd varchar(1000) null
, dtaencnorgrd smalldatetime null
, dtaatl smalldatetime null
, timestamp timestamp null
)
go
alter table NORMARECONHECHABILGR add constraint inxnormareconhechabilgr1
primary key nonclustered (codbsenorgrd,codcurgrd,codhab)
go
/*-------------------------------------------------------------------------*/
drop table HABILITRECONHEC
go
/*-------------------------------------------------------------------------*/
drop table PORTARIARECONHEC
go
/*-------------------------------------------------------------------------*/
/************************************************************************************/
/** **/
/** Anywhere (ASA) **/
/** **/
/************************************************************************************/
/*-------------------------------------------------------------------------*/
alter table HABILPROGGR add obshstescigl text null;
/*-------------------------------------------------------------------------*/
alter table OCUPTURMA modify dtafimocp smalldatetime null;
/*-------------------------------------------------------------------------*/
create table NORMARECONHECHABILGR (
codbsenorgrd int not null
, codcurgrd int not null
, codhab smallint not null
, codclgcur smallint not null
, sglclgcur char(12) not null
, dtapubnorgrd smalldatetime not null
, dtafimvalnor smalldatetime null
, tippubnor varchar(255) null
, numnorgrd char(10) null
, orgrspnorgrd varchar(30) null
, dtaasinorgrd smalldatetime null
, obsnorgrd varchar(1000) null
, dtaencnorgrd smalldatetime null
, dtaatl smalldatetime null
, timestamp timestamp null
);
alter table NORMARECONHECHABILGR add constraint inxnormareconhechabilgr1
primary key (codbsenorgrd,codcurgrd,codhab);
/*-------------------------------------------------------------------------*/
drop table HABILITRECONHEC;
/*-------------------------------------------------------------------------*/
drop table PORTARIARECONHEC;
/*-------------------------------------------------------------------------*/