diff options
| author | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-12 13:26:03 +0200 |
|---|---|---|
| committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-17 12:31:36 +0200 |
| commit | 1b89df59af349feb27205b90727263f17f29a9d8 (patch) | |
| tree | 4b84a5a633f63200fe089efd0ce220eb3364e661 /pynslcd/rpc.py | |
| parent | 76712760885774f883f7bf79ce97931a6e251428 (diff) | |
Give cache tables friendlier names
This also defined the tables for netgroup storage.
Diffstat (limited to 'pynslcd/rpc.py')
| -rw-r--r-- | pynslcd/rpc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pynslcd/rpc.py b/pynslcd/rpc.py index efb6cb9..98a0ecc 100644 --- a/pynslcd/rpc.py +++ b/pynslcd/rpc.py @@ -37,19 +37,19 @@ class Search(search.LDAPSearch): class Cache(cache.Cache): - tables = ('rpc_cache', 'rpc_1_cache') + tables = ('rpc_cache', 'rpc_alias_cache') create_sql = ''' CREATE TABLE IF NOT EXISTS `rpc_cache` ( `cn` TEXT PRIMARY KEY, `oncRpcNumber` INTEGER NOT NULL, `mtime` TIMESTAMP NOT NULL ); - CREATE TABLE IF NOT EXISTS `rpc_1_cache` + CREATE TABLE IF NOT EXISTS `rpc_alias_cache` ( `rpc` TEXT NOT NULL, `cn` TEXT NOT NULL, FOREIGN KEY(`rpc`) REFERENCES `rpc_cache`(`cn`) ON DELETE CASCADE ON UPDATE CASCADE ); - CREATE INDEX IF NOT EXISTS `rpc_1_idx` ON `rpc_1_cache`(`rpc`); + CREATE INDEX IF NOT EXISTS `rpc_alias_idx` ON `rpc_alias_cache`(`rpc`); ''' def retrieve(self, parameters): |
