aboutsummaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-14 10:25:00 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-14 10:25:00 +0200
commit297b0982d5ac2c04d1284621f1a675796cbb4379 (patch)
tree5b7475a7fdd0b19b809eb6c8b8a2ed996eec3158 /schema
parent02dcc53153a5e7eaee964533f0a24912c51c8ab8 (diff)
Remove erroneous SQLite schema creation from schema example
Diffstat (limited to 'schema')
-rw-r--r--schema/custom/database.hxx10
-rw-r--r--schema/embedded/database.hxx10
2 files changed, 2 insertions, 18 deletions
diff --git a/schema/custom/database.hxx b/schema/custom/database.hxx
index 82441b7..76dedb6 100644
--- a/schema/custom/database.hxx
+++ b/schema/custom/database.hxx
@@ -1,4 +1,4 @@
-// file : template/database.hxx
+// file : schema/custom/database.hxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : not copyrighted - public domain
@@ -52,14 +52,6 @@ create_database (int& argc, char* argv[])
auto_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
-
- // Create the database schema.
- //
- {
- transaction t (db->begin ());
- schema_catalog::create_schema (*db);
- t.commit ();
- }
#elif defined(DATABASE_PGSQL)
auto_ptr<database> db (new odb::pgsql::database (argc, argv));
#endif
diff --git a/schema/embedded/database.hxx b/schema/embedded/database.hxx
index 82441b7..9a2cbed 100644
--- a/schema/embedded/database.hxx
+++ b/schema/embedded/database.hxx
@@ -1,4 +1,4 @@
-// file : template/database.hxx
+// file : schema/embedded/database.hxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : not copyrighted - public domain
@@ -52,14 +52,6 @@ create_database (int& argc, char* argv[])
auto_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
-
- // Create the database schema.
- //
- {
- transaction t (db->begin ());
- schema_catalog::create_schema (*db);
- t.commit ();
- }
#elif defined(DATABASE_PGSQL)
auto_ptr<database> db (new odb::pgsql::database (argc, argv));
#endif