SYNC COMMIT.
This commit is contained in:
@@ -3,6 +3,7 @@ drop table if exists accident_copy;
|
||||
create table accident_copy as
|
||||
select * from accidents;
|
||||
alter table accident_copy add severity varchar;
|
||||
alter table accident_copy add foreign key (accidentuid) references accidents;
|
||||
update accident_copy set severity = 'Accident with property damage'
|
||||
where accidentseveritycategory='as4';
|
||||
|
||||
|
||||
@@ -6,10 +6,12 @@ CREATE TABLE fbcount_copy AS
|
||||
ALTER TABLE fbcount_copy ADD fuss_total INTEGER;
|
||||
UPDATE fbcount_copy SET fuss_total = fuss_in + fuss_out;
|
||||
|
||||
|
||||
|
||||
ALTER TABLE fbcount_copy
|
||||
DROP COLUMN IF EXISTS fuss_in,
|
||||
DROP COLUMN IF EXISTS fuss_out,
|
||||
ADD PRIMARY KEY (id);
|
||||
ADD FOREIGN KEY (id) REFERENCES footbikecount;
|
||||
|
||||
ALTER TABLE fbcount_copy ADD velo_total INTEGER;
|
||||
UPDATE fbcount_copy SET velo_total = velo_in + velo_out;
|
||||
|
||||
Reference in New Issue
Block a user