Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Revert "Remove the 'ref_count' column from url and tag tables"

This reverts commit bee98f9.

I never intended to commit this to master.
  • Loading branch information...
commit eb0a0cb6acdc74110773499f1303945c959fa59c 1 parent bf10b6e
Oliver Charles authored
4 admin/sql/CreateTables.sql
@@ -1089,7 +1089,8 @@ CREATE TABLE statistic
1089 1089 CREATE TABLE tag
1090 1090 (
1091 1091 id SERIAL,
1092   - name VARCHAR(255) NOT NULL
  1092 + name VARCHAR(255) NOT NULL,
  1093 + ref_count INTEGER NOT NULL DEFAULT 0
1093 1094 );
1094 1095
1095 1096 CREATE TABLE tag_relation
@@ -1147,6 +1148,7 @@ CREATE TABLE url
1147 1148 gid UUID NOT NULL,
1148 1149 url TEXT NOT NULL,
1149 1150 description TEXT,
  1151 + ref_count INTEGER NOT NULL DEFAULT 0,
1150 1152 edits_pending INTEGER NOT NULL DEFAULT 0 CHECK (edits_pending >= 0),
1151 1153 last_updated TIMESTAMP WITH TIME ZONE DEFAULT NOW()
1152 1154 );
6 admin/sql/updates/20111212-remove-ref-count.sql
... ... @@ -1,6 +0,0 @@
1   -BEGIN;
2   -
3   -ALTER TABLE tag DROP COLUMN ref_count;
4   -ALTER TABLE url DROP COLUMN ref_count;
5   -
6   -COMMIT;

0 comments on commit eb0a0cb

Please sign in to comment.
Something went wrong with that request. Please try again.