typo 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/controllers/admin/comments_controller.rb +1 -1
- data/app/controllers/admin/content_controller.rb +1 -3
- data/app/controllers/admin/feedback_controller.rb +36 -31
- data/app/controllers/admin/sidebar_controller.rb +13 -2
- data/app/controllers/admin/users_controller.rb +2 -1
- data/app/controllers/articles_controller.rb +10 -19
- data/app/controllers/xml_controller.rb +2 -2
- data/app/helpers/admin/base_helper.rb +7 -3
- data/app/helpers/application_helper.rb +2 -2
- data/app/helpers/articles_helper.rb +5 -4
- data/app/models/article.rb +16 -10
- data/app/models/blog.rb +4 -10
- data/app/models/comment.rb +17 -36
- data/app/models/content.rb +31 -53
- data/app/models/content_state/base.rb +46 -3
- data/app/models/content_state/draft.rb +2 -9
- data/app/models/content_state/ham.rb +31 -0
- data/app/models/content_state/just_marked_as_ham.rb +10 -0
- data/app/models/content_state/just_marked_as_spam.rb +23 -0
- data/app/models/content_state/just_presumed_ham.rb +37 -0
- data/app/models/content_state/just_published.rb +15 -8
- data/app/models/content_state/new.rb +3 -10
- data/app/models/content_state/presumed_ham.rb +27 -0
- data/app/models/content_state/presumed_spam.rb +31 -0
- data/app/models/content_state/publication_pending.rb +7 -9
- data/app/models/content_state/published.rb +10 -9
- data/app/models/content_state/spam.rb +23 -0
- data/app/models/content_state/unclassified.rb +29 -0
- data/app/models/content_state/withdrawn.rb +28 -0
- data/app/models/email_notifier.rb +0 -1
- data/app/models/feedback.rb +151 -0
- data/app/models/trackback.rb +22 -29
- data/app/views/admin/feedback/_item.rhtml +5 -5
- data/app/views/admin/feedback/list.rhtml +13 -11
- data/app/views/admin/general/index.rhtml +8 -4
- data/app/views/admin/users/show.rhtml +7 -1
- data/app/views/articles/read.rhtml +2 -2
- data/bin/typo +7 -6
- data/components/plugins/sidebars/recent_comments_controller.rb +1 -1
- data/config/environment.rb +2 -0
- data/db/migrate/046_fixup_forthcoming_publications.rb +1 -1
- data/db/migrate/048_remove_count_caching.rb +31 -0
- data/db/migrate/049_move_feedback_to_new_state_machine.rb +33 -0
- data/db/schema.mysql-v3.sql +3 -4
- data/db/schema.mysql.sql +3 -4
- data/db/schema.postgresql.sql +3 -4
- data/db/schema.rb +12 -17
- data/db/schema.sqlite.sql +3 -4
- data/db/schema.sqlserver.sql +3 -4
- data/db/schema_version +1 -1
- data/doc/Installer.txt +4 -0
- data/lib/jabber_notify.rb +6 -2
- data/lib/sidebars/plugin.rb +2 -1
- data/lib/tasks/release.rake +5 -4
- data/lib/typo_version.rb +1 -1
- data/public/stylesheets/administration.css +22 -2
- data/test/fixtures/blogs.yml +2 -0
- data/test/fixtures/contents.yml +7 -7
- data/test/functional/admin/users_controller_test.rb +3 -0
- data/test/functional/articles_controller_test.rb +16 -1
- data/test/mocks/test/xmlrpc_mock.rb +5 -4
- data/test/unit/article_test.rb +16 -4
- data/test/unit/comment_test.rb +57 -35
- data/test/unit/content_state/factory_test.rb +7 -6
- data/test/unit/ping_test.rb +14 -0
- data/test/unit/trackback_test.rb +16 -15
- metadata +26 -26
- data/config/database.yml-pgsql +0 -17
- data/config/database.yml.sqlite +0 -14
- data/config/mail.yml +0 -8
- data/config/mongrel.conf +0 -2
- data/db/converters/mt-import.rb +0 -72
- data/db/development_structure.sql +0 -691
- data/installer/rails-installer.rb +0 -527
- data/installer/rails-installer/commands.rb +0 -118
- data/installer/rails-installer/web-servers.rb +0 -110
- data/log/development.log-1 +0 -991
- data/log/development.log-2 +0 -422
- data/log/development.log-3 +0 -429
- data/log/development.log-4 +0 -174
- data/svk-commitP6cVv.tmp +0 -1
- data/vendor/ruby-mp3info/lib/mp3info.rb +0 -720
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: typo
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 4.0.
|
7
|
-
date: 2006-
|
6
|
+
version: 4.0.1
|
7
|
+
date: 2006-08-09 00:00:00 -07:00
|
8
8
|
summary: Modern weblog engine.
|
9
9
|
require_paths:
|
10
10
|
- .
|
@@ -25,12 +25,12 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
25
|
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
+
post_install_message:
|
28
29
|
authors:
|
29
30
|
- Tobias Luetke
|
30
31
|
files:
|
31
32
|
- app
|
32
33
|
- bin
|
33
|
-
- cache
|
34
34
|
- components
|
35
35
|
- config
|
36
36
|
- db
|
@@ -44,7 +44,6 @@ files:
|
|
44
44
|
- Rakefile
|
45
45
|
- README
|
46
46
|
- script
|
47
|
-
- svk-commitP6cVv.tmp
|
48
47
|
- test
|
49
48
|
- themes
|
50
49
|
- tmp
|
@@ -126,6 +125,7 @@ files:
|
|
126
125
|
- app/models/content_observer.rb
|
127
126
|
- app/models/content_state
|
128
127
|
- app/models/email_notifier.rb
|
128
|
+
- app/models/feedback.rb
|
129
129
|
- app/models/notification_mailer.rb
|
130
130
|
- app/models/page.rb
|
131
131
|
- app/models/page_cache.rb
|
@@ -153,11 +153,20 @@ files:
|
|
153
153
|
- app/models/content_state/base.rb
|
154
154
|
- app/models/content_state/draft.rb
|
155
155
|
- app/models/content_state/factory.rb
|
156
|
+
- app/models/content_state/ham.rb
|
157
|
+
- app/models/content_state/just_marked_as_ham.rb
|
158
|
+
- app/models/content_state/just_marked_as_spam.rb
|
159
|
+
- app/models/content_state/just_presumed_ham.rb
|
156
160
|
- app/models/content_state/just_published.rb
|
157
161
|
- app/models/content_state/new.rb
|
162
|
+
- app/models/content_state/presumed_ham.rb
|
163
|
+
- app/models/content_state/presumed_spam.rb
|
158
164
|
- app/models/content_state/publication_pending.rb
|
159
165
|
- app/models/content_state/published.rb
|
166
|
+
- app/models/content_state/spam.rb
|
160
167
|
- app/models/content_state/state
|
168
|
+
- app/models/content_state/unclassified.rb
|
169
|
+
- app/models/content_state/withdrawn.rb
|
161
170
|
- app/views/accounts
|
162
171
|
- app/views/admin
|
163
172
|
- app/views/articles
|
@@ -409,22 +418,17 @@ files:
|
|
409
418
|
- components/plugins/textfilters/textile_controller.rb
|
410
419
|
- components/sidebars/README
|
411
420
|
- config/boot.rb
|
412
|
-
- config/database.yml-pgsql
|
413
421
|
- config/database.yml.example
|
414
|
-
- config/database.yml.sqlite
|
415
422
|
- config/environment.rb
|
416
423
|
- config/environments
|
417
424
|
- config/iTunes.yml
|
418
425
|
- config/lighttpd.conf
|
419
|
-
- config/mail.yml
|
420
426
|
- config/mail.yml.example
|
421
|
-
- config/mongrel.conf
|
422
427
|
- config/routes.rb
|
423
428
|
- config/environments/development.rb
|
424
429
|
- config/environments/production.rb
|
425
430
|
- config/environments/test.rb
|
426
431
|
- db/converters
|
427
|
-
- db/development_structure.sql
|
428
432
|
- db/migrate
|
429
433
|
- db/schema.mysql-v3.sql
|
430
434
|
- db/schema.mysql.sql
|
@@ -436,7 +440,6 @@ files:
|
|
436
440
|
- db/scripts
|
437
441
|
- db/updates
|
438
442
|
- db/converters/feed.rb
|
439
|
-
- db/converters/mt-import.rb
|
440
443
|
- db/converters/mt3.rb
|
441
444
|
- db/converters/README
|
442
445
|
- db/converters/rss.rb
|
@@ -491,6 +494,8 @@ files:
|
|
491
494
|
- db/migrate/045_fix_contents_published_default.rb
|
492
495
|
- db/migrate/046_fixup_forthcoming_publications.rb
|
493
496
|
- db/migrate/047_add_content_state_field.rb
|
497
|
+
- db/migrate/048_remove_count_caching.rb
|
498
|
+
- db/migrate/049_move_feedback_to_new_state_machine.rb
|
494
499
|
- db/scripts/fix_permalinks.rb
|
495
500
|
- db/updates/update.168.to.200.mysql.sql
|
496
501
|
- db/updates/update.168.to.200.psql.sql
|
@@ -499,11 +504,7 @@ files:
|
|
499
504
|
- installer/apache13.conf.example.template
|
500
505
|
- installer/apache20.conf.example.template
|
501
506
|
- installer/lighttpd.conf.example.template
|
502
|
-
- installer/rails-installer
|
503
|
-
- installer/rails-installer.rb
|
504
507
|
- installer/rails_installer_defaults.yml
|
505
|
-
- installer/rails-installer/commands.rb
|
506
|
-
- installer/rails-installer/web-servers.rb
|
507
508
|
- lib/backpack_api.rb
|
508
509
|
- lib/bare_migration.rb
|
509
510
|
- lib/email_notify.rb
|
@@ -539,11 +540,6 @@ files:
|
|
539
540
|
- lib/tasks/release.rake
|
540
541
|
- lib/tasks/schemas.rake
|
541
542
|
- lib/tasks/sweep_cache.rake
|
542
|
-
- log/development.log-1
|
543
|
-
- log/development.log-2
|
544
|
-
- log/development.log-3
|
545
|
-
- log/development.log-4
|
546
|
-
- log/mongrel_debug
|
547
543
|
- public/.htaccess
|
548
544
|
- public/404.html
|
549
545
|
- public/500.html
|
@@ -552,7 +548,6 @@ files:
|
|
552
548
|
- public/dispatch.rb
|
553
549
|
- public/favicon.ico
|
554
550
|
- public/images
|
555
|
-
- public/javascript
|
556
551
|
- public/javascripts
|
557
552
|
- public/robots.txt
|
558
553
|
- public/stylesheets
|
@@ -590,7 +585,6 @@ files:
|
|
590
585
|
- public/images/admin/h-tile.gif
|
591
586
|
- public/images/admin/hdr-tile.gif
|
592
587
|
- public/images/admin/toggle.gif
|
593
|
-
- public/javascript/theme
|
594
588
|
- public/javascripts/application.js
|
595
589
|
- public/javascripts/controls.js
|
596
590
|
- public/javascripts/cookies.js
|
@@ -781,7 +775,6 @@ files:
|
|
781
775
|
- vendor/jabber4r
|
782
776
|
- vendor/plugins
|
783
777
|
- vendor/redcloth
|
784
|
-
- vendor/ruby-mp3info
|
785
778
|
- vendor/rubypants
|
786
779
|
- vendor/sparklines
|
787
780
|
- vendor/syntax
|
@@ -873,8 +866,6 @@ files:
|
|
873
866
|
- vendor/redcloth/tests/poignant.yml
|
874
867
|
- vendor/redcloth/tests/table.yml
|
875
868
|
- vendor/redcloth/tests/textism.yml
|
876
|
-
- vendor/ruby-mp3info/lib
|
877
|
-
- vendor/ruby-mp3info/lib/mp3info.rb
|
878
869
|
- vendor/rubypants/html
|
879
870
|
- vendor/rubypants/install.rb
|
880
871
|
- vendor/rubypants/Rakefile
|
@@ -1022,7 +1013,7 @@ dependencies:
|
|
1022
1013
|
requirements:
|
1023
1014
|
- - "="
|
1024
1015
|
- !ruby/object:Gem::Version
|
1025
|
-
version: 1.1.
|
1016
|
+
version: 1.1.5
|
1026
1017
|
version:
|
1027
1018
|
- !ruby/object:Gem::Dependency
|
1028
1019
|
name: mongrel
|
@@ -1051,3 +1042,12 @@ dependencies:
|
|
1051
1042
|
- !ruby/object:Gem::Version
|
1052
1043
|
version: 1.1.0
|
1053
1044
|
version:
|
1045
|
+
- !ruby/object:Gem::Dependency
|
1046
|
+
name: rails-app-installer
|
1047
|
+
version_requirement:
|
1048
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
1049
|
+
requirements:
|
1050
|
+
- - ">="
|
1051
|
+
- !ruby/object:Gem::Version
|
1052
|
+
version: 0.1.1
|
1053
|
+
version:
|
data/config/database.yml-pgsql
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
login: &login
|
2
|
-
adapter: postgresql
|
3
|
-
host: localhost
|
4
|
-
username: typo
|
5
|
-
|
6
|
-
development:
|
7
|
-
database: typo_foo
|
8
|
-
database: typo_trunk_dev
|
9
|
-
<<: *login
|
10
|
-
|
11
|
-
test:
|
12
|
-
database: typo_trunk_tests
|
13
|
-
<<: *login
|
14
|
-
|
15
|
-
production:
|
16
|
-
database: typo_trunk_dev
|
17
|
-
<<: *login
|
data/config/database.yml.sqlite
DELETED
data/config/mail.yml
DELETED
data/config/mongrel.conf
DELETED
data/db/converters/mt-import.rb
DELETED
@@ -1,72 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# MovableType export-file importer for typo by Scott Laird <scott@sigkill.org>
|
4
|
-
#
|
5
|
-
# MAKE BACKUPS OF EVERYTHING BEFORE RUNNING THIS SCRIPT!
|
6
|
-
# THIS SCRIPT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
|
7
|
-
|
8
|
-
require File.dirname(__FILE__) + '/../../config/environment'
|
9
|
-
|
10
|
-
def import_comment(article, c, filter)
|
11
|
-
comment = Comment.new
|
12
|
-
article.comments << comment
|
13
|
-
comment.ip = c[:ip]
|
14
|
-
comment.body = c[:comment].to_s
|
15
|
-
comment.author = c[:author]
|
16
|
-
comment.email = c[:email]
|
17
|
-
comment.url = c[:url]
|
18
|
-
comment.created_at = c[:date]
|
19
|
-
comment.text_filter = filter
|
20
|
-
comment.published = true
|
21
|
-
comment.save
|
22
|
-
end
|
23
|
-
|
24
|
-
def get_user(name)
|
25
|
-
User.find_by_name(name) || User.create(:name => name, :password => 'foobar')
|
26
|
-
end
|
27
|
-
|
28
|
-
def get_category(name)
|
29
|
-
Category.find_by_name(name) || Category.create(:name => name)
|
30
|
-
end
|
31
|
-
|
32
|
-
file = ARGV[0]
|
33
|
-
data = File.read(file)
|
34
|
-
|
35
|
-
STDERR.puts "Read #{data.size} bytes from #{file}"
|
36
|
-
|
37
|
-
import = eval(data)
|
38
|
-
filter = TextFilter.find_by_name('markdown smartypants')
|
39
|
-
|
40
|
-
STDERR.puts "Extracted #{import.size} entries"
|
41
|
-
|
42
|
-
import.each do |a|
|
43
|
-
STDERR.puts "Working with article '#{a[:title]}'"
|
44
|
-
# STDERR.puts YAML.dump(a)
|
45
|
-
article = Article.new
|
46
|
-
article.title = a[:title]
|
47
|
-
article.keywords = a[:keywords]
|
48
|
-
article.allow_comments = a[:allow_comments] == '1'
|
49
|
-
article.allow_pings = a[:allow_pings] == '1'
|
50
|
-
article.created_at = a[:date]
|
51
|
-
article.excerpt = a[:excerpt]
|
52
|
-
article.body = a[:body].to_s
|
53
|
-
article.extended = a[:extended_body].to_s
|
54
|
-
article.published = a[:status] == 'Publish'
|
55
|
-
article.text_filter = filter
|
56
|
-
article.author = a[:author]
|
57
|
-
article.user = get_user(a[:author])
|
58
|
-
article.save
|
59
|
-
|
60
|
-
if a[:comment].kind_of? Hash
|
61
|
-
import_comment(article,a[:comment],filter)
|
62
|
-
article.comments_count = 1
|
63
|
-
elsif a[:comment].kind_of? Array
|
64
|
-
a[:comment].each do |c|
|
65
|
-
import_comment(article,c,filter)
|
66
|
-
end
|
67
|
-
article.comments_count = a[:comment].size
|
68
|
-
end
|
69
|
-
|
70
|
-
a[:category].to_a.each {|category| article.categories << get_category(category)}
|
71
|
-
article.save
|
72
|
-
end
|
@@ -1,691 +0,0 @@
|
|
1
|
-
--
|
2
|
-
-- PostgreSQL database dump
|
3
|
-
--
|
4
|
-
|
5
|
-
SET client_encoding = 'SQL_ASCII';
|
6
|
-
SET check_function_bodies = false;
|
7
|
-
SET client_min_messages = warning;
|
8
|
-
|
9
|
-
--
|
10
|
-
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: salaird
|
11
|
-
--
|
12
|
-
|
13
|
-
COMMENT ON SCHEMA public IS 'Standard public schema';
|
14
|
-
|
15
|
-
|
16
|
-
SET search_path = public, pg_catalog;
|
17
|
-
|
18
|
-
SET default_tablespace = '';
|
19
|
-
|
20
|
-
SET default_with_oids = false;
|
21
|
-
|
22
|
-
--
|
23
|
-
-- Name: articles_categories; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
24
|
-
--
|
25
|
-
|
26
|
-
CREATE TABLE articles_categories (
|
27
|
-
article_id integer,
|
28
|
-
category_id integer,
|
29
|
-
primary_item integer
|
30
|
-
);
|
31
|
-
|
32
|
-
|
33
|
-
--
|
34
|
-
-- Name: articles_tags; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
35
|
-
--
|
36
|
-
|
37
|
-
CREATE TABLE articles_tags (
|
38
|
-
article_id integer,
|
39
|
-
tag_id integer
|
40
|
-
);
|
41
|
-
|
42
|
-
|
43
|
-
--
|
44
|
-
-- Name: blacklist_patterns; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
45
|
-
--
|
46
|
-
|
47
|
-
CREATE TABLE blacklist_patterns (
|
48
|
-
id serial NOT NULL,
|
49
|
-
"type" character varying(15),
|
50
|
-
pattern character varying(255)
|
51
|
-
);
|
52
|
-
|
53
|
-
|
54
|
-
--
|
55
|
-
-- Name: blogs; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
56
|
-
--
|
57
|
-
|
58
|
-
CREATE TABLE blogs (
|
59
|
-
id serial NOT NULL,
|
60
|
-
settings text
|
61
|
-
);
|
62
|
-
|
63
|
-
|
64
|
-
--
|
65
|
-
-- Name: categories; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
66
|
-
--
|
67
|
-
|
68
|
-
CREATE TABLE categories (
|
69
|
-
id serial NOT NULL,
|
70
|
-
name character varying(255),
|
71
|
-
"position" integer DEFAULT 0 NOT NULL,
|
72
|
-
is_primary integer,
|
73
|
-
permalink character varying(255)
|
74
|
-
);
|
75
|
-
|
76
|
-
|
77
|
-
--
|
78
|
-
-- Name: contents; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
79
|
-
--
|
80
|
-
|
81
|
-
CREATE TABLE contents (
|
82
|
-
id serial NOT NULL,
|
83
|
-
title character varying(255),
|
84
|
-
author character varying(255),
|
85
|
-
body text,
|
86
|
-
body_html text,
|
87
|
-
extended text,
|
88
|
-
excerpt text,
|
89
|
-
keywords character varying(255),
|
90
|
-
created_at timestamp without time zone,
|
91
|
-
updated_at timestamp without time zone,
|
92
|
-
extended_html text,
|
93
|
-
user_id integer,
|
94
|
-
permalink character varying(255),
|
95
|
-
guid character varying(255),
|
96
|
-
text_filter_id integer,
|
97
|
-
whiteboard text,
|
98
|
-
comments_count integer,
|
99
|
-
trackbacks_count integer,
|
100
|
-
"type" character varying(255),
|
101
|
-
article_id integer,
|
102
|
-
email character varying(255),
|
103
|
-
url character varying(255),
|
104
|
-
ip character varying(255),
|
105
|
-
blog_name character varying(255),
|
106
|
-
name character varying(255),
|
107
|
-
published boolean DEFAULT true,
|
108
|
-
allow_pings boolean,
|
109
|
-
allow_comments boolean,
|
110
|
-
blog_id integer
|
111
|
-
);
|
112
|
-
|
113
|
-
|
114
|
-
--
|
115
|
-
-- Name: mt_author_id; Type: SEQUENCE; Schema: public; Owner: typo
|
116
|
-
--
|
117
|
-
|
118
|
-
CREATE SEQUENCE mt_author_id
|
119
|
-
START WITH 1
|
120
|
-
INCREMENT BY 1
|
121
|
-
NO MAXVALUE
|
122
|
-
NO MINVALUE
|
123
|
-
CACHE 1;
|
124
|
-
|
125
|
-
|
126
|
-
--
|
127
|
-
-- Name: mt_blog_id; Type: SEQUENCE; Schema: public; Owner: typo
|
128
|
-
--
|
129
|
-
|
130
|
-
CREATE SEQUENCE mt_blog_id
|
131
|
-
START WITH 1
|
132
|
-
INCREMENT BY 1
|
133
|
-
NO MAXVALUE
|
134
|
-
NO MINVALUE
|
135
|
-
CACHE 1;
|
136
|
-
|
137
|
-
|
138
|
-
--
|
139
|
-
-- Name: mt_category_id; Type: SEQUENCE; Schema: public; Owner: typo
|
140
|
-
--
|
141
|
-
|
142
|
-
CREATE SEQUENCE mt_category_id
|
143
|
-
START WITH 1
|
144
|
-
INCREMENT BY 1
|
145
|
-
NO MAXVALUE
|
146
|
-
NO MINVALUE
|
147
|
-
CACHE 1;
|
148
|
-
|
149
|
-
|
150
|
-
--
|
151
|
-
-- Name: mt_comment_id; Type: SEQUENCE; Schema: public; Owner: typo
|
152
|
-
--
|
153
|
-
|
154
|
-
CREATE SEQUENCE mt_comment_id
|
155
|
-
INCREMENT BY 1
|
156
|
-
NO MAXVALUE
|
157
|
-
NO MINVALUE
|
158
|
-
CACHE 1;
|
159
|
-
|
160
|
-
|
161
|
-
--
|
162
|
-
-- Name: mt_entry_id; Type: SEQUENCE; Schema: public; Owner: typo
|
163
|
-
--
|
164
|
-
|
165
|
-
CREATE SEQUENCE mt_entry_id
|
166
|
-
INCREMENT BY 1
|
167
|
-
NO MAXVALUE
|
168
|
-
NO MINVALUE
|
169
|
-
CACHE 1;
|
170
|
-
|
171
|
-
|
172
|
-
--
|
173
|
-
-- Name: mt_ext_bl_group_id; Type: SEQUENCE; Schema: public; Owner: typo
|
174
|
-
--
|
175
|
-
|
176
|
-
CREATE SEQUENCE mt_ext_bl_group_id
|
177
|
-
INCREMENT BY 1
|
178
|
-
NO MAXVALUE
|
179
|
-
NO MINVALUE
|
180
|
-
CACHE 1;
|
181
|
-
|
182
|
-
|
183
|
-
--
|
184
|
-
-- Name: mt_ext_bl_groupmap_id; Type: SEQUENCE; Schema: public; Owner: typo
|
185
|
-
--
|
186
|
-
|
187
|
-
CREATE SEQUENCE mt_ext_bl_groupmap_id
|
188
|
-
INCREMENT BY 1
|
189
|
-
NO MAXVALUE
|
190
|
-
NO MINVALUE
|
191
|
-
CACHE 1;
|
192
|
-
|
193
|
-
|
194
|
-
--
|
195
|
-
-- Name: mt_ext_bl_item_id; Type: SEQUENCE; Schema: public; Owner: typo
|
196
|
-
--
|
197
|
-
|
198
|
-
CREATE SEQUENCE mt_ext_bl_item_id
|
199
|
-
INCREMENT BY 1
|
200
|
-
NO MAXVALUE
|
201
|
-
NO MINVALUE
|
202
|
-
CACHE 1;
|
203
|
-
|
204
|
-
|
205
|
-
--
|
206
|
-
-- Name: mt_ext_bl_log_id; Type: SEQUENCE; Schema: public; Owner: typo
|
207
|
-
--
|
208
|
-
|
209
|
-
CREATE SEQUENCE mt_ext_bl_log_id
|
210
|
-
INCREMENT BY 1
|
211
|
-
NO MAXVALUE
|
212
|
-
NO MINVALUE
|
213
|
-
CACHE 1;
|
214
|
-
|
215
|
-
|
216
|
-
--
|
217
|
-
-- Name: mt_ext_bl_permission_id; Type: SEQUENCE; Schema: public; Owner: typo
|
218
|
-
--
|
219
|
-
|
220
|
-
CREATE SEQUENCE mt_ext_bl_permission_id
|
221
|
-
INCREMENT BY 1
|
222
|
-
NO MAXVALUE
|
223
|
-
NO MINVALUE
|
224
|
-
CACHE 1;
|
225
|
-
|
226
|
-
|
227
|
-
--
|
228
|
-
-- Name: mt_ext_bl_source_id; Type: SEQUENCE; Schema: public; Owner: typo
|
229
|
-
--
|
230
|
-
|
231
|
-
CREATE SEQUENCE mt_ext_bl_source_id
|
232
|
-
START WITH 1
|
233
|
-
INCREMENT BY 1
|
234
|
-
NO MAXVALUE
|
235
|
-
NO MINVALUE
|
236
|
-
CACHE 1;
|
237
|
-
|
238
|
-
|
239
|
-
--
|
240
|
-
-- Name: mt_ext_bl_update_id; Type: SEQUENCE; Schema: public; Owner: typo
|
241
|
-
--
|
242
|
-
|
243
|
-
CREATE SEQUENCE mt_ext_bl_update_id
|
244
|
-
START WITH 1
|
245
|
-
INCREMENT BY 1
|
246
|
-
NO MAXVALUE
|
247
|
-
NO MINVALUE
|
248
|
-
CACHE 1;
|
249
|
-
|
250
|
-
|
251
|
-
--
|
252
|
-
-- Name: mt_fileinfo_id; Type: SEQUENCE; Schema: public; Owner: typo
|
253
|
-
--
|
254
|
-
|
255
|
-
CREATE SEQUENCE mt_fileinfo_id
|
256
|
-
START WITH 1
|
257
|
-
INCREMENT BY 1
|
258
|
-
NO MAXVALUE
|
259
|
-
NO MINVALUE
|
260
|
-
CACHE 1;
|
261
|
-
|
262
|
-
|
263
|
-
--
|
264
|
-
-- Name: mt_ipbanlist_id; Type: SEQUENCE; Schema: public; Owner: typo
|
265
|
-
--
|
266
|
-
|
267
|
-
CREATE SEQUENCE mt_ipbanlist_id
|
268
|
-
START WITH 1
|
269
|
-
INCREMENT BY 1
|
270
|
-
NO MAXVALUE
|
271
|
-
NO MINVALUE
|
272
|
-
CACHE 1;
|
273
|
-
|
274
|
-
|
275
|
-
--
|
276
|
-
-- Name: mt_log_id; Type: SEQUENCE; Schema: public; Owner: typo
|
277
|
-
--
|
278
|
-
|
279
|
-
CREATE SEQUENCE mt_log_id
|
280
|
-
INCREMENT BY 1
|
281
|
-
NO MAXVALUE
|
282
|
-
NO MINVALUE
|
283
|
-
CACHE 1;
|
284
|
-
|
285
|
-
|
286
|
-
--
|
287
|
-
-- Name: mt_notification_id; Type: SEQUENCE; Schema: public; Owner: typo
|
288
|
-
--
|
289
|
-
|
290
|
-
CREATE SEQUENCE mt_notification_id
|
291
|
-
START WITH 1
|
292
|
-
INCREMENT BY 1
|
293
|
-
NO MAXVALUE
|
294
|
-
NO MINVALUE
|
295
|
-
CACHE 1;
|
296
|
-
|
297
|
-
|
298
|
-
--
|
299
|
-
-- Name: mt_permission_id; Type: SEQUENCE; Schema: public; Owner: typo
|
300
|
-
--
|
301
|
-
|
302
|
-
CREATE SEQUENCE mt_permission_id
|
303
|
-
START WITH 1
|
304
|
-
INCREMENT BY 1
|
305
|
-
NO MAXVALUE
|
306
|
-
NO MINVALUE
|
307
|
-
CACHE 1;
|
308
|
-
|
309
|
-
|
310
|
-
--
|
311
|
-
-- Name: mt_placement_id; Type: SEQUENCE; Schema: public; Owner: typo
|
312
|
-
--
|
313
|
-
|
314
|
-
CREATE SEQUENCE mt_placement_id
|
315
|
-
INCREMENT BY 1
|
316
|
-
NO MAXVALUE
|
317
|
-
NO MINVALUE
|
318
|
-
CACHE 1;
|
319
|
-
|
320
|
-
|
321
|
-
--
|
322
|
-
-- Name: mt_plugindata_id; Type: SEQUENCE; Schema: public; Owner: typo
|
323
|
-
--
|
324
|
-
|
325
|
-
CREATE SEQUENCE mt_plugindata_id
|
326
|
-
INCREMENT BY 1
|
327
|
-
NO MAXVALUE
|
328
|
-
NO MINVALUE
|
329
|
-
CACHE 1;
|
330
|
-
|
331
|
-
|
332
|
-
--
|
333
|
-
-- Name: mt_tbping_id; Type: SEQUENCE; Schema: public; Owner: typo
|
334
|
-
--
|
335
|
-
|
336
|
-
CREATE SEQUENCE mt_tbping_id
|
337
|
-
INCREMENT BY 1
|
338
|
-
NO MAXVALUE
|
339
|
-
NO MINVALUE
|
340
|
-
CACHE 1;
|
341
|
-
|
342
|
-
|
343
|
-
--
|
344
|
-
-- Name: mt_template_id; Type: SEQUENCE; Schema: public; Owner: typo
|
345
|
-
--
|
346
|
-
|
347
|
-
CREATE SEQUENCE mt_template_id
|
348
|
-
INCREMENT BY 1
|
349
|
-
NO MAXVALUE
|
350
|
-
NO MINVALUE
|
351
|
-
CACHE 1;
|
352
|
-
|
353
|
-
|
354
|
-
--
|
355
|
-
-- Name: mt_templatemap_id; Type: SEQUENCE; Schema: public; Owner: typo
|
356
|
-
--
|
357
|
-
|
358
|
-
CREATE SEQUENCE mt_templatemap_id
|
359
|
-
INCREMENT BY 1
|
360
|
-
NO MAXVALUE
|
361
|
-
NO MINVALUE
|
362
|
-
CACHE 1;
|
363
|
-
|
364
|
-
|
365
|
-
--
|
366
|
-
-- Name: mt_trackback_id; Type: SEQUENCE; Schema: public; Owner: typo
|
367
|
-
--
|
368
|
-
|
369
|
-
CREATE SEQUENCE mt_trackback_id
|
370
|
-
INCREMENT BY 1
|
371
|
-
NO MAXVALUE
|
372
|
-
NO MINVALUE
|
373
|
-
CACHE 1;
|
374
|
-
|
375
|
-
|
376
|
-
--
|
377
|
-
-- Name: notifications; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
378
|
-
--
|
379
|
-
|
380
|
-
CREATE TABLE notifications (
|
381
|
-
notify_user_id integer,
|
382
|
-
notify_content_id integer,
|
383
|
-
created_at timestamp without time zone,
|
384
|
-
updated_at timestamp without time zone
|
385
|
-
);
|
386
|
-
|
387
|
-
|
388
|
-
--
|
389
|
-
-- Name: page_caches; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
390
|
-
--
|
391
|
-
|
392
|
-
CREATE TABLE page_caches (
|
393
|
-
id serial NOT NULL,
|
394
|
-
name character varying(255)
|
395
|
-
);
|
396
|
-
|
397
|
-
|
398
|
-
--
|
399
|
-
-- Name: pings; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
400
|
-
--
|
401
|
-
|
402
|
-
CREATE TABLE pings (
|
403
|
-
id serial NOT NULL,
|
404
|
-
article_id integer NOT NULL,
|
405
|
-
url character varying(255),
|
406
|
-
created_at timestamp without time zone DEFAULT now()
|
407
|
-
);
|
408
|
-
|
409
|
-
|
410
|
-
--
|
411
|
-
-- Name: redirects; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
412
|
-
--
|
413
|
-
|
414
|
-
CREATE TABLE redirects (
|
415
|
-
id serial NOT NULL,
|
416
|
-
from_path character varying(255),
|
417
|
-
to_path character varying(255)
|
418
|
-
);
|
419
|
-
|
420
|
-
|
421
|
-
--
|
422
|
-
-- Name: resources; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
423
|
-
--
|
424
|
-
|
425
|
-
CREATE TABLE resources (
|
426
|
-
id serial NOT NULL,
|
427
|
-
size integer,
|
428
|
-
filename character varying(255),
|
429
|
-
mime character varying(255),
|
430
|
-
created_at timestamp without time zone DEFAULT now(),
|
431
|
-
updated_at timestamp without time zone DEFAULT now(),
|
432
|
-
article_id integer,
|
433
|
-
itunes_metadata boolean,
|
434
|
-
itunes_author character varying(255),
|
435
|
-
itunes_subtitle character varying(255),
|
436
|
-
itunes_duration integer,
|
437
|
-
itunes_summary text,
|
438
|
-
itunes_keywords character varying(255),
|
439
|
-
itunes_category character varying(255),
|
440
|
-
itunes_explicit boolean
|
441
|
-
);
|
442
|
-
|
443
|
-
|
444
|
-
--
|
445
|
-
-- Name: schema_info; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
446
|
-
--
|
447
|
-
|
448
|
-
CREATE TABLE schema_info (
|
449
|
-
version integer
|
450
|
-
);
|
451
|
-
|
452
|
-
|
453
|
-
--
|
454
|
-
-- Name: sessions; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
455
|
-
--
|
456
|
-
|
457
|
-
CREATE TABLE sessions (
|
458
|
-
id serial NOT NULL,
|
459
|
-
sessid character varying(255),
|
460
|
-
data text,
|
461
|
-
created_at timestamp without time zone DEFAULT now(),
|
462
|
-
updated_at timestamp without time zone DEFAULT now()
|
463
|
-
);
|
464
|
-
|
465
|
-
|
466
|
-
--
|
467
|
-
-- Name: sidebars; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
468
|
-
--
|
469
|
-
|
470
|
-
CREATE TABLE sidebars (
|
471
|
-
id serial NOT NULL,
|
472
|
-
active_position integer,
|
473
|
-
controller character varying(255),
|
474
|
-
staged_position integer,
|
475
|
-
active_config character varying,
|
476
|
-
staged_config character varying
|
477
|
-
);
|
478
|
-
|
479
|
-
|
480
|
-
--
|
481
|
-
-- Name: tags; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
482
|
-
--
|
483
|
-
|
484
|
-
CREATE TABLE tags (
|
485
|
-
id serial NOT NULL,
|
486
|
-
name character varying(255),
|
487
|
-
created_at timestamp without time zone,
|
488
|
-
updated_at timestamp without time zone,
|
489
|
-
display_name character varying(255)
|
490
|
-
);
|
491
|
-
|
492
|
-
|
493
|
-
--
|
494
|
-
-- Name: text_filters; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
495
|
-
--
|
496
|
-
|
497
|
-
CREATE TABLE text_filters (
|
498
|
-
id serial NOT NULL,
|
499
|
-
name character varying(255),
|
500
|
-
description character varying(255),
|
501
|
-
markup character varying(255),
|
502
|
-
filters text,
|
503
|
-
params text
|
504
|
-
);
|
505
|
-
|
506
|
-
|
507
|
-
--
|
508
|
-
-- Name: users; Type: TABLE; Schema: public; Owner: typo; Tablespace:
|
509
|
-
--
|
510
|
-
|
511
|
-
CREATE TABLE users (
|
512
|
-
id serial NOT NULL,
|
513
|
-
"login" character varying(40),
|
514
|
-
"password" character varying(40),
|
515
|
-
email text,
|
516
|
-
name text,
|
517
|
-
notify_via_email boolean,
|
518
|
-
notify_on_new_articles boolean,
|
519
|
-
notify_on_comments boolean,
|
520
|
-
notify_watch_my_articles boolean,
|
521
|
-
notify_via_jabber boolean,
|
522
|
-
jabber character varying(255)
|
523
|
-
);
|
524
|
-
|
525
|
-
|
526
|
-
--
|
527
|
-
-- Name: blacklist_patterns_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
528
|
-
--
|
529
|
-
|
530
|
-
ALTER TABLE ONLY blacklist_patterns
|
531
|
-
ADD CONSTRAINT blacklist_patterns_pkey PRIMARY KEY (id);
|
532
|
-
|
533
|
-
|
534
|
-
--
|
535
|
-
-- Name: blogs_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
536
|
-
--
|
537
|
-
|
538
|
-
ALTER TABLE ONLY blogs
|
539
|
-
ADD CONSTRAINT blogs_pkey PRIMARY KEY (id);
|
540
|
-
|
541
|
-
|
542
|
-
--
|
543
|
-
-- Name: categories_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
544
|
-
--
|
545
|
-
|
546
|
-
ALTER TABLE ONLY categories
|
547
|
-
ADD CONSTRAINT categories_pkey PRIMARY KEY (id);
|
548
|
-
|
549
|
-
|
550
|
-
--
|
551
|
-
-- Name: contents_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
552
|
-
--
|
553
|
-
|
554
|
-
ALTER TABLE ONLY contents
|
555
|
-
ADD CONSTRAINT contents_pkey PRIMARY KEY (id);
|
556
|
-
|
557
|
-
|
558
|
-
--
|
559
|
-
-- Name: page_caches_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
560
|
-
--
|
561
|
-
|
562
|
-
ALTER TABLE ONLY page_caches
|
563
|
-
ADD CONSTRAINT page_caches_pkey PRIMARY KEY (id);
|
564
|
-
|
565
|
-
|
566
|
-
--
|
567
|
-
-- Name: pings_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
568
|
-
--
|
569
|
-
|
570
|
-
ALTER TABLE ONLY pings
|
571
|
-
ADD CONSTRAINT pings_pkey PRIMARY KEY (id);
|
572
|
-
|
573
|
-
|
574
|
-
--
|
575
|
-
-- Name: redirects_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
576
|
-
--
|
577
|
-
|
578
|
-
ALTER TABLE ONLY redirects
|
579
|
-
ADD CONSTRAINT redirects_pkey PRIMARY KEY (id);
|
580
|
-
|
581
|
-
|
582
|
-
--
|
583
|
-
-- Name: resources_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
584
|
-
--
|
585
|
-
|
586
|
-
ALTER TABLE ONLY resources
|
587
|
-
ADD CONSTRAINT resources_pkey PRIMARY KEY (id);
|
588
|
-
|
589
|
-
|
590
|
-
--
|
591
|
-
-- Name: sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
592
|
-
--
|
593
|
-
|
594
|
-
ALTER TABLE ONLY sessions
|
595
|
-
ADD CONSTRAINT sessions_pkey PRIMARY KEY (id);
|
596
|
-
|
597
|
-
|
598
|
-
--
|
599
|
-
-- Name: sidebars_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
600
|
-
--
|
601
|
-
|
602
|
-
ALTER TABLE ONLY sidebars
|
603
|
-
ADD CONSTRAINT sidebars_pkey PRIMARY KEY (id);
|
604
|
-
|
605
|
-
|
606
|
-
--
|
607
|
-
-- Name: tags_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
608
|
-
--
|
609
|
-
|
610
|
-
ALTER TABLE ONLY tags
|
611
|
-
ADD CONSTRAINT tags_pkey PRIMARY KEY (id);
|
612
|
-
|
613
|
-
|
614
|
-
--
|
615
|
-
-- Name: text_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
616
|
-
--
|
617
|
-
|
618
|
-
ALTER TABLE ONLY text_filters
|
619
|
-
ADD CONSTRAINT text_filters_pkey PRIMARY KEY (id);
|
620
|
-
|
621
|
-
|
622
|
-
--
|
623
|
-
-- Name: users_login_key; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
624
|
-
--
|
625
|
-
|
626
|
-
ALTER TABLE ONLY users
|
627
|
-
ADD CONSTRAINT users_login_key UNIQUE ("login");
|
628
|
-
|
629
|
-
|
630
|
-
--
|
631
|
-
-- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: typo; Tablespace:
|
632
|
-
--
|
633
|
-
|
634
|
-
ALTER TABLE ONLY users
|
635
|
-
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
|
636
|
-
|
637
|
-
|
638
|
-
--
|
639
|
-
-- Name: categories_permalink_index; Type: INDEX; Schema: public; Owner: typo; Tablespace:
|
640
|
-
--
|
641
|
-
|
642
|
-
CREATE INDEX categories_permalink_index ON categories USING btree (permalink);
|
643
|
-
|
644
|
-
|
645
|
-
--
|
646
|
-
-- Name: contents_article_id_index; Type: INDEX; Schema: public; Owner: typo; Tablespace:
|
647
|
-
--
|
648
|
-
|
649
|
-
CREATE INDEX contents_article_id_index ON contents USING btree (article_id);
|
650
|
-
|
651
|
-
|
652
|
-
--
|
653
|
-
-- Name: contents_blog_id_index; Type: INDEX; Schema: public; Owner: typo; Tablespace:
|
654
|
-
--
|
655
|
-
|
656
|
-
CREATE INDEX contents_blog_id_index ON contents USING btree (blog_id);
|
657
|
-
|
658
|
-
|
659
|
-
--
|
660
|
-
-- Name: idx_blacklist_pattern; Type: INDEX; Schema: public; Owner: typo; Tablespace:
|
661
|
-
--
|
662
|
-
|
663
|
-
CREATE INDEX idx_blacklist_pattern ON blacklist_patterns USING btree (pattern);
|
664
|
-
|
665
|
-
|
666
|
-
--
|
667
|
-
-- Name: idx_pings_article_id; Type: INDEX; Schema: public; Owner: typo; Tablespace:
|
668
|
-
--
|
669
|
-
|
670
|
-
CREATE INDEX idx_pings_article_id ON pings USING btree (article_id);
|
671
|
-
|
672
|
-
|
673
|
-
--
|
674
|
-
-- Name: page_caches_name_index; Type: INDEX; Schema: public; Owner: typo; Tablespace:
|
675
|
-
--
|
676
|
-
|
677
|
-
CREATE INDEX page_caches_name_index ON page_caches USING btree (name);
|
678
|
-
|
679
|
-
|
680
|
-
--
|
681
|
-
-- Name: sessions_sessid_index; Type: INDEX; Schema: public; Owner: typo; Tablespace:
|
682
|
-
--
|
683
|
-
|
684
|
-
CREATE INDEX sessions_sessid_index ON sessions USING btree (sessid);
|
685
|
-
|
686
|
-
|
687
|
-
--
|
688
|
-
-- PostgreSQL database dump complete
|
689
|
-
--
|
690
|
-
|
691
|
-
INSERT INTO schema_info (version) VALUES (40)
|