Skip to content

Commit

Permalink
FIX missing cake_sessions table on new install
Browse files Browse the repository at this point in the history
The cake_sessions table is used by the worker, on a fresh install, the
worker will crash due to it missing. I've added it to the database
create sql to fix this. Originally, it was meant to be created by
app/config/bootstrap.php as a sign of successful install, but the worker
gets up and running before that gets to run.

Fix a '>' appearing at the top of the page if no Google analytics is
confirmed. This is an extra > in the Google analytics script block.
  • Loading branch information
ionparticle committed Feb 7, 2025
1 parent a1db12b commit 29756a5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions app/config/sql/ipeer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1635,3 +1635,11 @@ CREATE TABLE IF NOT EXISTS `jobs` (
) ENGINE = InnoDB DEFAULT CHARSET=utf8;

SET foreign_key_checks = 1;

-- --------------------------------------------------------

CREATE TABLE IF NOT EXISTS `cake_sessions` (
`id` varchar(255) NOT NULL,
`data` text DEFAULT NULL,
`expires` int(11) DEFAULT NULL, PRIMARY KEY (`id`)
);
8 changes: 7 additions & 1 deletion app/config/sql/ipeer_samples_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2394,4 +2394,10 @@ CREATE TABLE IF NOT EXISTS `jobs` (

-- store course term
ALTER TABLE `courses` ADD COLUMN `term` VARCHAR(50) NULL DEFAULT NULL;
--- END: Added by DB upgrade to version 17
-- END: Added by DB upgrade to version 17

CREATE TABLE IF NOT EXISTS `cake_sessions` (
`id` varchar(255) NOT NULL,
`data` text DEFAULT NULL,
`expires` int(11) DEFAULT NULL, PRIMARY KEY (`id`)
);
2 changes: 1 addition & 1 deletion app/views/layouts/default.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
gtag('js', new Date());

gtag('config', '<?php echo $trackingId['SysParameter']['parameter_value']; ?>');
</script>>
</script>
<?php endif; ?>
</head>
<body>
Expand Down

0 comments on commit 29756a5

Please sign in to comment.