mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Allow databases to be created outside upgrade_schema scrpt.
Summary: Current scripts make it hard to administer Phabricator instance while not having direct (priviledged) access to the database. This change allows scenario where DB administrator creates the databases for you before you run update_schema script. Test Plan: Create the databases before running the update_schema script - it shouldn't complain that the databases already exist. Reviewers: aran, epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: 1014
This commit is contained in:
parent
9030f489cf
commit
cb0700a99c
8 changed files with 14 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
||||||
CREATE DATABASE phabricator_herald;
|
CREATE DATABASE IF NOT EXISTS phabricator_herald;
|
||||||
|
|
||||||
CREATE TABLE phabricator_herald.herald_action (
|
CREATE TABLE phabricator_herald.herald_action (
|
||||||
id int unsigned not null auto_increment primary key,
|
id int unsigned not null auto_increment primary key,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CREATE DATABASE phabricator_owners;
|
CREATE DATABASE IF NOT EXISTS phabricator_owners;
|
||||||
|
|
||||||
CREATE TABLE phabricator_owners.owners_package (
|
CREATE TABLE phabricator_owners.owners_package (
|
||||||
id int unsigned not null auto_increment primary key,
|
id int unsigned not null auto_increment primary key,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CREATE DATABASE phabricator_xhpastview;
|
CREATE DATABASE IF NOT EXISTS phabricator_xhpastview;
|
||||||
CREATE TABLE phabricator_xhpastview.xhpastview_parsetree (
|
CREATE TABLE phabricator_xhpastview.xhpastview_parsetree (
|
||||||
id int unsigned not null auto_increment primary key,
|
id int unsigned not null auto_increment primary key,
|
||||||
authorPHID varchar(64) binary,
|
authorPHID varchar(64) binary,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CREATE DATABASE phabricator_pastebin;
|
CREATE DATABASE IF NOT EXISTS phabricator_pastebin;
|
||||||
|
|
||||||
CREATE TABLE phabricator_pastebin.pastebin_paste (
|
CREATE TABLE phabricator_pastebin.pastebin_paste (
|
||||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CREATE DATABASE phabricator_countdown;
|
CREATE DATABASE IF NOT EXISTS phabricator_countdown;
|
||||||
|
|
||||||
CREATE TABLE phabricator_countdown.countdown_timer (
|
CREATE TABLE phabricator_countdown.countdown_timer (
|
||||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CREATE DATABASE phabricator_feed;
|
CREATE DATABASE IF NOT EXISTS phabricator_feed;
|
||||||
|
|
||||||
CREATE TABLE phabricator_feed.feed_storydata (
|
CREATE TABLE phabricator_feed.feed_storydata (
|
||||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CREATE DATABASE phabricator_slowvote;
|
CREATE DATABASE IF NOT EXISTS phabricator_slowvote;
|
||||||
|
|
||||||
CREATE TABLE phabricator_slowvote.slowvote_poll (
|
CREATE TABLE phabricator_slowvote.slowvote_poll (
|
||||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CREATE DATABASE phabricator_phriction;
|
CREATE DATABASE IF NOT EXISTS phabricator_phriction;
|
||||||
|
|
||||||
CREATE TABLE phabricator_phriction.phriction_document (
|
CREATE TABLE phabricator_phriction.phriction_document (
|
||||||
id INT UNSIGNED NOT NULL,
|
id INT UNSIGNED NOT NULL,
|
||||||
|
|
Loading…
Reference in a new issue