Commit 3fc0b020 authored by phenigma's avatar phenigma

Refs #2648 - force psc_mod to permit NULL (not sure yet why this isn't working...

Refs #2648 - force psc_mod to permit NULL (not sure yet why this isn't working without it, will investigate, this works for now.)
parent 9d5f6a37
......@@ -949,8 +949,11 @@ void Repository::ImportTable(string sTableName,SerializeableStrings &str,size_t
sSQL << ", ";
if( sIndex=="PRI" )
sPrimaryKey += ( sPrimaryKey.length( ) ? "," : "" ) + string( "`" ) + sField + "`";
sSQL << "`" << sField << "` " << sType
<< ( sNULL!="YES" ? " NOT NULL " : "" );
sSQL << "`" << sField << "` " << sType;
if ( sField=="psc_mod" )
sSQL << " NULL ";
else
sSQL << ( sNULL!="YES" ? " NOT NULL " : "" );
if( sDefault.length( ) )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment