Skip to content

Commit

Permalink
No action in migrator 210 for sqlite.
Browse files Browse the repository at this point in the history
  • Loading branch information
janowagner committed Jun 13, 2019
1 parent c80a983 commit 2911e65
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/manage_migrators.c
Original file line number Diff line number Diff line change
Expand Up @@ -1755,12 +1755,19 @@ migrate_209_to_210 ()
return -1;
}

/* Update the database. */
/* Do nothing when SQLite is used. During a later
* migration the columns will automatically be removed.
*/
if (! sql_is_sqlite3 ())
{

/* Remove the fields "bid" and "xref" from table "nvts". */
/* Update the database. */

sql ("ALTER TABLE IF EXISTS nvts DROP COLUMN bid CASCADE;");
sql ("ALTER TABLE IF EXISTS nvts DROP COLUMN xref CASCADE;");
/* Remove the fields "bid" and "xref" from table "nvts". */

sql ("ALTER TABLE IF EXISTS nvts DROP COLUMN bid CASCADE;");
sql ("ALTER TABLE IF EXISTS nvts DROP COLUMN xref CASCADE;");
}

/* Set the database version to 210. */

Expand Down

0 comments on commit 2911e65

Please sign in to comment.