Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-04-10 | Get rid of ALTER TABLE callback since it is the same for all databases | Boris Kolpackov | 1 | -10/+12 | |
2013-04-10 | Use single ALTER TABLE to add foreign keys on pass 2 | Boris Kolpackov | 1 | -2/+2 | |
2013-04-10 | Write NULL/NOT NULL before DEFAULT in generated schemas | Boris Kolpackov | 1 | -0/+20 | |
This way we avoid DEFAULT NULL NULL, except for Oracle which insists on a specific order. | |||||
2013-04-10 | Generate add/drop foreign key migration statements | Boris Kolpackov | 1 | -103/+84 | |
Also add the --fkeys-deferrable-mode option. General schemas generation rework. | |||||
2013-04-10 | Add NOT NULL column without default value initially as NULL | Boris Kolpackov | 1 | -6/+7 | |
2013-04-10 | Generate alter column migration statements | Boris Kolpackov | 1 | -6/+59 | |
2013-04-10 | Generate add/drop column migration statements | Boris Kolpackov | 1 | -0/+92 | |
2013-04-10 | Generate add/drop index migration statements | Boris Kolpackov | 1 | -1/+18 | |
2013-04-10 | Generate add/drop table migration statements | Boris Kolpackov | 1 | -28/+54 | |
2013-02-09 | Update copyright year | Boris Kolpackov | 1 | -1/+1 | |
2012-12-12 | Add support for SQL name transformations | Boris Kolpackov | 1 | -21/+7 | |
2012-09-04 | NULL handling improvements | Boris Kolpackov | 1 | -44/+0 | |
Add support for specifying NULL-ness for types with built-in mapping. Handle Oracle [N]VARCHAR2 and SQLite FLOAT oddities using this mechanism instead of overriding it at the schema generation level. Also use the is_null argument that is passed to value_traits::init_image() to indicate whether the value can be NULL. | |||||
2012-07-27 | Move indexes from model scope to table scope | Boris Kolpackov | 1 | -0/+20 | |
Conceptually, indexes belong to tables and some databases (MySQL, MSSQL) indeed treat them as such (i.e., you can have indexes with the same name in different tables). | |||||
2012-07-25 | Simplify auto id implementation in Oracle | Boris Kolpackov | 1 | -34/+3 | |
Specifically, instead of using a trigger to assign the next id from the sequence, get the next value directly in the INSERT statement. | |||||
2012-07-17 | Remove unnecessary instance<> usage | Boris Kolpackov | 1 | -2/+2 | |
2012-07-11 | Drop Oracle trigger and sequence only if we have auto primary key | Boris Kolpackov | 1 | -18/+38 | |
2012-07-10 | Add missing newline | Boris Kolpackov | 1 | -1/+1 | |
2012-03-09 | Don't override NOT NULL on Oracle VARCHAR column if it's primary key | Boris Kolpackov | 1 | -4/+21 | |
2012-03-05 | Add support for generating schema creation code into separate C++ file | Boris Kolpackov | 1 | -6/+6 | |
2012-01-29 | Update copyright year | Boris Kolpackov | 1 | -1/+1 | |
2012-01-29 | Remove author field from file header | Boris Kolpackov | 1 | -1/+0 | |
Too much effort to maintain. | |||||
2012-01-26 | Implement support for database schema | Boris Kolpackov | 1 | -9/+11 | |
New pragma qualifier: namespace. New pragma specifier: schema. The table specifier was extended to accept a schema prefix. New option: --default- schema. The common/schema test was extended to cover the new functionality. | |||||
2011-11-18 | Add newlines to the multi-line embedded schema creation statements | Boris Kolpackov | 1 | -1/+1 | |
2011-11-17 | Correct Oracle PL/SQL script generation typo | Constantin Michael | 1 | -1/+1 | |
2011-10-24 | Generate database schema from database model instead of C++ model | Boris Kolpackov | 1 | -185/+121 | |
We now first create the so-called database model from C++ model and then use that to generate the database schema. The new approach also adds more general support for primary/foreign keys, including multi- column keys. Finally, for MySQL we now generate out-of-line foreign key definitions. Because MySQL does not support deferred constraints checking, deferred foreign keys are written commented out, for documentation. | |||||
2011-10-21 | Add support for const data members | Boris Kolpackov | 1 | -1/+2 | |
Const data members are automatically treated as readonly. New test: const-member. | |||||
2011-10-21 | Add schema_file implementation to support schema file header and footer hooks | Constantin Michael | 1 | -0/+25 | |
2011-10-21 | Correct generation of Oracle sequences and triggers for auto increment columns | Constantin Michael | 1 | -4/+12 | |
2011-10-21 | Disable generation of inline foreign key constraints | Constantin Michael | 1 | -0/+5 | |
2011-10-21 | Specify all VARCHAR2 and NVARCHAR2 columns as nullable | Constantin Michael | 1 | -0/+13 | |
Oracle interprets empty VARCHAR2 and NVARCHAR2 strings as NULL. As an empty string is always valid within the C++ context, VARCHAR2 and NVARCHAR2 columns are always specified as nullable. | |||||
2011-10-21 | Cascade constraints when dropping Oracle tables | Constantin Michael | 1 | -1/+1 | |
2011-10-21 | Minimize Oracle schema_emitter implementation | Constantin Michael | 1 | -14/+4 | |
2011-10-21 | Specialize schema_emitter for Oracle | Constantin Michael | 1 | -0/+47 | |
SQLPlus scripts are required to indicate PL/SQL block terminations with a trail '/'. | |||||
2011-10-21 | Use the quoted column name of the id member in the auto id trigger body | Constantin Michael | 1 | -1/+1 | |
2011-10-21 | Use GNU GPL v3 license for ODB compiler files | Constantin Michael | 1 | -1/+1 | |
2011-10-21 | Correct Oracle auto ID trigger implementation | Constantin Michael | 1 | -4/+6 | |
2011-10-21 | Compact Oracle drop_table PL/SQL code | Constantin Michael | 1 | -10/+4 | |
2011-10-21 | Add Oracle schema implementation | Constantin Michael | 1 | -0/+279 | |