Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup:with migration #5

Open
cdm2012 opened this issue Jun 4, 2016 · 0 comments
Open

setup:with migration #5

cdm2012 opened this issue Jun 4, 2016 · 0 comments

Comments

@cdm2012
Copy link
Contributor

cdm2012 commented Jun 4, 2016

Currently there is a block of code that is reserved for database migrations in setup:with:


        NSLog(@"Table: %@ Version: %@\n", className, version);
        if(savedValue != nil && !DEBUG) { // DATABASE TABLE IS CACHED
            if([version isEqualToString:savedValue]) {
                NSLog(@"Note: To update %@ table schema or populate your database you may need to update your app version from: %@", className, version);
                continue;  // DATABASE TABLE ALREADY AT CORRECT VERSION
            }
            else {
                // DATABASE TABLE NEEDS SEED
                //[queryString appendString:[NSString stringWithFormat:@"DROP TABLE IF EXISTS '%@'; ", className]];
            }
        }

This needs to completed in the next major release (3.X.X)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant