Commit edad95ef244a55628a4c147a63711a62700bfbcc
1 parent
7b9e9b04
Exists in
master
and in
1 other branch
- correção do banco de dados devido a erro em inclusão de tipos de software (#56 fixed)
git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@500 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
4 changed files
with
5 additions
and
3 deletions
Show diff stats
instalador/sql/cacic_create_tables.sql
... | ... | @@ -694,7 +694,7 @@ CREATE TABLE `tipos_licenca` ( |
694 | 694 | -- |
695 | 695 | |
696 | 696 | CREATE TABLE `tipos_software` ( |
697 | - `id_tipo_software` int(10) unsigned NOT NULL default '0', | |
697 | + `id_tipo_software` int(10) unsigned NOT NULL auto_increment, | |
698 | 698 | `te_descricao_tipo_software` varchar(30) NOT NULL default '', |
699 | 699 | PRIMARY KEY (`id_tipo_software`) |
700 | 700 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ... | ... |
instalador/sql/cacic_fev2006.sql
... | ... | @@ -200,7 +200,7 @@ CREATE TABLE tipos_licenca ( |
200 | 200 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
201 | 201 | |
202 | 202 | CREATE TABLE tipos_software ( |
203 | - id_tipo_software int(10) unsigned NOT NULL DEFAULT '0' COMMENT '', | |
203 | + id_tipo_software int(10) unsigned NOT NULL auto_increment, | |
204 | 204 | te_descricao_tipo_software varchar(30) NOT NULL DEFAULT '' COMMENT '', |
205 | 205 | PRIMARY KEY (id_tipo_software) |
206 | 206 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ... | ... |
instalador/sql/cacic_jun2005.sql
... | ... | @@ -207,7 +207,7 @@ CREATE TABLE tipos_licenca ( |
207 | 207 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
208 | 208 | |
209 | 209 | CREATE TABLE tipos_software ( |
210 | - id_tipo_software int(10) unsigned NOT NULL DEFAULT '0' COMMENT '', | |
210 | + id_tipo_software int(10) unsigned NOT NULL auto_increment, | |
211 | 211 | te_descricao_tipo_software varchar(30) NOT NULL DEFAULT '' COMMENT '', |
212 | 212 | PRIMARY KEY (id_tipo_software) |
213 | 213 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ... | ... |
instalador/sql/cacic_v2.2.2.sql
... | ... | @@ -113,6 +113,8 @@ ALTER TABLE unid_organizacional_nivel2 |
113 | 113 | ADD PRIMARY KEY (id_unid_organizacional_nivel2, id_unid_organizacional_nivel1a, id_local), |
114 | 114 | ENGINE=InnoDB CHARACTER SET=latin1; |
115 | 115 | |
116 | +ALTER TABLE tipos_software | |
117 | + MODIFY id_tipo_software int(10) unsigned NOT NULL auto_increment; | |
116 | 118 | |
117 | 119 | ALTER TABLE usuarios |
118 | 120 | ADD te_locais_secundarios varchar(200) NULL DEFAULT NULL COMMENT '' AFTER te_telefones_contato, | ... | ... |