mirror of https://github.com/Fabio286/antares.git
fix(SQLite): exception saving tables without INT fields length
This commit is contained in:
parent
ff4bc6c39b
commit
0e80e823d0
|
@ -6,7 +6,7 @@ export default [
|
||||||
types: [
|
types: [
|
||||||
{
|
{
|
||||||
name: 'INT',
|
name: 'INT',
|
||||||
length: true,
|
length: 10,
|
||||||
collation: false,
|
collation: false,
|
||||||
unsigned: true,
|
unsigned: true,
|
||||||
zerofill: true
|
zerofill: true
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<div class="footer-right-elements">
|
<div class="footer-right-elements">
|
||||||
<ul class="footer-elements">
|
<ul class="footer-elements">
|
||||||
<li
|
<li
|
||||||
v-if="workspace?.connectionStatus === 'connected' "
|
v-if="workspace?.connectionStatus === 'connected'"
|
||||||
class="footer-element footer-link"
|
class="footer-element footer-link"
|
||||||
@click="toggleConsole()"
|
@click="toggleConsole()"
|
||||||
>
|
>
|
||||||
|
|
|
@ -312,9 +312,10 @@ const clearChanges = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const addField = () => {
|
const addField = () => {
|
||||||
|
const uid = uidGen();
|
||||||
localFields.value.push({
|
localFields.value.push({
|
||||||
_antares_id: uidGen(),
|
_antares_id: uid,
|
||||||
name: `${t('word.field', 1)}_${++newFieldsCounter.value}`,
|
name: `${t('word.field', 1)}_${uid.substring(0, 4)}`,
|
||||||
key: '',
|
key: '',
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
type: (workspace.value.dataTypes[0] as any).types[0].name,
|
type: (workspace.value.dataTypes[0] as any).types[0].name,
|
||||||
|
|
Loading…
Reference in New Issue