Commit Graph

13530 Commits

Author SHA1 Message Date
Lukas Eder
ab67f867de [jOOQ/jOOQ#9506] Rename logMigration() to logPending() 2024-11-27 11:30:45 +01:00
Lukas Eder
cf4e705a22 [jOOQ/jOOQ#9506] Fix Javadoc 2024-11-27 10:58:02 +01:00
Lukas Eder
7903638c6f [jOOQ/jOOQ#9506] Rename logMigration() to logPending() 2024-11-27 10:56:46 +01:00
Lukas Eder
8ba74dc91e [jOOQ/jOOQ#9506] More work on Migrations API:
- GitCommitProvider should distinguish between uncommitted (in index) and untracked (not in index)
2024-11-27 10:28:15 +01:00
Lukas Eder
c19df5ff34 [jOOQ/jOOQ#9506] More work on Migrations API:
- Add a Settings.migrationDefaultContentType configuration
- Support special case of SCRIPT only migrations
2024-11-27 10:13:49 +01:00
Lukas Eder
073411a51d [jOOQ/jOOQ#17672] Misleading warning about configured schemas in code generator, when the database doesn't supply any schemata 2024-11-27 08:47:43 +01:00
Lukas Eder
c743b89844 [jOOQ/jOOQ#9506] Fix OSS edition 2024-11-27 08:38:39 +01:00
Lukas Eder
dfb607c1ff [jOOQ/jOOQ#9506] More work on Migrations API:
- Snapshots will be a commercial only feature
- CommitImpl should reject duplicate paths
- Add the ContentType.SCRIPT implementation
- Files.writeString() wasn't available in JDK 8 yet
2024-11-27 07:57:57 +01:00
Lukas Eder
64107cd10c [jOOQ/jOOQ#17670] [jOOQ/jOOQ#17671] Mark property as transient to denote its cache nature 2024-11-26 13:24:57 +01:00
Lukas Eder
db62f6c107
Merge pull request #17670 from ggsurrel/main
Performance improvement in BatchSingle class
2024-11-26 13:22:03 +01:00
Lukas Eder
a822575123 [jOOQ/jOOQ#9506] More work on Migrations API:
- Improved DefaultMigrationContext::toString
- Updated TODO list
- Added migration client info to HISTORY table
- Handle missing decrements
- Throw exception when attempting to decrement a deletion (for now)
- Ignore snapshots when backwards migrating
2024-11-26 13:11:33 +01:00
Guillaume Surrel
daa947f1ce Performance improvement in BatchSingle.java 2024-11-26 11:28:52 +01:00
Lukas Eder
d0cdd0c820 [jOOQ/jOOQ#9506] Replace the term outstanding by pending 2024-11-26 09:26:18 +01:00
Lukas Eder
0a5eaf8788 [jOOQ/jOOQ#9506] Replace the term outstanding by pending 2024-11-26 09:26:08 +01:00
Lukas Eder
b53e0485e1 [jOOQ/jOOQ#17666] Inaccurate Javadoc on ExecuteContext setters 2024-11-26 09:03:01 +01:00
Lukas Eder
c484d10165 [jOOQ/jOOQ#9506] More work on Migrations API:
- Support ContentType.DECREMENT (WIP)
2024-11-25 21:23:57 +01:00
Lukas Eder
af23fa75cb [jOOQ/jOOQ#17665] Diff shouldn't ignore nullable primary keys in dialects that support this 2024-11-25 15:27:58 +01:00
Lukas Eder
20a0070519 [jOOQ/jOOQ#9506] More work on Migrations API:
- Move LogMojo and HistoryMojo logic into org.jooq.Migration
- Reduce log level in FilePattern to DEBUG
- Rename SnapshotMojo to AddSnapshotMojo
- Rename AddMojo to AddUntrackedMojo
- AddUntrackedMojo should append to the file, not overwrite it
- Add fileName property to AddSnapshotMojo and AddUntrackedMojo
- Rename HistoryMojo to LogHistoryMojo
- Add a LogMigrationMojo
- Add a LogUntrackedMojo
2024-11-25 14:56:09 +01:00
Lukas Eder
180a441617 [jOOQ/jOOQ#9506] More work on Migrations API:
- Add History::available
- Allow for updating the root node after all, in order to allow for creating baselines on existing databases
- [jOOQ/jOOQ#17646] Ignore unnamed constraint changes in both directions
- Expose Migration::untracked, publicly
- Add an AddMojo to add untracked files to the migration
2024-11-22 19:25:43 +01:00
Lukas Eder
2cfc3005fc [jOOQ/jOOQ#9506] More work on Migrations API:
- Support ContentType.SNAPSHOT in CommitImpl
- Avoid creating schema in snapshots if it's managed
2024-11-22 15:45:21 +01:00
Lukas Eder
b988c5b5cb [jOOQ/jOOQ#9506] More work on Migrations API:
- Add SnapshotMojo to create snapshots of database versions
- Don't include path in Version::id anymore
2024-11-22 13:43:29 +01:00
Lukas Eder
d0a5e9635c [jOOQ/jOOQ#9506] More work on Migrations API:
- Remove debug info
- Add Commit.valid()
2024-11-22 11:15:00 +01:00
Lukas Eder
cebf801890 [jOOQ/jOOQ#17652] Also, CONSTRAINT_1F_INDEX_7 style indexes 2024-11-22 11:14:30 +01:00
Lukas Eder
45e88c729a [jOOQ/jOOQ#9506] Predicate::not was added in JDK 11 only 2024-11-22 09:37:09 +01:00
Lukas Eder
22b746b012 [jOOQ/jOOQ#17660] DatePart Javadoc should clarify that @Support doesn't
mean the DatePart is supported on all functions
2024-11-22 09:30:06 +01:00
Lukas Eder
dc4a45e59f [jOOQ/jOOQ#17634] Compilation errors in generated POJO code when
generating <immutableInterfaces/> on a table accepting UDTs
2024-11-22 08:54:08 +01:00
Lukas Eder
a38317ab5e [jOOQ/jOOQ#17652] Accept CONSTRAINT_INDEX_ as a possible system index name prefix in H2 2024-11-21 17:16:54 +01:00
Lukas Eder
5fb18bfaf5 [jOOQ/jOOQ#17647] Diff should ignore implicit NOT NULL constraints on
PRIMARY KEY columns
2024-11-21 17:10:52 +01:00
Lukas Eder
b72e6382a8 [jOOQ/jOOQ#9506] Could also be a bug 2024-11-21 16:32:14 +01:00
Lukas Eder
2406f7ec50 [jOOQ/jOOQ#9506] [jOOQ/jOOQ#17646] Diff should ignore constraint changes where (synthetically) named constraint is replaced by an equivalent unnamed constraint.
Users may use unnamed constraints in migration scripts. When comparing the schema with the existing schema in the database, we must ignore the database's synthetic constraint names.
2024-11-21 16:30:45 +01:00
Lukas Eder
6c957454fd [jOOQ/jOOQ#17642] Interpreter should show current query when there's an error 2024-11-21 15:39:21 +01:00
Lukas Eder
1dd1205673 [jOOQ/jOOQ#9506] More work on Migrations API:
- Handling of default schema in MigrationImpl::revertUntrackedQueries
- Use Settings.migrationHistorySchema in revertUntrackedQueries
- Improve logic to filter out history table from revertUntrackedQueries
- Set migration default schema as interpreter search path in History
- Suppress exceptions caused by history record re-insertion in case of
DataMigrationRedoLogException
- VersionImpl should apply CREATE SCHEMA IF NOT EXISTS to on init
- Remove weird initialisation of VersionImpl.meta with interpreter
search path
- Implement DefaultMigrationContext::toString
- Automatically set interpreter search path in Maven plugin
- GitCommitProvider should use same content type subdirs (in plural)
- Add commitProvider property to Maven plugin
- Upgrade jgit
- Allow for configuring a basedir within the GitConfiguration#repository
2024-11-21 15:22:34 +01:00
Lukas Eder
f086212738 [jOOQ/jOOQ#9506] More work on Migrations API:
- Don't throw exceptions in HistoryImpl::toString
- LogMojo should log history as well
- Reuse FilePattern::fileComparator also to sort IDs when loading files
- LogMojo should also include HistoryMojo output
- Make CommitType::getId optional for per-SQL-file metadata usage
2024-11-20 17:04:13 +01:00
Lukas Eder
32c51bbc3e [jOOQ/jOOQ#9506] More work on Migrations API:
- Minor improvements
2024-11-20 14:52:43 +01:00
Lukas Eder
e9d8f34ae4 [jOOQ/jOOQ#17637] NullPointerException in interpreter when trying to
work with schema that doesn't exist
2024-11-20 14:52:30 +01:00
Lukas Eder
beb800acda [jOOQ/jOOQ#9506] More work on Migrations API:
This includes:

- Support recursing into directories when calling Commits::load
- Expose Source::file, if available
- [jOOQ/jOOQ#17636] Add a FilePattern.path(File) utility to get a path
relative to the FilePattern::basedir
- Remove weird filename based encoding of messages/tags/parents
- Introduce path based encoding of messages/content type
- Support supplying XML meta data with files
2024-11-20 11:08:52 +01:00
Lukas Eder
627cd642d3 [jOOQ/jOOQ#17633] Wrong exception was suppressed 2024-11-20 11:08:39 +01:00
Lukas Eder
073d1f237e [jOOQ/jOOQ#9506] More work on Migrations API:
- Support a commit author
2024-11-19 17:11:11 +01:00
Lukas Eder
12d1aa31ab [jOOQ/jOOQ#9506] More work on Migrations API:
- Support a commit author
2024-11-19 16:55:32 +01:00
Lukas Eder
2343e3c53d [jOOQ/jOOQ#9506] More work on Migrations API:
- Infer JDBC driver from JDBC URL if not given explicitly
- Better FileData debugging info
- Add HistoryVersion type to add a migratedAt() Instant to a Version
- Add a CleanMojo
- Improve mojo Javadocs
- Rename init node to root
- Make root a reserved ID
2024-11-19 14:08:29 +01:00
Lukas Eder
159b664e9a [jOOQ/jOOQ#17633] DSL.using(String, String, String) should try to load the default driver for the JDBC URL, in case of a No suitable driver found exception 2024-11-19 09:38:43 +01:00
Lukas Eder
405e2bb804 [jOOQ/jOOQ#17632] Use new utility 2024-11-19 09:12:47 +01:00
Lukas Eder
19240b9f9d [jOOQ/jOOQ#17632] Deprecate and move org.jooq.meta.ClassUtils to org.jooq.tools.ClassUtils 2024-11-19 09:10:45 +01:00
Lukas Eder
7e712d72b7 [jOOQ/jOOQ#15906] Fix API generator 2024-11-15 18:09:27 +01:00
Lukas Eder
3ff0670bd6 [jOOQ/jOOQ#15906] Add QOM for Constraint types 2024-11-15 18:01:56 +01:00
Lukas Eder
918d3a3831 [jOOQ/jOOQ#15906] Add QOM for Constraint types 2024-11-15 18:01:49 +01:00
Lukas Eder
6b248fdc87 [jOOQ/jOOQ#17624] Correct order of excludes / includes, copy paste error 2024-11-15 13:24:29 +01:00
Lukas Eder
8ce1f7b81a [jOOQ/jOOQ#9736] Support Firebird and SQLite 2024-11-15 13:24:09 +01:00
Lukas Eder
650e0245a8 [jOOQ/jOOQ#9736] Help the poor Java 8 and 11 compilers 2024-11-15 09:18:20 +01:00
Lukas Eder
ee6db644ea [jOOQ/jOOQ#17624] Add support for per-generation-mode type <includes> and <excludes> matching 2024-11-15 08:54:08 +01:00