Removed PostGres from code and documentation
We don't support postgres. Change-Id: Ia51300c1aa1042ae32f966490ce4265d49fab255
This commit is contained in:
parent
e30e1cb406
commit
5308c2cc52
|
@ -16,15 +16,11 @@ Installing the API service
|
||||||
$ pip install storyboard
|
$ pip install storyboard
|
||||||
|
|
||||||
2. By default Storyboard will use SQLite driver which is suitable only for
|
2. By default Storyboard will use SQLite driver which is suitable only for
|
||||||
development mode. Storyboard supports MySQL and PostgreSQL backends.
|
development mode. Storyboard only supports MySQL, to install MySQL driver
|
||||||
To install MySQL driver execute::
|
execute::
|
||||||
|
|
||||||
$ pip install MySQL-python
|
$ pip install MySQL-python
|
||||||
|
|
||||||
To install PostgreSQL driver execute::
|
|
||||||
|
|
||||||
$ pip install psycopg2
|
|
||||||
|
|
||||||
3. Edit ``/etc/storyboard/storyboard.conf``. You'll need to modify ``connection``
|
3. Edit ``/etc/storyboard/storyboard.conf``. You'll need to modify ``connection``
|
||||||
parameter in the ``[database]`` section.
|
parameter in the ``[database]`` section.
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#sqlite=sqlite://
|
#sqlite=sqlite://
|
||||||
#sqlitefile=sqlite:///test_migrations_utils.db
|
#sqlitefile=sqlite:///test_migrations_utils.db
|
||||||
mysql=mysql+mysqldb://storyboard:storyboard@localhost/test_migrations_utils
|
mysql=mysql+mysqldb://storyboard:storyboard@localhost/test_migrations_utils
|
||||||
#postgresql=postgresql+psycopg2://user:pass@localhost/test_migrations_utils
|
|
||||||
|
|
||||||
[migration_dbs]
|
[migration_dbs]
|
||||||
# Migration DB details are listed separately as they can't be connected to
|
# Migration DB details are listed separately as they can't be connected to
|
||||||
|
@ -19,7 +18,6 @@ mysql=mysql+mysqldb://storyboard:storyboard@localhost/test_migrations_utils
|
||||||
#sqlite=sqlite://
|
#sqlite=sqlite://
|
||||||
#sqlitefile=sqlite:///test_migrations.db
|
#sqlitefile=sqlite:///test_migrations.db
|
||||||
#mysql=mysql+mysqldb://user:pass@localhost/test_migrations
|
#mysql=mysql+mysqldb://user:pass@localhost/test_migrations
|
||||||
#postgresql=postgresql+psycopg2://user:pass@localhost/test_migrations
|
|
||||||
|
|
||||||
[walk_style]
|
[walk_style]
|
||||||
snake_walk=yes
|
snake_walk=yes
|
||||||
|
|
|
@ -51,9 +51,7 @@ def _get_connect_string(backend, user, passwd, database):
|
||||||
these then we'll run the tests, otherwise they are skipped
|
these then we'll run the tests, otherwise they are skipped
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if backend == "postgres":
|
if backend == "mysql":
|
||||||
backend = "postgresql+psycopg2"
|
|
||||||
elif backend == "mysql":
|
|
||||||
backend = "mysql+mysqldb"
|
backend = "mysql+mysqldb"
|
||||||
else:
|
else:
|
||||||
raise Exception("Unrecognized backend: '%s'" % backend)
|
raise Exception("Unrecognized backend: '%s'" % backend)
|
||||||
|
|
|
@ -14,7 +14,6 @@ posix_ipc>=0.9.8
|
||||||
|
|
||||||
# Some of the tests use real MySQL and Postgres databases
|
# Some of the tests use real MySQL and Postgres databases
|
||||||
MySQL-python
|
MySQL-python
|
||||||
psycopg2
|
|
||||||
|
|
||||||
# Doc requirements
|
# Doc requirements
|
||||||
sphinx>=1.1.2,<1.2
|
sphinx>=1.1.2,<1.2
|
||||||
|
|
Loading…
Reference in New Issue