forked from fordfrog/apgdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/jalissonmello/apgdiff in…
…to develop
- Loading branch information
Showing
13 changed files
with
80 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ build | |
.classpath | ||
.project | ||
dist | ||
.idea/ | ||
*.iml |
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 |
---|---|---|
|
@@ -7,9 +7,27 @@ file it at https://github.com/fordfrog/apgdiff/issues. If you for some reason | |
need to contact author of this application, you can email him at | ||
[email protected]. | ||
|
||
This repo is mainly unmaintained. But if you found a bug and create a pull request chances are good that it will be merged. | ||
|
||
## Changelog | ||
|
||
### Version 2.5 (not released yet) | ||
### Version 2.6 | ||
|
||
#### New Features | ||
* PostgresSQL 10 Support | ||
* Update dependencies to development with Java 11 | ||
* Add security barrier and another options to Views | ||
* Add support to Create/Drop Rule | ||
* Triggers: Rerencing,Enable,Disable | ||
* use using column::type to cast the type of column | ||
|
||
#### Fixes | ||
* Fix GRANT SEQUENCE, ALTER VIEW OWNER, GRANT(cols) errors | ||
|
||
#### Tasks Done | ||
* Remove SourceForge repository | ||
|
||
### Version 2.5 | ||
|
||
#### New Features | ||
* MATERIALIZED VIEW support in PostgreSQL 9.3 (Marti Raudsepp) | ||
|
@@ -40,6 +58,8 @@ [email protected]. | |
* Fixed issue with the $ sign in the object name (Anatoliy Basov) | ||
* Added French translation. (Jeremy Passeron) | ||
* Native for OS line endings in resulting diff (Sergej Bonich) | ||
* Add support for new Postgres schema dump format | ||
* Support for Postgres 10 CREATE SEQUENCE data type | ||
|
||
### 2012-09-21: Version 2.4 | ||
|
||
|
Binary file not shown.
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
2 changes: 2 additions & 0 deletions
2
src/test/resources/cz/startnet/utils/pgdiff/add_comment_new_column_diff.sql
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
ALTER TABLE agent | ||
ADD COLUMN IF NOT EXISTS abc BIGINT; | ||
|
||
COMMENT ON COLUMN agent.id IS 'This ID support schema name'; | ||
|
||
COMMENT ON COLUMN agent.abc IS 'This agent supports credit system or not.'; |
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
2 changes: 1 addition & 1 deletion
2
src/test/resources/cz/startnet/utils/pgdiff/add_constraint_diff.sql
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
ALTER TABLE testtable | ||
ALTER TABLE IF EXISTS testtable | ||
ADD CONSTRAINT IF NOT EXISTS field4check CHECK (((field4 > (-5.0)::double precision) AND (field4 < (5.0)::double precision))); |
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
4 changes: 2 additions & 2 deletions
4
src/test/resources/cz/startnet/utils/pgdiff/add_unique_constraint_diff.sql
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
ALTER TABLE inventoryitemsupplier | ||
ALTER TABLE IF EXISTS inventoryitemsupplier | ||
ADD CONSTRAINT IF NOT EXISTS inventoryitemsupplier_pkey PRIMARY KEY (id); | ||
|
||
ALTER TABLE inventoryitemsupplier | ||
ALTER TABLE IF EXISTS inventoryitemsupplier | ||
ADD CONSTRAINT IF NOT EXISTS inventoryitemsupplier_5a808b9c_key UNIQUE (inventoryitemid, partneridentificationid); |
2 changes: 1 addition & 1 deletion
2
src/test/resources/cz/startnet/utils/pgdiff/drop_constraint_diff.sql
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
ALTER TABLE testtable | ||
ALTER TABLE IF EXISTS testtable | ||
DROP CONSTRAINT IF EXISTS field4check; |
39 changes: 39 additions & 0 deletions
39
src/test/resources/cz/startnet/utils/pgdiff/loader/schema_18.sql
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,39 @@ | ||
-- | ||
-- PostgreSQL database dump | ||
-- | ||
|
||
-- Dumped from database version 9.5.13 | ||
-- Dumped by pg_dump version 9.5.13 | ||
|
||
SET statement_timeout = 0; | ||
SET lock_timeout = 0; | ||
SET client_encoding = 'UTF8'; | ||
SET standard_conforming_strings = on; | ||
SELECT pg_catalog.set_config('search_path', '', false); | ||
SET check_function_bodies = false; | ||
SET client_min_messages = warning; | ||
SET row_security = off; | ||
|
||
CREATE TABLE public.locations ( | ||
id uuid NOT NULL, | ||
square_feet integer DEFAULT 0 NOT NULL, | ||
name character varying(50), | ||
description character varying(255), | ||
site_id uuid NOT NULL, | ||
default_yearly_hours integer, | ||
epact_code_name character varying, | ||
savings_percent double precision, | ||
ceiling_height integer DEFAULT 0 NOT NULL, | ||
map_number integer, | ||
project_id uuid, | ||
notes character varying, | ||
existing_controls boolean DEFAULT false NOT NULL, | ||
fixture_height integer DEFAULT 0 NOT NULL, | ||
luminescence character varying(255) | ||
); | ||
|
||
-- | ||
-- Name: COLUMN locations.default_yearly_hours; Type: COMMENT; Schema: public; Owner: postgres | ||
-- | ||
|
||
COMMENT ON COLUMN public.locations.default_yearly_hours IS 'Informs audit items on what their default yearly hours should be'; |
4 changes: 2 additions & 2 deletions
4
src/test/resources/cz/startnet/utils/pgdiff/modify_constraint_diff.sql
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
ALTER TABLE testtable | ||
ALTER TABLE IF EXISTS testtable | ||
DROP CONSTRAINT IF EXISTS field4check; | ||
|
||
ALTER TABLE testtable | ||
ALTER TABLE IF EXISTS testtable | ||
ADD CONSTRAINT IF NOT EXISTS field4check CHECK ((field4 > (0.0)::double precision)); |