Hi guys,
I'm trying to add a timestamp column and it wont let me,
the code is simple
the error is
is it not possible to add an automatic timestamp column ?
any other trick ?
thanks
I'm trying to add a timestamp column and it wont let me,
the code is simple
B4X:
SQL1.ExecNonQuery("ALTER TABLE alerts ADD COLUMN added_on TIMESTAMP NOT NULL DEFAULT current_timestamp")
the error is
B4X:
16:42:54 MNot:Failed to Upgrade DB to 0.92(92):(SQLiteException) android.database.sqlite.SQLiteException: Cannot add a column with non-constant default: ALTER TABLE alerts ADD COLUMN added_on TIMESTAMP NOT NULL DEFAULT current_timestamp
is it not possible to add an automatic timestamp column ?
any other trick ?
thanks