Skip to content

Commit

Permalink
Remove the blog_path setting
Browse files Browse the repository at this point in the history
The `blog_path` setting is not used anywhere in the application,
and therefore should be considered obsolete.

This fixes #51.
  • Loading branch information
book committed Nov 26, 2015
1 parent f484a4d commit 90120aa
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion db_patches/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ CREATE TABLE IF NOT EXISTS `comment` (
CREATE TABLE IF NOT EXISTS `settings` (
`timezone` varchar(255) NOT NULL,
`social_media` tinyint(1) NOT NULL DEFAULT '1',
`blog_path` varchar(255) NOT NULL DEFAULT '/',
`theme_folder` varchar(255) NOT NULL,
`blog_name` varchar(255) NOT NULL,
`multiuser` tinyint(1) NOT NULL DEFAULT '0',
Expand Down
1 change: 0 additions & 1 deletion db_patches/set_up_new_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ DROP TABLE IF EXISTS `settings`;
CREATE TABLE `settings` (
`timezone` varchar(255) NOT NULL,
`social_media` tinyint(1) NOT NULL DEFAULT '1',
`blog_path` varchar(255) NOT NULL DEFAULT '/',
`theme_folder` varchar(255) NOT NULL,
`blog_name` varchar(255) NOT NULL,
`multiuser` tinyint(1) NOT NULL DEFAULT '0',
Expand Down
1 change: 0 additions & 1 deletion lib/PearlBee/Admin/Settings.pm
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ post '/admin/settings/save' => sub {
$settings = resultset('Setting')->first;

$settings->update({
blog_path => $path,
timezone => $timezone,
social_media => ($social_media ? '1' : '0'),
multiuser => ($multiuser ? '1' : '0'),
Expand Down
9 changes: 0 additions & 9 deletions lib/PearlBee/Model/Schema/Result/Setting.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ __PACKAGE__->table("settings");
default_value: 1
is_nullable: 0
=head2 blog_path
data_type: 'varchar'
default_value: '/'
is_nullable: 0
size: 255
=head2 theme_folder
data_type: 'varchar'
Expand Down Expand Up @@ -72,8 +65,6 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 255 },
"social_media",
{ data_type => "tinyint", default_value => 1, is_nullable => 0 },
"blog_path",
{ data_type => "varchar", default_value => "/", is_nullable => 0, size => 255 },
"theme_folder",
{ data_type => "varchar", is_nullable => 0, size => 255 },
"blog_name",
Expand Down

0 comments on commit 90120aa

Please sign in to comment.