Jonas Pöhler
2633cd6bfe
FIX: drop foreign keys before dropping tables
2023-01-13 15:35:54 +01:00
Roland Praml
f4c747c6af
FIX: LogFormat for SystemLogger
2022-10-25 08:52:15 +02:00
Rob Bygrave
39de9d56db
#2825 - DB Migration - create schema migration is repeated unnecessarily
2022-09-07 19:55:43 +12:00
Noemi Praml
8fe6de376d
Fix sqlserver stored procedures - reserved keywords
...
(cherry picked from commit 09bcf6dbb9 )
2022-09-02 12:58:02 +02:00
Noemi Praml
808ba719f4
Fix mariadb, mysql stored procedure usp_ebean_drop_column - reserved keywords
...
(cherry picked from commit b0df177509 )
2022-09-02 11:53:33 +02:00
Noemi Praml
117844b5ee
Fix Unittests with drop not null
...
(cherry picked from commit 98e0e3b9ca )
2022-09-02 10:49:39 +02:00
Noemi Praml
fbb73d465c
FIX DB2 migration: reorg table must be called after drop not null
2022-09-02 10:49:25 +02:00
Rob Bygrave
26f0605d72
Refactor ScalarType methods from getters to accessors
2022-08-25 12:25:38 +12:00
Rob Bygrave
456086fb3c
Refactor DatabasePlatform - rename getters to accessors
...
Although this is public API these getters are not expected to be used
by application code so, I feel comfortable making this change.
2022-08-25 10:34:39 +12:00
Rob Bygrave
4252445eb4
Use AppLog and System.Logger for logging - static imports
2022-08-23 15:18:46 +12:00
Rob Bygrave
a23f241fff
Use AppLog and System.Logger for logging rather than slf4j-api
...
The avaje-applog-slf4j dependency means this is still using
slf4j-api for implementation. Remove that dependency and
service load the desired implementation.
2022-08-18 22:44:31 +12:00
Rob Bygrave
73bc9e516e
Revert "Migrate to Jakarta JAXB (jakarta.xml.bind <- javax.xml.bind)"
2022-08-15 15:14:57 +12:00
Rob Bygrave
a6304ebe8b
Merge pull request #2722 from ebean-orm/feature/jakarta-jaxb
...
Migrate to Jakarta JAXB (jakarta.xml.bind <- javax.xml.bind)
2022-08-03 20:34:55 +12:00
Roland Praml
dab428ead5
Fix: DDL will get wrong hint for special migration
2022-07-28 15:10:37 +02:00
Rob Bygrave
5f6efd29ef
#2743 - Postgres DDL - For create table, improve column ordering for tighter storage
2022-07-07 22:06:21 +12:00
Rob Bygrave
110bc614e4
#2743 - Postgres DDL - For create table, improve column ordering for tighter storage
2022-07-07 13:45:06 +12:00
Rob Bygrave
fbae9cad8a
#2742 - ModelContainer.applyChangeSet(ModelContainer.java:167) - IllegalArgumentException: No rule for io.ebeaninternal.dbmigration.migration.CreateSchema
2022-07-07 12:03:39 +12:00
Rob Bygrave
2d65a3f1c9
Migrate to Jakarta JAXB (jakarta.xml.bind <- javax.xml.bind)
2022-06-17 18:10:14 +12:00
Rob Bygrave
afdb1df7ce
Testing nuodb 4.3.2, but it isn't supporting getGeneratedKeys for jdbc batch inserts
...
That breaks a lot of tests
2022-06-16 23:32:04 +12:00
Rob Bygrave
403556d8b2
DDL - Refactor DDL for Postgres and YugabyteDB to just create a default partition table
...
Removes the need and use of PostgresPlatform.tablePartitionsExist() and PostgresPlatform.tablePartitionInit() altogether.
2022-06-14 16:00:54 +12:00
Rob Bygrave
06ad2edfc1
#2718 - [Yugabyte] Fix such that builtin table partition functions are included in DDL (when we use table partitioning)
2022-06-14 15:39:34 +12:00
Rob Bygrave
68680ffd34
#2702 - IllegalArgumentException: No rule for io.ebeaninternal.dbmigration.migration.RenameTable
...
Add support for applying the RenameTable change to the model.
2022-05-24 10:48:38 +12:00
Rob Bygrave
74b4994221
#2701 -[DDL] Postgres DDL generation for table partitioning with schema - helper method to add partitions does not work
...
This also removes the helper partition_init() stored function as it isn't really needed now that postgres has default partition support (since PG11 actually, partition_init predates PG11).
2022-05-23 20:39:45 +12:00
Rob Bygrave
7fbc1f8111
Postgres DDL - With Postgres table partitioning, add partition column to primary key
...
- Postgres DDL generation
- Using table partitioning
- There is a primary key defined that doesn't contain the partition column
In DDL generation, automatically add the partition column to the DB primary key.
2022-05-17 21:39:06 +12:00
Rob Bygrave
ceac2d12b1
#2694 - Postgres DDL - For Postgres table partitioning, remove the "suppressPrimaryKeyOnPartition" mode
2022-05-16 21:48:19 +12:00
Rob Bygrave
cc7f3d49a4
No effective change, tidy whitespace
2022-05-16 21:35:46 +12:00
Rob Bygrave
71b7aa5946
DDL - Add support for creating schema via database migrations (and create all ddl)
...
Initially for H2 and Postgres, with commented out DDL for other platforms.
2022-05-16 21:17:41 +12:00
Rob Bygrave
356af08f68
Tidy internal MTable only for test only constructor (remove @Deprecated)
2022-04-20 21:22:23 +12:00
Rob Bygrave
24d8f38b1d
#2374 - Bump to Java 11 and module-path
2022-03-31 08:42:14 +13:00
Rob Bygrave
e71e16c1ee
Refactor extract separate modules for each platform from ebean-api dbplatform
2022-03-30 17:11:36 +13:00
Rob Bygrave
5c3b680c8a
#2612 - Incorrect DDL generation for MySql on history tables that use quoted identifiers
2022-03-28 13:05:59 +13:00
Rob Bygrave
88acd8190a
Refactor tests, move db migration tests
2022-03-25 18:23:23 +13:00
Rob Bygrave
79213e7194
Merge branch 'master' of github.com:ebean-orm/ebean
2022-03-23 22:29:16 +13:00
Roland Praml
3e4cc3b3d6
Add tablespace support for DB2
2022-03-22 17:03:38 +01:00
Roland Praml
00686fcccf
DB2: ignore case in "drop if exists" checks
2022-03-22 09:58:20 +01:00
Roland Praml
4fe8ef2b23
Support schema in history-entities
2022-03-22 09:42:19 +01:00
Rob Bygrave
de4140aaac
#2600 - Pending drops migration with the same version of the target migration cause trouble
2022-03-22 16:20:06 +13:00
Roland Praml
8640b4a1a0
Fix: Check if pendingDrops are used correctly
2022-03-21 15:20:41 +01:00
Roland Praml
5e87706055
Fix: check newTable for history flag
2022-03-21 15:05:29 +01:00
Roland Praml
2a924d8d32
Add more quotes, for history tables
2022-03-21 15:01:43 +01:00
Roland Praml
4077d906d1
ADD: Support for quoted identifiers
2022-03-21 13:34:29 +01:00
Roland Praml
7e3fbbba62
Refactor: use normalized table names for history
2022-03-21 11:52:00 +01:00
Roland Praml
3db9a17c6a
Refactored DbTriggerBasedHistory: always use historyTableName
2022-03-21 11:15:13 +01:00
Roland Praml
0a1acb3f9b
Fix: DB2-History table must be an exact copy
2022-03-21 11:08:41 +01:00
Roland Praml
a2e27b9e00
fixed test case
2022-03-21 11:02:14 +01:00
Roland Praml
a8ad93823a
Removed 'lowerTableName' and 'lowerColumnName'
2022-03-18 08:56:43 +01:00
Roland Praml
8f746196ab
Support for extra colum options for DB2
2022-03-17 13:11:48 +01:00
Roland Praml
74720a840d
DbMigration: Do only real type changes
2022-03-17 13:01:25 +01:00
Roland Praml
0225fddf6d
FIX: AlterColumnTest
2022-03-15 16:31:43 +01:00
Roland Praml
c9204eed3f
DB2: HistorySupport added
2022-03-15 15:59:33 +01:00