Permalink
Browse files

removed deprecated UTF8Columns

  • Loading branch information...
Zbigniew Lukasiak
Zbigniew Lukasiak committed Aug 14, 2010
1 parent e33d585 commit edfe5b0f8392f7e670514d88dbc13067b584b060
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("dvd");
__PACKAGE__->add_columns(
"id",
@@ -86,6 +86,5 @@ __PACKAGE__->has_many(
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->name}, fallback => 1;
__PACKAGE__->many_to_many('tags', 'dvdtags' => 'tag');
-__PACKAGE__->utf8_columns(qw/id name imdb_id owner current_borrower creation_date alter_date hour/);
1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("dvdtag");
__PACKAGE__->add_columns(
"dvd",
@@ -34,6 +34,5 @@ __PACKAGE__->belongs_to("tag", "DvdDatabase::DBSchema::Result::Tag", { id => "ta
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->id}, fallback => 1;
-__PACKAGE__->utf8_columns(qw/dvd tag/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("role");
__PACKAGE__->add_columns(
"id",
@@ -38,6 +38,5 @@ __PACKAGE__->has_many(
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->id}, fallback => 1;
__PACKAGE__->many_to_many('users', 'user_roles' => 'user');
-__PACKAGE__->utf8_columns(qw/id role/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("tag");
__PACKAGE__->add_columns(
"id",
@@ -38,6 +38,5 @@ __PACKAGE__->has_many(
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->name}, fallback => 1;
__PACKAGE__->many_to_many('dvds', 'dvdtags' => 'dvd');
-__PACKAGE__->utf8_columns(qw/id name/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("unicode_examples");
__PACKAGE__->add_columns(
"id",
@@ -48,6 +48,5 @@ __PACKAGE__->set_primary_key("id");
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->language_name}, fallback => 1;
-__PACKAGE__->utf8_columns(qw/id iso_country_code language_name main_unicode_set example_text/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("user_role");
__PACKAGE__->add_columns(
"user",
@@ -34,6 +34,5 @@ __PACKAGE__->belongs_to("role", "DvdDatabase::DBSchema::Result::Role", { id => "
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->id}, fallback => 1;
-__PACKAGE__->utf8_columns(qw/user role/);
-1;
+1;
@@ -3,5 +3,8 @@ root = t/data/templates
</renderer>
<schema>
dbi_dsn = dbi:SQLite:dbname=t/tmp/dvdzbr.db
+<dbi_params>
+sqlite_unicode = 1
+</dbi_params>
</schema>
@@ -3,5 +3,8 @@ root = t/data/templates
</renderer>
<schema>
dbi_dsn = dbi:SQLite:dbname=t/tmp/dvdzbr.db
+<dbi_params>
+sqlite_unicode = 1
+</dbi_params>
</schema>
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("dvd");
__PACKAGE__->add_columns(
"id",
@@ -86,6 +86,5 @@ __PACKAGE__->has_many(
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->name}, fallback => 1;
__PACKAGE__->many_to_many('tags', 'dvdtags' => 'tag');
-__PACKAGE__->utf8_columns(qw/id name imdb_id owner current_borrower creation_date alter_date hour/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("dvdtag");
__PACKAGE__->add_columns(
"dvd",
@@ -34,6 +34,5 @@ __PACKAGE__->belongs_to("tag", "MyApp::DBSchema::Result::Tag", { id => "tag" });
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->id}, fallback => 1;
-__PACKAGE__->utf8_columns(qw/dvd tag/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("role");
__PACKAGE__->add_columns(
"id",
@@ -38,6 +38,5 @@ __PACKAGE__->has_many(
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->id}, fallback => 1;
__PACKAGE__->many_to_many('users', 'user_roles' => 'user');
-__PACKAGE__->utf8_columns(qw/id role/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("tag");
__PACKAGE__->add_columns(
"id",
@@ -38,6 +38,5 @@ __PACKAGE__->has_many(
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->name}, fallback => 1;
__PACKAGE__->many_to_many('dvds', 'dvdtags' => 'dvd');
-__PACKAGE__->utf8_columns(qw/id name/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("unicode_examples");
__PACKAGE__->add_columns(
"id",
@@ -48,6 +48,5 @@ __PACKAGE__->set_primary_key("id");
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->language_name}, fallback => 1;
-__PACKAGE__->utf8_columns(qw/id iso_country_code language_name main_unicode_set example_text/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("user");
__PACKAGE__->add_columns(
"id",
@@ -62,6 +62,5 @@ __PACKAGE__->has_many(
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->username}, fallback => 1;
__PACKAGE__->many_to_many('roles', 'user_roles' => 'role');
-__PACKAGE__->utf8_columns(qw/id username password name/);
-1;
+1;
@@ -5,7 +5,7 @@ use warnings;
use base 'DBIx::Class';
-__PACKAGE__->load_components("InflateColumn::DateTime", "UTF8Columns", "Core");
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("user_role");
__PACKAGE__->add_columns(
"user",
@@ -34,6 +34,5 @@ __PACKAGE__->belongs_to("role", "MyApp::DBSchema::Result::Role", { id => "role"
# You can replace this text with custom content, and it will be preserved on regeneration
use overload '""' => sub {$_[0]->id}, fallback => 1;
-__PACKAGE__->utf8_columns(qw/user role/);
-1;
+1;

0 comments on commit edfe5b0

Please sign in to comment.