@@ -82,9 +82,9 @@ def test_alembic_scenario(alembic_table):
8282 Column ("description" , String (200 )),
8383 )
8484 assert alembic_table ("account" , "schema" ) == [
85- "SchemaField('id', 'INTEGER', 'REQUIRED')" ,
86- "SchemaField('name', 'STRING(50)', 'REQUIRED', 'The name')" ,
87- "SchemaField('description', 'STRING(200)', 'NULLABLE')" ,
85+ "SchemaField('id', 'INTEGER', 'REQUIRED', None, (), () )" ,
86+ "SchemaField('name', 'STRING(50)', 'REQUIRED', 'The name', (), () )" ,
87+ "SchemaField('description', 'STRING(200)', 'NULLABLE', None, (), () )" ,
8888 ]
8989
9090 op .bulk_insert (
@@ -107,10 +107,11 @@ def test_alembic_scenario(alembic_table):
107107 )
108108
109109 assert alembic_table ("account" , "schema" ) == [
110- "SchemaField('id', 'INTEGER', 'REQUIRED')" ,
111- "SchemaField('name', 'STRING(50)', 'REQUIRED', 'The name')" ,
112- "SchemaField('description', 'STRING(200)', 'NULLABLE')" ,
113- "SchemaField('last_transaction_date', 'DATETIME', 'NULLABLE', 'when updated')" ,
110+ "SchemaField('id', 'INTEGER', 'REQUIRED', None, (), ())" ,
111+ "SchemaField('name', 'STRING(50)', 'REQUIRED', 'The name', (), ())" ,
112+ "SchemaField('description', 'STRING(200)', 'NULLABLE', None, (), ())" ,
113+ "SchemaField('last_transaction_date', 'DATETIME', 'NULLABLE', 'when updated'"
114+ ", (), ())" ,
114115 ]
115116
116117 op .create_table (
@@ -126,8 +127,8 @@ def test_alembic_scenario(alembic_table):
126127
127128 op .drop_column ("account_w_comment" , "description" )
128129 assert alembic_table ("account_w_comment" , "schema" ) == [
129- "SchemaField('id', 'INTEGER', 'REQUIRED')" ,
130- "SchemaField('name', 'STRING(50)', 'REQUIRED', 'The name')" ,
130+ "SchemaField('id', 'INTEGER', 'REQUIRED', None, (), () )" ,
131+ "SchemaField('name', 'STRING(50)', 'REQUIRED', 'The name', (), () )" ,
131132 ]
132133
133134 op .drop_table ("account_w_comment" )
@@ -136,10 +137,11 @@ def test_alembic_scenario(alembic_table):
136137 op .rename_table ("account" , "accounts" )
137138 assert alembic_table ("account" ) is None
138139 assert alembic_table ("accounts" , "schema" ) == [
139- "SchemaField('id', 'INTEGER', 'REQUIRED')" ,
140- "SchemaField('name', 'STRING(50)', 'REQUIRED', 'The name')" ,
141- "SchemaField('description', 'STRING(200)', 'NULLABLE')" ,
142- "SchemaField('last_transaction_date', 'DATETIME', 'NULLABLE', 'when updated')" ,
140+ "SchemaField('id', 'INTEGER', 'REQUIRED', None, (), ())" ,
141+ "SchemaField('name', 'STRING(50)', 'REQUIRED', 'The name', (), ())" ,
142+ "SchemaField('description', 'STRING(200)', 'NULLABLE', None, (), ())" ,
143+ "SchemaField('last_transaction_date', 'DATETIME', 'NULLABLE', 'when updated'"
144+ ", (), ())" ,
143145 ]
144146 op .drop_table ("accounts" )
145147 assert alembic_table ("accounts" ) is None
@@ -159,9 +161,9 @@ def test_alembic_scenario(alembic_table):
159161 # nullable:
160162 op .alter_column ("transactions" , "amount" , True )
161163 assert alembic_table ("transactions" , "schema" ) == [
162- "SchemaField('account', 'INTEGER', 'REQUIRED')" ,
163- "SchemaField('transaction_time', 'DATETIME', 'REQUIRED')" ,
164- "SchemaField('amount', 'NUMERIC(11, 2)', 'NULLABLE')" ,
164+ "SchemaField('account', 'INTEGER', 'REQUIRED', None, (), () )" ,
165+ "SchemaField('transaction_time', 'DATETIME', 'REQUIRED', None, (), () )" ,
166+ "SchemaField('amount', 'NUMERIC(11, 2)', 'NULLABLE', None, (), () )" ,
165167 ]
166168
167169 op .create_table_comment ("transactions" , "Transaction log" )
0 commit comments