Pastebin
Summary: This is Paste. It needs some work, but epriestley recommended that I just commit something that works, and expand on that later. Specifically, it lacks the ability to view a raw paste right now, and to turn off line numbers, making it hard to copy/paste from for now. It works for showing other people code, however. Test Plan: Pasted stuff, and was able to view it, and see it in the list on /paste/. Put a file extension in the title, and saw that syntax highlighting worked as expected. Reviewers: epriestley CC: Differential Revision: 424
This commit is contained in:
17
resources/sql/patches/043.pastebin.sql
Normal file
17
resources/sql/patches/043.pastebin.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
CREATE DATABASE phabricator_pastebin;
|
||||
|
||||
CREATE TABLE phabricator_pastebin.pastebin_paste (
|
||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
title VARCHAR(255) NOT NULL,
|
||||
phid VARCHAR(64) BINARY NOT NULL,
|
||||
authorPHID VARCHAR(64) BINARY NOT NULL,
|
||||
filePHID VARCHAR(64) BINARY 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
|
||||
("Paste", "Mmm... tasty, delicious paste.", "/paste/", 5, 150,
|
||||
UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
Reference in New Issue
Block a user