Skip to content

Commit

Permalink
Fix stupid bugs because last change wasn't tested
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorlf committed Apr 19, 2015
1 parent 257e64f commit dafc536
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 7 additions & 2 deletions Blog/sqls/update10.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,20 @@ USE `blog_db`;
--

ALTER TABLE `posts`
DROP CONSTRAINT `FK_posts_hosts`,
DROP FOREIGN KEY `FK_posts_hosts`,
DROP KEY `FK_posts_hosts`,
DROP COLUMN `host_id`;

ALTER TABLE `pages`
DROP CONSTRAINT `FK_pages_hosts`,
DROP FOREIGN KEY `FK_pages_hosts`,
DROP KEY `FK_pages_hosts`,
DROP COLUMN `host_id`;

ALTER TABLE `hosts`
DROP FOREIGN KEY `FK_hosts_themes`,
DROP KEY `FK_hosts_themes`,
DROP COLUMN `active_theme_id`;

DROP TABLE IF EXISTS `aliases`;
DROP TABLE IF EXISTS `themes`;
DROP TABLE IF EXISTS `authors_hosts`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ public class Preferences extends PersistentObject {
@Column(name="posts_per_index_page")
private Integer postsPerIndexPage;

@Basic
@Column(name="archive_items_per_index_page")
private Integer archiveEntriesPerIndexPage;

@Basic
@Column(name="popular_tags_per_index_page")
private Integer popularTagsPerIndexPage;

@Basic
@Column(name="feeds_max_post_age_in_days")
private Integer maxPostAgeInDaysForFeeds;
Expand Down

0 comments on commit dafc536

Please sign in to comment.