LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-08-2013, 03:38 PM   #1
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 163

Rep: Reputation: 4
django: model / DB table coupling


Hi. How tight is the coupling between a model and its database table? Specifically: If I use the MySQL client to add a column onto a table (and I don't delete or alter any other columns) will the existing model and the code based on it continue to work as normal?
 
Old 05-08-2013, 03:41 PM   #2
dugan
Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 5,002

Rep: Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560
Quote:
Originally Posted by stateless View Post
If I use the MySQL client to add a column onto a table (and I don't delete or alter any other columns) will the existing model and the code based on it continue to work as normal?
Yes it will.
 
1 members found this post helpful.
Old 05-08-2013, 03:44 PM   #3
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 163

Original Poster
Rep: Reputation: 4
Three whole minutes for a response! Terrible service around here!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
django: get all unique values from model field stateless Programming 0 04-19-2013 03:44 AM
django devilboy09 Programming 1 03-13-2012 09:56 AM
Mumble, murmur, django and mumble-django. Linux.tar.gz Linux - Software 2 02-10-2009 03:47 AM
Westell 327W Verizqn model to substitute for Bellsouth model jdtiede Linux - Networking 1 03-11-2008 10:31 PM
Eee PC 701 + 8G model`Add/RemoveSW' Updating problems, many errors SURF model, not 8G digital8doug Linux - Laptop and Netbook 3 02-21-2008 07:26 PM


All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration