Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] SQLite Altertable sem perder os registros guardados

Cara ve esse link a parte que fala de onUpgrade  
Att,



Renan Petronilho Sant´Anna


Em 22 de maio de 2013 17:27, Alex Baule <alexwbaule@gmail.com> escreveu:
Alter table nao dropa tudo... ele adiciona a coluna nova, normalmente.




2013/5/22 Geronildo Jr. <geronildojr@gmail.com>

Pessoal, boa tarde!

Tem como realizar uma alteração numa tabela de um App em produção sem perder os registros? Preciso acrescentar campos numa tabela, mas da vez que tentei, a tabela é deletada e gerada novamente (perdendo tudo). Alguém conhece um tutorial que me dê um norte? Desde já agradeço a ajuda!

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário