Skip to content

Commit

Permalink
etl
Browse files Browse the repository at this point in the history
  • Loading branch information
joao_neto authored and joao_neto committed Nov 22, 2010
1 parent 54d8058 commit 99a57c2
Show file tree
Hide file tree
Showing 101 changed files with 2,205 additions and 1,917 deletions.
1,872 changes: 937 additions & 935 deletions acao-sdh/bin/atendimento.architect

Large diffs are not rendered by default.

372 changes: 366 additions & 6 deletions acao-sdh/bin/atendimento.xml

Large diffs are not rendered by default.

477 changes: 271 additions & 206 deletions acao-sdh/bin/etl-sdh.pl

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions acao-sdh/lib/Acao/Plugins/SDH/DimSchema.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use base 'DBIx::Class::Schema';
__PACKAGE__->load_namespaces;


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aVd+vJeJHr3Lx8WI/nsYQA
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U1IHDlVn5LmJlEfY9SfXxQ


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ar/ggWx1P1L0D1q1Licy/Q
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sBzf2KI+zoB1taEonzszmw


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pR/Zp/67lyyINOjxdG+9yA
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u4OQWOIFnUvhFZ7sBWCH5w


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HuspDqH6TH0puJNhNxXz0A
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Dgb6IvRsYghh0hZ3y3R0hA


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eetammiohZmsV8SwqInvjQ
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aGineTmpticwr9gsq9oKwA


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pIJWgqSCm63MsQGPuwWDnA
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cB0cVqgkdMDoeCq4UHwx2g


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Q8Vo+tHjNjhaWd7tX7AmIg
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W9BQKVc2574L2Li24rZ/Ww


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FVorqOWT9Blx4AawUVbRqw
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fu7ggh8i0bA/xGhEh3Mklw


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
4 changes: 2 additions & 2 deletions acao-sdh/lib/Acao/Plugins/SDH/DimSchema/Result/DCpf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y/QiUtPso9jWjIJ0WmeIWg
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:odbyxxpknwvgaa0ZOJWjbQ


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FhIkMfcpEPlISVkLUnFTAw
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tTZE8nZW5D6s9Y9ft1Mb+A


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
4 changes: 2 additions & 2 deletions acao-sdh/lib/Acao/Plugins/SDH/DimSchema/Result/DCtp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dlcz+40fan8B3E2AuctfpQ
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6Y+2/1lQxtZGjF1HprkeOA


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
36 changes: 18 additions & 18 deletions acao-sdh/lib/Acao/Plugins/SDH/DimSchema/Result/DData.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,42 +27,42 @@ __PACKAGE__->table("d_data");
=head2 dia
data_type: 'integer'
is_nullable: 0
is_nullable: 1
=head2 mes
data_type: 'integer'
is_nullable: 0
is_nullable: 1
=head2 ano
data_type: 'integer'
is_nullable: 0
is_nullable: 1
=head2 data
data_type: 'date'
is_nullable: 0
is_nullable: 1
=head2 bimestre
data_type: 'integer'
is_nullable: 0
is_nullable: 1
=head2 trimestre
data_type: 'integer'
is_nullable: 0
is_nullable: 1
=head2 semestre
data_type: 'integer'
is_nullable: 0
is_nullable: 1
=head2 dia_semana
data_type: 'text'
is_nullable: 0
is_nullable: 1
original: {data_type => "varchar"}
=cut
Expand All @@ -71,23 +71,23 @@ __PACKAGE__->add_columns(
"id_data",
{ data_type => "integer", is_nullable => 0 },
"dia",
{ data_type => "integer", is_nullable => 0 },
{ data_type => "integer", is_nullable => 1 },
"mes",
{ data_type => "integer", is_nullable => 0 },
{ data_type => "integer", is_nullable => 1 },
"ano",
{ data_type => "integer", is_nullable => 0 },
{ data_type => "integer", is_nullable => 1 },
"data",
{ data_type => "date", is_nullable => 0 },
{ data_type => "date", is_nullable => 1 },
"bimestre",
{ data_type => "integer", is_nullable => 0 },
{ data_type => "integer", is_nullable => 1 },
"trimestre",
{ data_type => "integer", is_nullable => 0 },
{ data_type => "integer", is_nullable => 1 },
"semestre",
{ data_type => "integer", is_nullable => 0 },
{ data_type => "integer", is_nullable => 1 },
"dia_semana",
{
data_type => "text",
is_nullable => 0,
is_nullable => 1,
original => { data_type => "varchar" },
},
);
Expand All @@ -111,8 +111,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9yNuL1OWG2WpE3PSTT3Iag
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QBAnObypX6FSGRPfeQ4iNQ


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:r5Dm4NGhYLgAwUAlxC3xJg
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZkQBUL0pJAA++rD5CgWTQA


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
4 changes: 2 additions & 2 deletions acao-sdh/lib/Acao/Plugins/SDH/DimSchema/Result/DEndereco.pm
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VlelggjFCsmXUwUXcVm3yg
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Qxb7lUXrJrukLAbqA2jDTQ


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BhDlKhF9t9bFrF3b5CJ65A
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VAbiGOd0rfxrbV2xw69VSA


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+UzB/7HMNk/oiceLvuQm6A
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MJiXXWttp3E03X45Zs2iEw


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hoVHQTc/8Edh0IBqq1AyWw
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JKsDsOp2rfg9w/9z9UhnXQ


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
16 changes: 14 additions & 2 deletions acao-sdh/lib/Acao/Plugins/SDH/DimSchema/Result/DEstaTrabalhando.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ __PACKAGE__->table("d_esta_trabalhando");
is_nullable: 0
original: {data_type => "varchar"}
=head2 tipo_trabalho
data_type: 'text'
is_nullable: 1
original: {data_type => "varchar"}
=cut

__PACKAGE__->add_columns(
Expand All @@ -48,6 +54,12 @@ __PACKAGE__->add_columns(
is_nullable => 0,
original => { data_type => "varchar" },
},
"tipo_trabalho",
{
data_type => "text",
is_nullable => 1,
original => { data_type => "varchar" },
},
);
__PACKAGE__->set_primary_key("id_esta_trabalhando");

Expand All @@ -69,8 +81,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wMkhUCjzHo2tktJdSrfPBQ
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SznvWrAP3SOu1pGj+fdX0g


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FzaXZnZXMUL31mOq9A1KLw
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9XEfNk4BK9kwQ02zmt0Mwg


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xf2MR4vs0dQztC0smleJ2A
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/75x0YE6+St967E2pj7GxA


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JOWSf6GpqJ241Si2a9VGgw
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:venn61DNdOvWs2VGqx2Jew


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:asEHw1kuSAfs5vrbFiyNyQ
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fluh0VhLZ2/xwBNmcsMvBg


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KEu+lQUnRey5ocMcW07kCA
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p4v5hphqQzhW/jQu7sDhRg


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q7TpCq4boOiXIK20cpsf4A
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c2G992cNiafLIlSsA6EqnQ


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
4 changes: 2 additions & 2 deletions acao-sdh/lib/Acao/Plugins/SDH/DimSchema/Result/DIdade.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/bcaW9ae5icLlTDoQdzbCQ
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GyL7tx5na39JMeJYQuGfUw


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
4 changes: 2 additions & 2 deletions acao-sdh/lib/Acao/Plugins/SDH/DimSchema/Result/DIdentidade.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-12 15:49:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lF+UNOalN2FmktaHt0iIfA
# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-11-22 14:32:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WrRCmbPHxTZpy6sdudiP/Q


# You can replace this text with custom content, and it will be preserved on regeneration
Expand Down
Loading

0 comments on commit 99a57c2

Please sign in to comment.