aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPrivilegesMO.h
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-11-18 00:14:52 +0100
committerMax <post@wickenrode.com>2015-11-18 00:14:52 +0100
commitdfe9c477aac50a859e283e0eb6316682458e3e39 (patch)
tree400ab62a643c398e752aecf291fdefe1d0a90db0 /Source/SPPrivilegesMO.h
parent1f7684a8d075a77914301aea444e2a244347249d (diff)
downloadsequelpro-dfe9c477aac50a859e283e0eb6316682458e3e39.tar.gz
sequelpro-dfe9c477aac50a859e283e0eb6316682458e3e39.tar.bz2
sequelpro-dfe9c477aac50a859e283e0eb6316682458e3e39.zip
* Remove restriction on 16 chars for username in User Manager (#1886)
* Change user manager code so that mysql queries are executed on validation instead of after save (in Core Data, not mysql). This should in general make more sense since a failure in MySQL essentialy means that Core Data can't save it either (but did anyway in the past). * Remove a deprecated method call that is no longer needed in 10.6+
Diffstat (limited to 'Source/SPPrivilegesMO.h')
-rw-r--r--Source/SPPrivilegesMO.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/Source/SPPrivilegesMO.h b/Source/SPPrivilegesMO.h
new file mode 100644
index 00000000..f58e4f5b
--- /dev/null
+++ b/Source/SPPrivilegesMO.h
@@ -0,0 +1,41 @@
+//
+// SPPrivilegesMO.h
+// sequel-pro
+//
+// Created by Max Lohrmann on 17.11.15.
+// Copyright (c) 2015 Max Lohrmann. All rights reserved.
+//
+// Permission is hereby granted, free of charge, to any person
+// obtaining a copy of this software and associated documentation
+// files (the "Software"), to deal in the Software without
+// restriction, including without limitation the rights to use,
+// copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the
+// Software is furnished to do so, subject to the following
+// conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+// OTHER DEALINGS IN THE SOFTWARE.
+//
+// More info at <https://github.com/sequelpro/sequelpro>
+
+#import <Foundation/Foundation.h>
+#import <CoreData/CoreData.h>
+
+@class SPUserMO;
+
+@interface SPPrivilegesMO : NSManagedObject
+
+@property (nonatomic, retain) NSString *db;
+@property (nonatomic, retain) SPUserMO *user;
+
+@end