1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
# YML test files are auto-generated from SQL files and should not be edited by
# hand. To help enforce this, the "hash" field in the file must match a hash
# computed by SQLFluff when running the tests. Please run
# `python test/generate_parse_fixture_yml.py` to generate them after adding or
# altering SQL files.
_hash: 752b7fc012b17e70ad36f108082b3eba1114fa8c60a90291ce1f6e1c0dc6020b
file:
- statement:
alter_table_statement:
- keyword: ALTER
- keyword: TABLE
- table_reference:
naked_identifier: users
- keyword: RENAME
- keyword: TO
- naked_identifier: people
- statement_terminator: ;
- statement:
alter_table_statement:
- keyword: ALTER
- keyword: TABLE
- table_reference:
naked_identifier: users
- keyword: RENAME
- keyword: COLUMN
- column_reference:
naked_identifier: user_id
- keyword: TO
- naked_identifier: person_id
- statement_terminator: ;
- statement:
alter_table_statement:
- keyword: ALTER
- keyword: TABLE
- table_reference:
naked_identifier: users
- keyword: ADD
- keyword: COLUMN
- column_definition:
naked_identifier: name
data_type:
data_type_identifier: TEXT
column_constraint_segment:
keyword: UNIQUE
- statement_terminator: ;
- statement:
alter_table_statement:
- keyword: ALTER
- keyword: TABLE
- table_reference:
naked_identifier: users
- keyword: ADD
- keyword: COLUMN
- column_definition:
- naked_identifier: credentials_last_changed
- data_type:
data_type_identifier: INTEGER
- column_constraint_segment:
- keyword: NOT
- keyword: 'NULL'
- column_constraint_segment:
keyword: DEFAULT
expression:
numeric_literal: '0'
- statement_terminator: ;
- statement:
alter_table_statement:
- keyword: ALTER
- keyword: TABLE
- table_reference:
naked_identifier: users
- keyword: ADD
- keyword: COLUMN
- column_definition:
- naked_identifier: credentials_last_changed
- data_type:
data_type_identifier: TEXT
- column_constraint_segment:
- keyword: NOT
- keyword: 'NULL'
- column_constraint_segment:
keyword: DEFAULT
expression:
quoted_literal: "'0001-01-01T00:00:00.000000+00:00'"
- statement_terminator: ;
- statement:
alter_table_statement:
- keyword: ALTER
- keyword: TABLE
- table_reference:
naked_identifier: users
- keyword: DROP
- keyword: COLUMN
- column_reference:
naked_identifier: age
- statement_terminator: ;
|