Roland Praml
f63b013ef9
Added and fixed tests
2023-06-14 18:14:12 +02:00
Roland Praml
81443b77bc
Fixes for Clickhouse platform
2023-06-14 17:16:14 +02:00
Roland Praml
2867c50090
Do not convert explicit defined column definitions
2023-06-14 17:16:14 +02:00
Rob Bygrave and GitHub
e26fbbb11f
Merge branch 'master' into feature/postgres-dll-addColumn-ifNotExists
2023-05-25 20:25:54 +12:00
robin.bygrave
ecf650c9bc
Postgres DDL - Use IF NOT EXISTS with ADD COLUMN
2023-05-25 20:22:18 +12:00
robin.bygrave
b27b4e7038
Postgres DDL - Don't use cast when just changing varchar column size
2023-05-25 20:00:36 +12:00
Roland Praml
82a6ec6957
Fix also other places
2023-04-26 11:11:12 +02:00
Rob Bygrave
e1522df8a5
Fix for #3012 Manual server shutdown leads to memory leak
...
The issue being that shutdown() // with no args was
not calling ShutdownManager.unregisterDatabase(this)
noting that shutdown(boolean, boolean) did.
This change merges the old shutdownInternal(boolean, boolean)
method into shutdown(boolean, boolean) and simplifies
shutdown() to just call shutdown(boolean, boolean).
2023-03-29 20:59:23 +13:00
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 and GitHub
73bc9e516e
Revert "Migrate to Jakarta JAXB (jakarta.xml.bind <- javax.xml.bind)"
2022-08-15 15:14:57 +12:00
Rob Bygrave and GitHub
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