bin/populate-lang-table, mason/pastebin/%show: Add Markdown support.
[odin-cgi] / sql / update-shorturl-v2.sql
CommitLineData
07cefc9f
MW
1/* -*-sql-*-
2 *
3 * Plain old SQL for setting up the tables for Odin web services.
4 */
5
6begin;
7alter table odin_shorturl rename column stamp to oldstamp;
8alter table odin_shorturl add column stamp bigint not null default 0;
9update odin_shorturl set stamp = extract(epoch from oldstamp);
10commit;
11
12begin;
13alter table odin_shorturl drop column oldstamp;
14alter table odin_shorturl alter column stamp drop default;
15commit;