-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add netfile v2 data to database during import
- Loading branch information
1 parent
f7cf802
commit 2e0387d
Showing
7 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,6 @@ cat <<-QUERY | psql ${database_name} | |
DELETE FROM "$table_name" | ||
WHERE "Tran_Date" is NULL; | ||
QUERY | ||
else | ||
echo | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE committees_v2 ( | ||
filer_nid DECIMAL NOT NULL, | ||
"Ballot_Measure_Election" VARCHAR, | ||
"Filer_ID" VARCHAR, | ||
"Filer_NamL" VARCHAR NOT NULL, | ||
"_Status" VARCHAR NOT NULL, | ||
"_Committee_Type" VARCHAR NOT NULL, | ||
"Ballot_Measure" VARCHAR, | ||
"Support_Or_Oppose" VARCHAR, | ||
candidate_controlled_id BOOLEAN, | ||
"Start_Date" DATE, | ||
"End_Date" BOOLEAN, | ||
data_warning BOOLEAN, | ||
"Make_Active" BOOLEAN | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE TABLE elections_v2 ( | ||
location VARCHAR NOT NULL, | ||
date DATE NOT NULL, | ||
name VARCHAR NOT NULL, | ||
title VARCHAR NOT NULL | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters