Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sqlalchemy one column of two has to be not null

class BudgetCategories(Base):
    __tablename__ = 'budget_categories'
    # ...

    # @note: new
    __table_args__ = (
            CheckConstraint('NOT(category IS NULL AND parent_category IS NULL)'),
            )
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql insert into select transaction c# 
Sql :: how to add column sql 
Sql :: https://www.jitendrazaa.com/blog/sql/sqlserver/export-documents-saved-as-blob-binary-from-sql-server/ 
Csharp :: guid.empty 
Csharp :: oncollisionenter is declared but never used 
Csharp :: c# mark as deprecated 
Csharp :: unity load current scene 
Csharp :: unity foreach child 
Csharp :: c# char input 
Csharp :: unity how to see what scen you are in 
Csharp :: Changing datagridview cell color dynamically 
Csharp :: Vector3.signedangle not showin singed angle in unity 
Csharp :: unity get all by tag 
Csharp :: how to change the color of an object in unity c# 
Csharp :: c# if file exists 
Csharp :: movement script c# 
Csharp :: c# count files in directory and subdirectories 
Csharp :: asp.net data annotations Datetime 
Csharp :: loop through enum c# 
Csharp :: how to convert string to bool c# 
Csharp :: c# datetime current 
Csharp :: open website c# 
Csharp :: c# how to get screen resolution in class 
Csharp :: c# log to console 
Csharp :: how to destroy in unity 
Csharp :: c# list all files in a directory and subdirectory 
Csharp :: c# project path 
Csharp :: how to chnage the Scale propery of rect tranform unity 
Csharp :: c# connection string 
Csharp :: unity list of gameobjects 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =