Skip to content

Commit d8a6b96

Browse files
jmhobbseschnou
authored andcommitted
Make the upgrade scripts harmless/error avoiding.
1 parent 7a12a56 commit d8a6b96

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

protected/install/database/update/001/plugin_foursquare.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SET @saved_cs_client = @@character_set_client;
22
SET character_set_client = utf8;
3-
CREATE TABLE `foursquare_data` (
3+
CREATE TABLE IF NOT EXISTS `foursquare_data` (
44
`id` int(10) unsigned NOT NULL auto_increment,
55
`source_id` int(10) unsigned NOT NULL,
66
`guid` varchar(255) NOT NULL,

protected/install/database/update/001/plugin_github.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
DROP TABLE IF EXISTS `github_data`;
1+
"""DROP TABLE IF EXISTS `github_data`;"""
22
SET @saved_cs_client = @@character_set_client;
33
SET character_set_client = utf8;
4-
CREATE TABLE `github_data` (
4+
CREATE TABLE IF NOT EXISTS `github_data` (
55
`id` int(10) unsigned NOT NULL auto_increment,
66
`source_id` int(10) unsigned NOT NULL,
77
`github_id` varchar(255) NOT NULL,

protected/install/database/update/001/plugin_gitorious.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SET @saved_cs_client = @@character_set_client;
22
SET character_set_client = utf8;
3-
CREATE TABLE `gitorious_data` (
3+
CREATE TABLE IF NOT EXISTS `gitorious_data` (
44
`id` int(10) unsigned NOT NULL auto_increment,
55
`source_id` int(10) unsigned NOT NULL,
66
`gitorious_id` varchar(255) NOT NULL,

protected/install/database/update/001/plugin_goodreads.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SET @saved_cs_client = @@character_set_client;
22
SET character_set_client = utf8;
3-
CREATE TABLE `goodreads_data` (
3+
CREATE TABLE IF NOT EXISTS `goodreads_data` (
44
`id` int(10) unsigned NOT NULL auto_increment,
55
`source_id` int(10) unsigned NOT NULL,
66
`guid` varchar(255) NOT NULL,

protected/install/database/update/001/plugin_googlebuzz.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SET @saved_cs_client = @@character_set_client;
22
SET character_set_client = utf8;
3-
CREATE TABLE `googlebuzz_data` (
3+
CREATE TABLE IF NOT EXISTS `googlebuzz_data` (
44
`id` int(10) unsigned NOT NULL auto_increment,
55
`source_id` int(10) unsigned NOT NULL,
66
`buzz_id` varchar(255) NOT NULL,

protected/install/database/update/001/shorturl.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SET @saved_cs_client = @@character_set_client;
22
SET character_set_client = utf8;
3-
CREATE TABLE `shortUrl` (
3+
CREATE TABLE IF NOT EXISTS `shortUrl` (
44
`user_id` int(11) NOT NULL,
55
`token` varchar(16) NOT NULL,
66
`url` varchar(256) NOT NULL,

0 commit comments

Comments
 (0)