Fossil

Diff
Login

Differences From Artifact [4bbb50a88a]:

To Artifact [c5b9268b4c]:


784
785
786
787
788
789
790
791
792


793
794
795
796


797
798
799
800


801
802
803
804
805
806
807
784
785
786
787
788
789
790


791
792
793
794


795
796
797
798


799
800
801
802
803
804
805
806
807







-
-
+
+


-
-
+
+


-
-
+
+







  /* If "islink"/"isLink" columns are missing from tables, then
  ** add them now.   This code added on 2011-01-17 and 2011-08-27.
  ** After all users have upgraded, this code can be safely deleted. 
  */
  if( !db_local_column_exists("vfile", "islink") )
    db_multi_exec("ALTER TABLE vfile ADD COLUMN islink BOOLEAN DEFAULT 0");
  
  if( db_local_table_exists("stashfile") && 
      !db_local_column_exists("stashfile", "isLink") )
  if( !db_local_column_exists("stashfile", "isLink") &&
       db_local_table_exists("stashfile") )
    db_multi_exec("ALTER TABLE stashfile ADD COLUMN isLink BOOLEAN DEFAULT 0");

  if( db_local_table_exists("undo") &&
      !db_local_column_exists("undo", "isLink") )
  if( !db_local_column_exists("undo", "isLink") &&
       db_local_table_exists("undo") )
    db_multi_exec("ALTER TABLE undo ADD COLUMN isLink BOOLEAN DEFAULT 0");
  
  if( db_local_table_exists("undo_vfile") && 
      !db_local_column_exists("undo_vfile", "islink") )
  if( !db_local_column_exists("undo_vfile", "islink") &&
       db_local_table_exists("undo_vfile") )
    db_multi_exec("ALTER TABLE undo_vfile ADD COLUMN islink BOOLEAN DEFAULT 0");

  return 1;
}

/*
** Locate the root directory of the local repository tree.  The root