X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=db%2F08to09_pg.sql;h=2eac5dadf38bf4a5cc609871ff811fa619969725;hb=c5bb41176ee246369e05b932f031f40e38087f23;hp=4f8281bc3eaa49eec0ab0a6426dc629dbf8eac49;hpb=3e9c2d779a3d3e014e8900060c3a2632d9e7f138;p=quix0rs-gnu-social.git diff --git a/db/08to09_pg.sql b/db/08to09_pg.sql index 4f8281bc3e..2eac5dadf3 100644 --- a/db/08to09_pg.sql +++ b/db/08to09_pg.sql @@ -74,16 +74,10 @@ ALTER TABLE notice ADD COLUMN lat decimal(10, 7) /* comment 'latitude'*/; ALTER TABLE notice ADD COLUMN lon decimal(10,7) /* comment 'longitude'*/; ALTER TABLE notice ADD COLUMN location_id integer /* comment 'location id if possible'*/ ; ALTER TABLE notice ADD COLUMN location_ns integer /* comment 'namespace for location'*/; +ALTER TABLE notice ADD COLUMN repeat_of integer /* comment 'notice this is a repeat of' */ references notice (id); ALTER TABLE profile ADD COLUMN lat decimal(10,7) /*comment 'latitude'*/ ; ALTER TABLE profile ADD COLUMN lon decimal(10,7) /*comment 'longitude'*/; ALTER TABLE profile ADD COLUMN location_id integer /* comment 'location id if possible'*/; ALTER TABLE profile ADD COLUMN location_ns integer /* comment 'namespace for location'*/; -CREATE TABLE forward ( - profile_id integer not null /*comment 'profile who forwarded the notice'*/ references profile (id), - notice_id integer not null /*comment 'notice they forwarded'*/ references notice (id), - created timestamp not null /*comment 'date this record was created'*/ DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (profile_id, notice_id) -); -