]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate.sql
gpx rss and gpx cleanups
[rails.git] / db / migrate.sql
index b6bc48135f4c95249fa19c7760f2ecc84e824a75..92ae6b1711a23f393e48940fd0d7e1948c886601 100644 (file)
@@ -15,3 +15,12 @@ alter table current_ways modify id bigint(64) not null auto_increment, add prima
 alter table current_way_tags change k k varchar(255) not null default '';
 alter table current_way_tags change v v varchar(255) not null default '';
 
+alter table gpx_files change private public boolean default 1 not null;
+update gpx_files set public = !public;
+
+alter table gpx_file_tags change sequence_id sequence_id int(11);
+alter table gpx_file_tags drop primary key;
+alter table gpx_file_tags drop column sequence_id;
+create index gpx_file_tags_gpxid_idx on gpx_file_tags(gpx_id);
+alter table gpx_file_tags add id int(20) auto_increment not null, add primary key(id);
+