Skip to content

Commit

Permalink
Code
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Mar 17, 2019
1 parent d4b41de commit b016b5e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/models/jsmgcalendarimport.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function import()
//$app->enqueueMessage(Text::_(__METHOD__.' '.__LINE__.' calList<br><pre>'.print_r($calList,true).'</pre>'),'Notice');

$tok = json_decode($token, true);

$app->enqueueMessage(Text::_(__METHOD__.' '.__LINE__.' tok<br><pre>'.print_r($tok,true).'</pre>'),'Notice');
foreach ($calList['items'] as $cal)
{
$app->enqueueMessage(Text::_(__METHOD__.' '.__LINE__.' getID<br><pre>'.print_r($cal['id'],true).'</pre>'),'Notice');
Expand Down
13 changes: 13 additions & 0 deletions admin/sql/install.mysql.utf8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1894,6 +1894,19 @@ CREATE TABLE IF NOT EXISTS `#__sportsmanagement_gcalendar` (
`color` text NOT NULL,
`access` tinyint UNSIGNED NOT NULL DEFAULT '1',
`access_content` tinyint UNSIGNED NOT NULL DEFAULT '1',
`params` text NOT NULL,
`language` char(7) NOT NULL DEFAULT '',
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by` int(10) unsigned NOT NULL DEFAULT '0',
`created_by_alias` varchar(255) NOT NULL DEFAULT '',
`version` int(10) unsigned NOT NULL DEFAULT '0',
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
`publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`title` varchar(255) NOT NULL DEFAULT '',
`alias` varchar(255) NOT NULL DEFAULT '',

PRIMARY KEY (`id`)
) ;

Expand Down
15 changes: 15 additions & 0 deletions admin/sql/updates/mysql/1.0.71.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `params` text NOT NULL;
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `language` char(7) NOT NULL DEFAULT '';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `created_by` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `created_by_alias` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `version` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `modified_by` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `title` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `#__sportsmanagement_gcalendar` ADD `alias` varchar(255) NOT NULL DEFAULT '';

INSERT INTO `#__sportsmanagement_version_history` (`id`, `date`, `text`, `version`) VALUES
(NULL, '2019-02-22', 'COM_SPORTSMANAGEMENT_DB_UPDATE_2019-03-17', '1.0.71');

0 comments on commit b016b5e

Please sign in to comment.