Skip to content

Commit

Permalink
safari bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdingle committed Feb 25, 2009
1 parent 1647183 commit 5e4ba46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
2 changes: 2 additions & 0 deletions genetify/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ genetify.controls = {

reVary: function(geneType){
genetify.genome = {};
var URLData = window.location.hash.slice(1);
genetify.utils.update(genetify.genomeOverride, genetify.utils.fragmentToGenome(URLData));
genetify.vary(geneType);
// console.log(genetify.genome, genetifyTime.time.vary + 'ms');
//TODO: this does nothing until server updates vary counts
Expand Down
1 change: 0 additions & 1 deletion genetify/genetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ var genetify = {
}

// TODO: make this optional as speed optimization
genetify._checkCSS(['.v', '.genetify_enabled', '.genetify_disabled']);
genetify._addListener(window, 'onload', function(){
genetify._checkCSS(['.v', '.genetify_enabled', '.genetify_disabled']);
});
Expand Down
24 changes: 3 additions & 21 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
-- for MySQL
SET storage_engine=INNODB;

drop table if exists result;
drop table if exists stats_by_genome;
drop table if exists stats_by_variant;
drop table if exists goal;
drop table if exists pageview;
drop table if exists genome_variant_link;
Expand All @@ -15,6 +16,7 @@ drop table if exists error;
drop table if exists visitor;
drop table if exists page;
drop table if exists domain;

--
-- Table structure for table domain
--
Expand Down Expand Up @@ -157,24 +159,6 @@ CREATE TABLE variant (
);


--
-- Table structure for table result
--
CREATE TABLE result (
variant_id int NOT NULL,
domain_name varchar(255) NOT NULL,
page_name varchar(255) NOT NULL,
gene_name varchar(255) NOT NULL,
variant_name varchar(255) NOT NULL,
variant_count bigint,
variant_sum double precision,
variant_avg double precision,
variant_stddev double precision,
variant_share double precision,
variant_weight double precision,
UNIQUE (variant_id)
);

--
-- Table structure for table stats_by_variant
--
Expand Down Expand Up @@ -272,7 +256,5 @@ ALTER TABLE pageview ADD CONSTRAINT pageview_ibfk_4 FOREIGN KEY (genome_id) REFE

ALTER TABLE goal ADD CONSTRAINT goal_ibfk_1 FOREIGN KEY (pageview_xid) REFERENCES pageview (pageview_xid) ON DELETE CASCADE ON UPDATE CASCADE;

ALTER TABLE result ADD CONSTRAINT result_ibfk_1 FOREIGN KEY (variant_id) REFERENCES variant (variant_id) ON DELETE CASCADE ON UPDATE CASCADE;

ALTER TABLE stats_by_variant ADD CONSTRAINT stats_by_variant_ibfk_1 FOREIGN KEY (variant_id) REFERENCES variant (variant_id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE stats_by_genome ADD CONSTRAINT stats_by_genome_ibfk_1 FOREIGN KEY (genome_id) REFERENCES genome (genome_id) ON DELETE CASCADE ON UPDATE CASCADE;

0 comments on commit 5e4ba46

Please sign in to comment.