Skip to content

Commit

Permalink
fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
bing6 committed Oct 26, 2018
1 parent 29b8b0d commit ca36c94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Classes/FMDTContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ - (NSString *)getAlterTableSql:(FMDTSchemaTable *)ldts dbts:(NSString *)dbts
NSString * findStr = [dbts substringWithRange:NSMakeRange(s.location, e.location - s.location)];
for (FMDTSchemaField *entry in ldts.fields) {
// if (![findStr containsString:entry.name]) {
if ([findStr rangeOfString:entry.name].length == 0) {
if ([findStr rangeOfString:[NSString stringWithFormat:@"`%@`", entry.name]].length == 0) {
[text appendFormat:@"alter table [%@] add column [%@] %@;", ldts.tableName, entry.name, entry.type];
}
}
Expand Down
4 changes: 2 additions & 2 deletions FMDBDataTable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "FMDBDataTable"
s.version = "2.2.1"
s.version = "2.2.2"
s.summary = "基于FMDB的一个ORM解决方案"

s.description = <<-DESC
Expand Down Expand Up @@ -78,7 +78,7 @@ Pod::Spec.new do |s|
# Supports git, hg, bzr, svn and HTTP.
#

s.source = { :git => "https://github.com/bing6/FMDBDataTable.git", :tag => "2.2.1" }
s.source = { :git => "https://github.com/bing6/FMDBDataTable.git", :tag => "2.2.2" }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down
4 changes: 2 additions & 2 deletions FMDataTable/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.2.1</string>
<string>2.2.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.2.1</string>
<string>2.2.2</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
Empty file modified Pods/Target Support Files/Pods/Pods-resources.sh
100755 → 100644
Empty file.

0 comments on commit ca36c94

Please sign in to comment.