This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 19 files changed +18
-24
lines changed
dicomserver/database/mysql
remoteprocessing/database/mysql Expand file tree Collapse file tree 19 files changed +18
-24
lines changed Original file line number Diff line number Diff line change @@ -404,4 +404,4 @@ CREATE TABLE IF NOT EXISTS `feedpolicyuser` (
404
404
` policy` tinyint (4 ) NOT NULL ,
405
405
` date` timestamp NULL DEFAULT CURRENT_TIMESTAMP (),
406
406
UNIQUE KEY ` feed_id` (` feed_id` ,` user_id` )
407
- ) DEFAULT CHARSET= utf8;
407
+ ) DEFAULT CHARSET= utf8;
Original file line number Diff line number Diff line change @@ -380,4 +380,4 @@ CREATE TABLE feedpolicyuser (
380
380
user_id bigint NOT NULL ,
381
381
policy smallint NOT NULL ,
382
382
date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
383
- ) ;
383
+ ) ;
Original file line number Diff line number Diff line change @@ -442,5 +442,3 @@ CREATE TABLE user2group (
442
442
user_id bigint NOT NULL ,
443
443
group_id bigint NOT NULL
444
444
);
445
-
446
-
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function preUpgrade()
29
29
30
30
public function mysql ()
31
31
{
32
- $ this ->db ->query ("CREATE TABLE `newuserinvitation` (
32
+ $ this ->db ->query ("CREATE TABLE IF NOT EXISTS `newuserinvitation` (
33
33
`newuserinvitation_id` bigint(20) NOT NULL AUTO_INCREMENT,
34
34
`auth_key` varchar(255) NOT NULL,
35
35
`email` varchar(255) NOT NULL,
@@ -39,7 +39,7 @@ public function mysql()
39
39
`date_creation` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
40
40
PRIMARY KEY (`newuserinvitation_id`)
41
41
) " );
42
- $ this ->db ->query ("CREATE TABLE `pendinguser` (
42
+ $ this ->db ->query ("CREATE TABLE IF NOT EXISTS `pendinguser` (
43
43
`pendinguser_id` bigint(20) NOT NULL AUTO_INCREMENT,
44
44
`auth_key` varchar(255) NOT NULL,
45
45
`email` varchar(255) NOT NULL,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function mysql()
33
33
$ this ->db ->query ("ALTER TABLE `user` ADD COLUMN `salt` varchar(64) NOT NULL default '' " );
34
34
$ this ->db ->query ("ALTER TABLE `pendinguser` ADD COLUMN `salt` varchar(64) NOT NULL default '' " );
35
35
36
- $ this ->db ->query ("CREATE TABLE `password` (
36
+ $ this ->db ->query ("CREATE TABLE IF NOT EXISTS `password` (
37
37
`hash` varchar(128) NOT NULL,
38
38
PRIMARY KEY (`hash`)
39
39
) ENGINE=InnoDB DEFAULT CHARSET=utf8 " );
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public function preUpgrade()
149
149
public function mysql ()
150
150
{
151
151
// Create the license table
152
- $ this ->db ->query ("CREATE TABLE `license` (
152
+ $ this ->db ->query ("CREATE TABLE IF NOT EXISTS `license` (
153
153
`license_id` bigint(20) NOT NULL AUTO_INCREMENT,
154
154
`name` TEXT NOT NULL,
155
155
`fulltext` TEXT NOT NULL,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function preUpgrade()
30
30
31
31
public function mysql ()
32
32
{
33
- $ this ->db ->query ("CREATE TABLE `activedownload` (
33
+ $ this ->db ->query ("CREATE TABLE IF NOT EXISTS `activedownload` (
34
34
`activedownload_id` bigint(20) NOT NULL AUTO_INCREMENT,
35
35
`ip` varchar(100) NOT NULL DEFAULT '',
36
36
`date_creation` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function preUpgrade()
29
29
30
30
public function mysql ()
31
31
{
32
- $ this ->db ->query ("CREATE TABLE `progress` (
32
+ $ this ->db ->query ("CREATE TABLE IF NOT EXISTS `progress` (
33
33
`progress_id` bigint(20) NOT NULL AUTO_INCREMENT,
34
34
`message` TEXT NOT NULL,
35
35
`current` bigint(20) NOT NULL,
Original file line number Diff line number Diff line change @@ -28,4 +28,4 @@ CREATE TABLE IF NOT EXISTS condor_job (
28
28
error_filename text NOT NULL ,
29
29
log_filename text NOT NULL ,
30
30
PRIMARY KEY (condor_job_id)
31
- ) DEFAULT CHARSET= utf8;
31
+ ) DEFAULT CHARSET= utf8;
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ CREATE TABLE condor_job (
24
24
output_filename text NOT NULL ,
25
25
error_filename text NOT NULL ,
26
26
log_filename text NOT NULL
27
- );
27
+ );
You can’t perform that action at this time.
0 commit comments