]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate.sql
gpx rss and gpx cleanups
[rails.git] / db / migrate.sql
index 4638ba5a11b0aca294cbfc0b62678b3437b8e072..92ae6b1711a23f393e48940fd0d7e1948c886601 100644 (file)
@@ -15,9 +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 add column data longblob;
-alter table gpx_files add column mime_type varchar(255);
 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);