mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +01:00
a11b5e8bbc
Summary: Addon that allows you to create a live countdown page to some event. Here is the ticket that this code is based on https://secure.phabricator.com/T36 Test Plan: Tested by manually setting dates in the timer.js file and checking if they made sense. I'm not sure if it works across different timezones though. Reviewers: epriestley CC: Differential Revision: 436
16 lines
567 B
SQL
16 lines
567 B
SQL
CREATE DATABASE phabricator_countdown;
|
|
|
|
CREATE TABLE phabricator_countdown.countdown_timer (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
title VARCHAR(255) NOT NULL,
|
|
authorPHID VARCHAR(64) BINARY NOT NULL,
|
|
datepoint INT UNSIGNED NOT NULL,
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
dateModified INT UNSIGNED NOT NULL
|
|
);
|
|
|
|
INSERT INTO phabricator_directory.directory_item
|
|
(name, description, href, categoryID, sequence, dateCreated, dateModified)
|
|
VALUES
|
|
("Counterdown", "T-minus X to Y", "/countdown/", 5, 350,
|
|
UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|