updating db version and adding migration for question column
This commit is contained in:
parent
88b9645be1
commit
0489dc39e0
@ -22,5 +22,5 @@ package org.isoron.uhabits.core;
|
|||||||
public class Config
|
public class Config
|
||||||
{
|
{
|
||||||
public static final String DATABASE_FILENAME = "uhabits.db";
|
public static final String DATABASE_FILENAME = "uhabits.db";
|
||||||
public static int DATABASE_VERSION = 22;
|
public static int DATABASE_VERSION = 23;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,5 @@
|
|||||||
|
alter table Habits add column question text;
|
||||||
|
|
||||||
|
update Habits set question = description
|
||||||
|
|
||||||
|
update Habits set description = null
|
||||||
Loading…
Reference in New Issue
Block a user